Partially address Gitlsb issue #64: Coverage summary looks wrong
authorEric S. Raymond <esr@thyrsus.com>
Thu, 9 Mar 2023 02:54:45 +0000 (21:54 -0500)
committerEric S. Raymond <esr@thyrsus.com>
Thu, 9 Mar 2023 02:54:45 +0000 (21:54 -0500)
tests/coverage_dungeon.py

index 288b1c01a707d4f323ac35aa5647de71a3bad519..d484193707a33f79755ada3a274625a34a883eae 100755 (executable)
@@ -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