mockk

inline fun <T> <Error class: unknown class>.mockk(    qualifier: Annotation? = null,     name: String? = null,     relaxed: Boolean = true,     vararg moreInterfaces: KClass<*>,     relaxUnitFun: Boolean = true,     noinline block: T.() -> Unit = {}): <Error class: unknown class>

Add a mockk with the supplied params as a dependency in this mockspresso instance. Mock will be bound with the supplied qualifier annotation. If you need a reference to the mock dependency, consider MockspressoProperties.mockk instead.

IMPORTANT: we default relaxed and relaxUnitFun to true for defaultMocks.


inline fun <T> <Error class: unknown class>.mockk(    qualifier: Annotation? = null,     name: String? = null,     relaxed: Boolean = false,     vararg moreInterfaces: KClass<*>,     relaxUnitFun: Boolean = false,     noinline block: T.() -> Unit = {}): Lazy<T>

Add a mockk with the supplied params as a dependency in this mockspresso instance. Mockk will be bound with the supplied qualifier annotation and will be accessible via the returned lazy.