findStub

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 }

Return

A StubHandle for the first matching stub in registration order, or null.