predicate Matcher
fun <T> predicateMatcher(description: String? = null, predicate: (T?) -> Boolean): Matcher<T?>(source)
Creates a matcher that evaluates objects against a specified predicate.
Return
a Matcher that applies the given predicate to objects for evaluation
Parameters
T
the type of the object being matched
description
description of the predicate
predicate
the predicate to evaluate objects against