verifyNever

fun verifyNever(verifyBlock: MockKVerificationScope.() -> Unit)

Verifies that a specific interaction with a mock object never occurred.

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

Usage:

verifyNever { mock.someFunction() }

Parameters

verifyBlock

The block of code containing the interaction to verify.