Skip to content

FailureKind ​

Rasuvaeff\Understudy\FailureKind

Enum — Package: rasuvaeff/understudy — Source — Version: v1.1.0-1-g6ed023f

Implements: UnitEnum

What kind of verification claim a VerificationFailure reports.

Constants ​

ConstantTypeValueDescription
UnmetExpectationFailureKindAn expect() or verify() claim about how often a call happens was not met.
StrictStubUnusedFailureKindverifyAll(strictStubs: true) found a stub the code under test never used.
OutOfOrderFailureKindAn expect(...)->ordered() constraint was violated.
OutOfSequenceFailureKindverifySequence() saw a different protocol than the one specified.
UnaccountedCallsFailureKindA call arrived that no expect() matched and no successful verify() claimed.
UnusedDoubleFailureKindunused() found calls on a double expected to receive none.

Cases ​

CaseBacking value
UnmetExpectation—
StrictStubUnused—
OutOfOrder—
OutOfSequence—
UnaccountedCalls—
UnusedDouble—