projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move NEWS file to asciidoc.
[open-adventure.git]
/
tests
/
coverage_dungeon.py
diff --git
a/tests/coverage_dungeon.py
b/tests/coverage_dungeon.py
index 80102e3b01c53c5c3fab81d83017329cab66a8a5..2b4c5157bf67fcd2206d5a83ea5b1f809c33e71d 100755
(executable)
--- a/
tests/coverage_dungeon.py
+++ b/
tests/coverage_dungeon.py
@@
-1,4
+1,6
@@
#!/usr/bin/env python3
#!/usr/bin/env python3
+# SPDX-FileCopyrightText: Eric S. Raymond <esr@thyrsus.com>
+# SPDX-License-Identifier: BSD-2-Clause
"""
This is the open-adventure dungeon text coverage report generator. It
consumes a YAML description of the dungeon and determines whether the
"""
This is the open-adventure dungeon text coverage report generator. It
consumes a YAML description of the dungeon and determines whether the
@@
-7,7
+9,7
@@
various strings contained are present within the test check files.
The default HTML output is appropriate for use with Gitlab CI.
You can override it with a command-line argument.
The default HTML output is appropriate for use with Gitlab CI.
You can override it with a command-line argument.
-The DANGLING lists are for actions and messages that should be
+The DANGLING lists are for actions and messages that should be
considered always found even if the checkfile search doesn't find them.
Typically this will because an action emit a templated message that
can't be regression-tested by equality.
considered always found even if the checkfile search doesn't find them.
Typically this will because an action emit a templated message that
can't be regression-tested by equality.
@@
-99,7
+101,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
+175,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():