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

Extensions for org.koin.core.Koin

declareMock

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

Declare & Create a mock in Koin container for given type

declareMockedDefinition

fun <T : Any> Koin.declareMockedDefinition(foundDefinition: BeanDefinition<T>, stubbing: T.() -> Unit): Unit