createHitmap function

  1. @Deprecated('Migrate to HitMap.parseJson')
Future<Map<String, Map<int, int>>> createHitmap(
  1. List<Map<String, dynamic>> jsonResult, {
  2. bool checkIgnoredLines = false,
  3. @Deprecated('Use packagePath') String? packagesPath,
  4. String? packagePath,
})

Creates a single hitmap from a raw json object.

Throws away all entries that are not resolvable.

Implementation

@Deprecated('Migrate to HitMap.parseJson')
Future<Map<String, Map<int, int>>> createHitmap(
  List<Map<String, dynamic>> jsonResult, {
  bool checkIgnoredLines = false,
  @Deprecated('Use packagePath') String? packagesPath,
  String? packagePath,
}) async {
  final result = await HitMap.parseJson(
    jsonResult,
    checkIgnoredLines: checkIgnoredLines,
    packagesPath: packagesPath,
    packagePath: packagePath,
  );
  return result.map((key, value) => MapEntry(key, value.lineHits));
}