async Verify
suspend fun asyncVerify(exactly: Int? = null, atLeast: Int = 1, atMost: Int? = null, action: suspend KMockContract.VerificationContext.() -> KMockContract.Expectation)
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.
at Least
optional parameter which indicates the minimum amount of calls.
at Most
optional parameter which indicates the maximum amount of calls.
action
producer of a VerificationHandle.
Throws
Assertion Error
if given criteria are not met.