matching

inline fun <T> ArgMatchersScope.matching(noinline toString: () -> String = { "matching(...)" }, noinline predicate: (T) -> Boolean): T

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