useSpyIf

abstract fun useSpyIf(spyTarget: Any?, spyOn: () -> Value)

Binds the given function to the Proxy. It wipes a given relaxer and buildInRelaxer.

Parameters

spyTarget

the referenced object which is spied upon.

spyOn

the referenced Spy method.