Matching

class Matching<T>(val predicate: (T) -> Boolean, val toStringFun: () -> String) : ArgMatcher<T>

Matches an argument according to the predicate. Registered matcher Any.toString calls toStringFun.

Constructors

Link copied to clipboard
constructor(predicate: (T) -> Boolean, toStringFun: () -> String)

Properties

Link copied to clipboard
val predicate: (T) -> Boolean
Link copied to clipboard
val toStringFun: () -> String

Functions

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