TestFailureDetails class

Constructors

TestFailureDetails({required TestFailureKind kind, required String message, Map<String, dynamic> target = const {}, String? phase})
const
TestFailureDetails.fromExecutionCode(String? code, String text, {String? phase, Map<String, dynamic> target = const {}})
Preserves the execution kernel's machine classification at the report boundary instead of guessing from wording alone.
factory
TestFailureDetails.fromJson(Map<String, dynamic> json)
factory
TestFailureDetails.fromMessage(String text, {String? phase, Map<String, dynamic> target = const {}})
Best-effort structured kind from a free-form failure message.
factory
TestFailureDetails.fromSecondaryMessage(String text)
Classifies a non-primary kernel diagnostic without treating it as the test's assertion failure.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
kind → TestFailureKind
final
message → String
final
phase → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
target → Map<String, dynamic>
final

Methods

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

Operators

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