Package-level declarations
Functions
Link copied to clipboard
Starts defining an answer for a single function call specified by block. Returned scope allows defining answer.
Link copied to clipboard
Just like every, but allows suspendable function call.
Link copied to clipboard
inline fun <T1 : Any, T2 : Any> mockMany(mode: MockMode = MokkeryCompilerDefaults.mockMode, block: MockMany2<T1, T2>.() -> Unit = { }): MockMany2<T1, T2>
inline fun <T1 : Any, T2 : Any, T3 : Any> mockMany(mode: MockMode = MokkeryCompilerDefaults.mockMode, block: MockMany3<T1, T2, T3>.() -> Unit = { }): MockMany3<T1, T2, T3>
inline fun <T1 : Any, T2 : Any, T3 : Any, T4 : Any> mockMany(mode: MockMode = MokkeryCompilerDefaults.mockMode, block: MockMany4<T1, T2, T3, T4>.() -> Unit = { }): MockMany4<T1, T2, T3, T4>
Link copied to clipboard
Removes all answers configured for given mocks.
Link copied to clipboard
Clears call history for all given mocks.
Link copied to clipboard
fun verify(mode: VerifyMode = MokkeryCompilerDefaults.verifyMode, block: ArgMatchersScope.() -> Unit)
Link copied to clipboard
Asserts that all given mocks have all their registered calls verified with verify or verifySuspend.
Link copied to clipboard
fun verifySuspend(mode: VerifyMode = MokkeryCompilerDefaults.verifyMode, block: suspend ArgMatchersScope.() -> Unit)
Just like verify, but allows suspendable function calls.