Group class
A group containing test cases. The group's ID is unique in the context of this test run. It's used elsewhere in the protocol to refer to this group without including its full representation.
The implicit group at the root of each test suite has null name and parentID attributes.
The line, column, and url fields indicate the location the group() function was called to create this group. 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. {@endtemplate}
- Annotations
-
- @freezed
Constructors
- Group({required int id, required String name, required int suiteID, int? parentID, required int testCount, int? line, int? column, String? url, required Metadata metadata})
-
A test suite corresponding to a loaded test file.
The suite's ID is unique in the context of this test run.
It's used elsewhere in the protocol to refer to this suite without including
its full representation.
factory
-
Group.fromJson(Map<
String, Object?> json) -
Deserialize a Group from a JSON Object
factory
Properties
- column → int?
-
The (1-based) column on which the group was defined, or
null
.no setterinherited -
copyWith
→ $GroupCopyWith<
Group> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
An opaque ID for the group.
no setterinherited
- line → int?
-
The (1-based) line on which the group was defined, or
null
.no setterinherited - metadata → Metadata
-
This field is deprecated and should not be used.
no setterinherited
- name → String
-
The name of the group, including prefixes from any containing groups.
no setterinherited
- parentID → int?
-
The ID of the group's parent group, unless it's the root group.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- suiteID → int
-
The ID of the suite containing this group.
no setterinherited
- testCount → int
-
The number of tests (recursively) within this group.
no setterinherited
- url → String?
-
The URL for the file in which the group 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