find Stub
Finds the first registered stub matching predicate, or null if none match.
Use this for arbitrary filtering that goes beyond exact name or id lookup:
mokksy.findStub { it.matchCount() == 0 && it.name?.startsWith("test-") == true }Content copied to clipboard
Return
A StubHandle for the first matching stub in registration order, or null.