matchesProfileSelection static method

bool matchesProfileSelection(
  1. EnsembleTestCase test,
  2. EnsembleTestSelection selection
)

Implementation

static bool matchesProfileSelection(
  EnsembleTestCase test,
  EnsembleTestSelection selection,
) {
  if (selection.profiles.isEmpty) return true;
  final profile = test.profile;
  if (profile != null && selection.profiles.contains(profile)) return true;
  return test.profiles.any((name) => selection.profiles.contains(name));
}