Complete fix of GitLab issue #64: Coverage summary looks wrong

This commit is contained in:
Eric S. Raymond 2023-03-08 22:55:12 -05:00
parent 83c32598be
commit f53476f826

View file

@ -158,7 +158,7 @@ def arb_coverage(arb_msgs, text, report):
if name not in report["messages"]: if name not in report["messages"]:
report["messages"][name] = {"covered" : False} report["messages"][name] = {"covered" : False}
report["total"] += 1 report["total"] += 1
if not report["messages"][name]["covered"] and search(message, text) or name in DANGLING_MESSAGES: if not report["messages"][name]["covered"] and (search(message, text) or name in DANGLING_MESSAGES):
report["messages"][name]["covered"] = True report["messages"][name]["covered"] = True
report["covered"] += 1 report["covered"] += 1