Skip to content

FailureKind

Rasuvaeff\Understudy\FailureKind

EnumPackage: rasuvaeff/understudySourceVersion: v0.4.1

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