CaptureMatcher

class CaptureMatcher<T>(capture: Capture<T>, matcher: ArgMatcher<T>) : ArgMatcher.Composite<T> (source)

Matches an argument with matcher and captures arguments into capture.

See also

Constructors

Link copied to clipboard
constructor(capture: Capture<T>, matcher: ArgMatcher<T>)

Functions

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

Propagates value to children matchers.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun matches(arg: T): Boolean
Link copied to clipboard

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

Link copied to clipboard
open override fun toString(): String