Or
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.
Functions
Link copied to clipboard
Checks if is it is properly filled and throws exception if it is not. It is called when composite is considered "final". It is often used to verify missing matchers.
Link copied to clipboard
Returns new Composite with matcher merged. This method gets matchers in reversed order.
Link copied to clipboard
Helper function to propagate capture for dev.mokkery.matcher.ArgMatcher.Composite.