and function

  1. @isTestGroup
void and(
  1. String description,
  2. dynamic body()
)

Implementation

@isTestGroup
void and(
  String description,
  dynamic Function() body,
) {
  if (body is Future Function()) {
    throw ArgumentError('body may not be async.');
  }

  group(
    '${getAdditionalPads()}And $description',
    () {
      body();
    },
  );
}