matchesBy

fun <T> MokkeryMatcherScope.matchesBy(function: (T) -> Boolean): T(source)

Matches an argument by calling given function. Also, it returns function name on Any.toString.