group function

void group(
  1. String name,
  2. void callback()
)

Creates a group of benchmarks.

A group's name is included in the names of any benchmarks or sub-groups it contains. setUp/setUpEach and tearDown/tearDownEach are also scoped to the containing group.

Implementation

void group(String name, void Function() callback) => _g.group(name, callback);