Group constructor
Group(
- String name,
- Iterable<
GroupEntry> entries, { - Metadata? metadata,
- Trace? trace,
- TestLocation? location,
- Test? setUpAll,
- Test? tearDownAll,
Implementation
Group(
this.name,
Iterable<GroupEntry> entries, {
Metadata? metadata,
this.trace,
this.location,
this.setUpAll,
this.tearDownAll,
}) : entries = List<GroupEntry>.unmodifiable(entries),
metadata = metadata ?? Metadata() {
for (var entry in entries) {
assert(entry.parent == null);
entry.parent = this;
}
assert(setUpAll?.parent == null);
setUpAll?.parent = this;
assert(tearDownAll?.parent == null);
tearDownAll?.parent = this;
}