We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently there is argThat and argForWhich which take extension functions T.() -> Boolean. These are useful in situations like:
argThat
argForWhich
T.() -> Boolean
verify(mock).call(argForWhich<List> { size == 3 })
However, in some cases using an argument is more natural. Proposal to add an argWhere function that takes a function (T) -> Boolean:
argWhere
(T) -> Boolean
verify(mock).call(argThat<String> { this == "test" }) // vs verify(mock).call(argWhere<String> { it == "test" })
This is somewhat related to #134.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently there is
argThat
andargForWhich
which take extension functionsT.() -> Boolean
.These are useful in situations like:
However, in some cases using an argument is more natural. Proposal to add an
argWhere
function that takes a function(T) -> Boolean
:This is somewhat related to #134.
The text was updated successfully, but these errors were encountered: