Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add proprety infix function #109

Open
hungrytech opened this issue Jul 26, 2024 · 1 comment
Open

How to add proprety infix function #109

hungrytech opened this issue Jul 26, 2024 · 1 comment

Comments

@hungrytech
Copy link

Thank you for creating the wonderful fixtures library.
While using public member properties overridden by reference, I thought it would be more convenient if it could be used as an infix function like below. What do you think about adding an infix function?

Here is the example code

data class Foo(
val bar: String
)

@Test 
fun `test`() {
  val foo = fixture {
      Foo::bar property { "bar" }
  }

}
@hungrytech
Copy link
Author

I have submitted a PR #110 with the infix function implementation. I would appreciate it if you could review it. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant