omitOptimizedTest method

Iterable<String> omitOptimizedTest(
  1. List<FileSystemEntity> allFiles
)

Implementation

Iterable<String> omitOptimizedTest(List<FileSystemEntity> allFiles) sync* {
  for (final file in allFiles) {
    if (file is! File) continue;

    final fileName = path.basename(file.path);

    if (fileName.contains(optimizedTestBasename)) {
      continue;
    }

    yield file.path;
  }
}