Partially address Gitlsb issue #64: Coverage summary looks wrong

This commit is contained in:
Eric S. Raymond 2023-03-08 21:54:45 -05:00
parent 98b95e92ee
commit 83c32598be

View file

@ -147,7 +147,7 @@ def threshold_coverage(classes, text, report):
# property
for name, item in enumerate(classes):
if name not in report["messages"]:
report["messages"][name] = {"covered" : "False"}
report["messages"][name] = {"covered" : False}
report["total"] += 1
if not report["messages"][name]["covered"] and search(item["message"], text):
report["messages"][name]["covered"] = True