FunctionMatcher
data class FunctionMatcher<in T : Any>(val matchingFunc: (T) -> Boolean, val argumentType: KClass<*>, assertionErrorLogger: (AssertionError) -> Unit = { e -> e.printStackTrace() }) : Matcher<T> , TypedMatcher, EquivalentMatcher(source)
Delegates matching to lambda function
Constructors
Link copied to clipboard
constructor(matchingFunc: (T) -> Boolean, argumentType: KClass<*>, assertionErrorLogger: (AssertionError) -> Unit = { e -> e.printStackTrace() })