spy
fun <T : Any> spy(obj: T, block: ERROR CLASS: Symbol not found for MokkerySpyConfigurer.Block<T> = { }): T(source)
Returns given obj wrapped with a spying implementation of T.
T must be provided directly and cannot be a generic parameter.
Currently supported types:
interfaces (not sealed)
function types
Abstract/open classes.
Parameters
block
configures the spy right after its creation
fun <T : Any> MokkerySuiteScope.spy(obj: T, block: ERROR CLASS: Symbol not found for MokkerySpyConfigurer.Block<T> = { }): T(source)
Returns given obj wrapped with a spying implementation of T. It is a child of given MokkerySuiteScope.
T must be provided directly and cannot be a generic parameter.
Currently supported types:
Interfaces (not sealed)
Function types
Abstract/open classes.
Parameters
block
configures the spy right after its creation