Test class
A single test case. The test's ID is unique in the context of this test run. It's used elsewhere in the protocol to refer to this test without including its full representation.
- Annotations
-
- @JsonSerializable()
Constructors
-
Test({required int id, required String name, required int suiteID, required List<
int> groupIDs, required TestMetadata metadata, int? line, int? column, String? url, int? rootLine, int? rootColumn, String? rootUrl}) - A single test case. The test's ID is unique in the context of this test run. It's used elsewhere in the protocol to refer to this test without including its full representation.
-
Test.fromJson(Map<
String, dynamic> json) -
A single test case. The test's ID is unique in the context of this test run.
It's used elsewhere in the protocol to refer to this test
without including its full representation.
factory
Properties
- column → int?
-
The (1-based) column on which the test was defined, or
null
.final -
groupIDs
→ List<
int> -
The IDs of groups containing this test, in order from outermost to
innermost.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
An opaque ID for the test.
final
- line → int?
-
The (1-based) line on which the test was defined, or
null
.final - metadata → TestMetadata
-
This field is deprecated and should not be used.
final
- name → String
-
The name of the test, including prefixes from any containing groups.
final
- rootColumn → int?
-
The (1-based) line on in the original test suite from which the test
originated.
final
- rootLine → int?
-
The (1-based) line in the original test suite from which the test
originated.
final
- rootUrl → String?
-
The URL for the original test suite in which the test was defined.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suiteID → int
-
The ID of the suite containing this test.
final
- url → String?
-
The URL for the file in which the test was defined, or
null
.final
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