Index: tools/parse_llvm_coverage.py |
diff --git a/tools/parse_llvm_coverage.py b/tools/parse_llvm_coverage.py |
index 2eadddd3cb1f7615758df257d92b5955648462c2..f721bd50781f7bcc154d691ea0d6153c17a983a4 100755 |
--- a/tools/parse_llvm_coverage.py |
+++ b/tools/parse_llvm_coverage.py |
@@ -107,12 +107,14 @@ def _nanobench_json(results, properties, key): |
_testname(f): { |
'coverage': { |
'percent': percent, |
+ 'lines_not_covered': not_covered_lines, |
'options': { |
'fullname': f, |
'dir': os.path.dirname(f), |
+ 'source_type': 'coverage', |
}, |
}, |
- } for percent, f in results |
+ } for percent, not_covered_lines, f in results |
} |
return rv |
@@ -150,6 +152,7 @@ def _get_per_file_summaries(line_by_line): |
covered_lines += 1 |
if total_lines > 0: |
per_file.append((float(covered_lines)/float(total_lines)*100.0, |
+ total_lines - covered_lines, |
filepath)) |
return per_file |