[test suite] add missing coverage report to coverage_diff.py

This commit is contained in:
Michael Rash
2015-12-05 05:46:10 -08:00
parent 044ebf5e73
commit 793813e8ef
+13
View File
@@ -29,6 +29,7 @@ def main():
new_zero_coverage = extract_zero_coverage(new_lcov_file)
### diff the two dictionaries
print "[+] New coverage:"
for f in old_zero_coverage:
printed_file = 0
if f in new_zero_coverage:
@@ -40,6 +41,18 @@ def main():
printed_file = 1
print "[+] new '" + ctype + "' coverage: " + val
print "\n[-] Missing coverage from the previous run:"
for f in new_zero_coverage:
printed_file = 0
if f in old_zero_coverage:
for ctype in new_zero_coverage[f]:
for val in sorted(new_zero_coverage[f][ctype]):
if val not in old_zero_coverage[f][ctype]:
if not printed_file:
print "[-] Coverage: " + f
printed_file = 1
print "[-] missing '" + ctype + "' coverage: " + val
def extract_zero_coverage(lcov_file):
zero_coverage = {}