argWhere

inline fun <T : Any> argWhere(noinline predicate: (T) -> Boolean): T

Creates a custom argument matcher. null values will never evaluate to true.

Parameters

predicate

A function that returns true when given T matches the predicate.