FailureDetail class final

The context for a failed expectation.

A subject may have some number of succeeding expectations, and the failure may be for an expectation against a property derived from the value at the root of the subject. For example, in check([]).length.equals(1) the specific value that gets rejected is 0 from the length of the list, and the subject that sees the rejection is nested with the label "has length".

Constructors

FailureDetail(Iterable<String> expected, int _actualOverlap, int depth)

Properties

actual Iterable<String>
A description of the conditions the checked value satisfied.
no setter
depth int
The number of times the failing subject was nested from the root subject.
final
expected Iterable<String>
A description of all the conditions the subject was expected to satisfy.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited