Composite

Arg matcher that must be composed with other matchers. Every composite matcher has to implement Capture to propagate it to its children. Use dev.mokkery.matcher.capture.propagateCapture for convenience.

Any composite matcher must be composed using matchesComposite.

Inheritors

Functions

Link copied to clipboard
abstract override fun capture(value: T)

Propagates value to children matchers.

Link copied to clipboard
abstract fun matches(arg: T): Boolean
Link copied to clipboard

Helper function to propagate capture for dev.mokkery.matcher.ArgMatcher.Composite.