coVerify
fun coVerify(ordering: Ordering = Ordering.UNORDERED, inverse: Boolean = false, atLeast: Int = 1, atMost: Int = Int.MAX_VALUE, exactly: Int = -1, timeout: Long = 0, verifyBlock: suspend MockKVerificationScope.() -> Unit)(source)
Verifies that calls were made inside a coroutine.
Parameters
ordering
how the verification should be ordered
inverse
when true, the verification will check that the behaviour specified did not happen
atLeast
verifies that the behaviour happened at least atLeast times
atMost
verifies that the behaviour happened at most atMost times
exactly
verifies that the behaviour happened exactly exactly times. Use -1 to disable
timeout
timeout value in milliseconds. Will wait until one of two following states: either verification is passed or timeout is reached.
verifyBlock
code block containing at least 1 call to verify