Group constructor

Group(
  1. String name,
  2. Iterable<GroupEntry> entries, {
  3. Metadata? metadata,
  4. Trace? trace,
  5. TestLocation? location,
  6. Test? setUpAll,
  7. 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;
}