parseCoverage function

  1. @Deprecated('Migrate to HitMap.parseFiles')
Future<Map<String, Map<int, int>>> parseCoverage(
  1. Iterable<File> files,
  2. int _, {
  3. bool checkIgnoredLines = false,
  4. @Deprecated('Use packagePath') String? packagesPath,
  5. String? packagePath,
})

Generates a merged hitmap from a set of coverage JSON files.

Implementation

@Deprecated('Migrate to HitMap.parseFiles')
Future<Map<String, Map<int, int>>> parseCoverage(
  Iterable<File> files,
  int _, {
  bool checkIgnoredLines = false,
  @Deprecated('Use packagePath') String? packagesPath,
  String? packagePath,
}) async {
  final result = await HitMap.parseFiles(files,
      checkIgnoredLines: checkIgnoredLines,
      packagesPath: packagesPath,
      packagePath: packagePath);
  return result.map((key, value) => MapEntry(key, value.lineHits));
}