verifyNever
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() }
Content copied to clipboard
Parameters
verifyBlock
The block of code containing the interaction to verify.