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.
Most tests will have at least one group ID, representing the implicit root group. However, some may not; these should be treated as having no group metadata.
The line, column, and url fields indicate the location the test() function was called to create this test. They're treated as a unit: they'll either all be null or they'll all be non-null. The URL is always absolute, and may be a package: URL.
- Annotations
-
- @freezed
Constructors
-
Test({required int id, required String name, required int suiteID, required List<
int> groupIDs, int? line, int? column, String? url, @JsonKey(name: 'root_line') int? rootLine, @JsonKey(name: 'root_column') int? rootColumn, @JsonKey(name: 'root_url') String? rootUrl, required Metadata metadata}) -
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
-
Test.fromJson(Map<
String, Object?> json) -
Deserialize a Test from a JSON Object
factory
Properties
- column → int?
-
The (1-based) column on which the test was defined, or
null
.no setterinherited -
copyWith
→ $TestCopyWith<
Test> -
no setterinherited
-
groupIDs
→ List<
int> -
The IDs of groups containing this test, in order from outermost to
innermost.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
An opaque ID for the test.
no setterinherited
- line → int?
-
The (1-based) line on which the test was defined, or
null
.no setterinherited - metadata → Metadata
-
Metadatas about a test
no setterinherited
- name → String
-
The name of the test, including prefixes from any containing groups.
no setterinherited
- rootColumn → int?
-
The (1-based) line on in the original test suite from which the test
originated.
no setterinherited
- rootLine → int?
-
The (1-based) line in the original test suite from which the test
originated.
no setterinherited
- rootUrl → String?
-
The URL for the original test suite in which the test was defined.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suiteID → int
-
The ID of the suite containing this test.
no setterinherited
- url → String?
-
The URL for the file in which the test was defined, or
null
.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited