projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Spelling fixes
[open-adventure.git]
/
tests
/
coverage_dungeon.py
diff --git
a/tests/coverage_dungeon.py
b/tests/coverage_dungeon.py
index 1f27838fbca6fcdd4c1cf10b25fcb4a6333d1f2b..c583ffb5f79689fbb9244a86d86edec4be009965 100755
(executable)
--- a/
tests/coverage_dungeon.py
+++ b/
tests/coverage_dungeon.py
@@
-25,7
+25,7
@@
YAML_PATH = "../adventure.yaml"
HTML_TEMPLATE_PATH = "../templates/coverage_dungeon.html.tpl"
DEFAULT_HTML_OUTPUT_PATH = "../coverage/adventure.yaml.html"
DANGLING_ACTIONS = ["ACT_VERSION"]
HTML_TEMPLATE_PATH = "../templates/coverage_dungeon.html.tpl"
DEFAULT_HTML_OUTPUT_PATH = "../coverage/adventure.yaml.html"
DANGLING_ACTIONS = ["ACT_VERSION"]
-DANGLING_MESSAGES = ["SAVERESUME_DISABLED"
, "SAVE_TAMPERING"
]
+DANGLING_MESSAGES = ["SAVERESUME_DISABLED"]
STDOUT_REPORT_CATEGORY = " {name:.<19}: {percent:5.1f}% covered ({covered} of {total})\n"
STDOUT_REPORT_CATEGORY = " {name:.<19}: {percent:5.1f}% covered ({covered} of {total})\n"
@@
-99,7
+99,7
@@
def obj_coverage(objects, text, report):
def loc_coverage(locations, text, report):
# locations have a long and a short description, that each have to
def loc_coverage(locations, text, report):
# locations have a long and a short description, that each have to
- # be checked sep
e
rately
+ # be checked sep
a
rately
for name, loc in locations:
desc = loc["description"]
if name not in report["messages"]:
for name, loc in locations:
desc = loc["description"]
if name not in report["messages"]:
@@
-173,7
+173,7
@@
def actions_coverage(items, text, report):
report["covered"] += 1
def coverage_report(db, check_file_contents):
report["covered"] += 1
def coverage_report(db, check_file_contents):
- # Create report for each cat
a
gory, including total items, number of items
+ # Create report for each cat
e
gory, including total items, number of items
# covered, and a list of the covered messages
report = {}
for name in db.keys():
# covered, and a list of the covered messages
report = {}
for name in db.keys():