coVerifyNever

fun coVerifyNever(verifyBlock: suspend MockKVerificationScope.() -> Unit)

Verifies that a specific interaction with a mock object in a coroutine context never occurred.

This function is a wrapper around the coVerify function from MockK that ensures the given verifyBlock was executed exactly zero times within a coroutine.

Usage:

coVerifyNever { mock.someSuspendFunction() }

Parameters

verifyBlock

The suspendable block of code containing the interaction to verify.