From: Eric S. Raymond Date: Thu, 9 Mar 2023 03:55:12 +0000 (-0500) Subject: Complete fix of GitLab issue #64: Coverage summary looks wrong X-Git-Tag: 1.14~3 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=f53476f82624231425cf381906952ecabbdb52d7;p=open-adventure.git Complete fix of GitLab issue #64: Coverage summary looks wrong --- diff --git a/tests/coverage_dungeon.py b/tests/coverage_dungeon.py index d484193..80102e3 100755 --- a/tests/coverage_dungeon.py +++ b/tests/coverage_dungeon.py @@ -158,7 +158,7 @@ def arb_coverage(arb_msgs, text, report): if name not in report["messages"]: report["messages"][name] = {"covered" : False} 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["covered"] += 1