koin-test / org.koin.test.mock / org.koin.core.Koin / declareMock

declareMock

inline fun <reified T : Any> Koin.declareMock(qualifier: Qualifier? = null, noinline stubbing: T.() -> Unit = null): T

Declare & Create a mock in Koin container for given type

Author
Arnaud Giuliani