stub

inline fun <T : Any> T.stub(stubbing: KStubbing<T>.(T) -> Unit): T

Stub a mock with given stubbing configuration.

Receiver

the mock to stub.

Parameters

stubbing

the stubbing configuration to apply to the mock.