CaptureMatcher
class CaptureMatcher<T>(capture: Capture<T>, matcher: ArgMatcher<T>? = null) : ArgMatcher.Composite<T>
Matches an argument with matcher and captures arguments into capture.
See also
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.