putMock

inline fun <T : Any> TestMutableInjectionEnvironment.putMock(    name: String? = null,     relaxed: Boolean = false,     vararg moreInterfaces: KClass<*>,     relaxUnitFun: Boolean = false,     mockSetup: T.() -> Unit): T

Creates a MockK mock using the given settings and lambda, then puts it in the Tegral DI test environment.

This is comparable to calling:

val result = mockk(...) { ... }
put(result)