LogicalMatchers
object LogicalMatchers
Contains composite matchers for logical operations.
Types
Link copied to clipboard
class And<T>(val expectedMatchers: Int, val matchers: List<ArgMatcher<T>> = emptyList()) : ArgMatcher.Composite<T>
Matches argument that satisfies all the matchers. It must be merged with expectedMatchers number of ArgMatchers.
Link copied to clipboard
Matches argument that does not satisfy matcher.
Link copied to clipboard
class Or<T>(val expectedMatchers: Int, val matchers: List<ArgMatcher<T>> = emptyList()) : ArgMatcher.Composite<T>
Matches argument that satisfies any matcher from matchers. It must be merged with expectedMatchers number of ArgMatchers.