async Verify
suspend fun asyncVerify(exactly: Int? = null, atLeast: Int = 1, atMost: Int? = null, action: suspend KMockContract.VerificationContext.() -> KMockContract.Expectation)
Content copied to clipboard
Verifies the last produced VerificationHandle in a Coroutine Context. Use that context only in combination with proxy access methods.
Author
Matthias Geisler
See also
Parameters
exactly
optional parameter which indicates the exact amount of calls. This parameter overrides atLeast and atMost.
atLeast
optional parameter which indicates the minimum amount of calls.
atMost
optional parameter which indicates the maximum amount of calls.
action
producer of a VerificationHandle.
Throws
if given criteria are not met.