Skip to content

How to add proprety infix function #109

@hungrytech

Description

@hungrytech

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" }
  }

}

Activity

hungrytech

hungrytech commented on Jul 26, 2024

@hungrytech
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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @hungrytech

        Issue actions

          How to add proprety infix function · Issue #109 · appmattus/kotlinfixture