DifferentialComparison class final
The normalized result of comparing a Dart value with oracle JSON.
Constructors
-
DifferentialComparison({required Object? dart, required Object? oracle, required bool matches, List<
DifferentialDifference> differences = const []}) -
Creates a comparison with immutable mismatch details.
const
Properties
- dart → Object?
-
Normalized Dart-side value used for comparison.
final
- dartJson → String
-
Pretty-printed Dart-side JSON for failed test diagnostics.
no setter
-
differences
→ List<
DifferentialDifference> -
Stable, path-sorted mismatches between dart and oracle.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- matches → bool
-
Whether dart and oracle had no semantic differences.
final
- oracle → Object?
-
Normalized oracle-side value used for comparison.
final
- oracleJson → String
-
Pretty-printed oracle-side JSON for failed test diagnostics.
no setter
- 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