projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
9b5142a
)
Prevent multiline string quotes from confusing Emacs.
author
Eric S. Raymond
<esr@thyrsus.com>
Sun, 16 Jul 2017 21:23:40 +0000
(17:23 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Sun, 16 Jul 2017 21:23:40 +0000
(17:23 -0400)
tests/coverage_dungeon.py
patch
|
blob
|
history
diff --git
a/tests/coverage_dungeon.py
b/tests/coverage_dungeon.py
index d530c82df325bf1d58e5cc6d4d99062e5e2cdec3..e991bdd1c86fddb87a77ec570f87de8235d203a0 100755
(executable)
--- a/
tests/coverage_dungeon.py
+++ b/
tests/coverage_dungeon.py
@@
-19,40
+19,40
@@
DEFAULT_HTML_OUTPUT_PATH = "../coverage/adventure.yaml.html"
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"
-HTML_SUMMARY_ROW =
"""
+HTML_SUMMARY_ROW =
'''
<tr>
<td class="headerItem"><a href="#{name}">{name}:</a></td>
<td class="headerCovTableEntry">{total}</td>
<td class="headerCovTableEntry">{covered}</td>
<td class="headerCovTableEntry">{percent:.1f}%</td>
</tr>
<tr>
<td class="headerItem"><a href="#{name}">{name}:</a></td>
<td class="headerCovTableEntry">{total}</td>
<td class="headerCovTableEntry">{covered}</td>
<td class="headerCovTableEntry">{percent:.1f}%</td>
</tr>
-"""
+'''
-HTML_CATEGORY_SECTION =
"""
+HTML_CATEGORY_SECTION =
'''
<tr id="{id}"></tr>
{rows}
<tr>
<td> </td>
</tr>
<tr id="{id}"></tr>
{rows}
<tr>
<td> </td>
</tr>
-"""
+'''
-HTML_CATEGORY_HEADER =
"""
+HTML_CATEGORY_HEADER =
'''
<tr>
<td class="tableHead" width="60%" colspan="{colspan}">{label}</td>
{cells}
</tr>
<tr>
<td class="tableHead" width="60%" colspan="{colspan}">{label}</td>
{cells}
</tr>
-"""
+'''
HTML_CATEGORY_HEADER_CELL = '<td class="tableHead" width="15%">{}</td>\n'
HTML_CATEGORY_COVERAGE_CELL = '<td class="{}"> </td>\n'
HTML_CATEGORY_HEADER_CELL = '<td class="tableHead" width="15%">{}</td>\n'
HTML_CATEGORY_COVERAGE_CELL = '<td class="{}"> </td>\n'
-HTML_CATEGORY_ROW =
"""
+HTML_CATEGORY_ROW =
'''
<tr>
<td class="coverFile" colspan="{colspan}">{id}</td>
{cells}
</tr>
<tr>
<td class="coverFile" colspan="{colspan}">{id}</td>
{cells}
</tr>
-"""
+'''
def search(needle, haystack):
# Search for needle in haystack, first escaping needle for regex, then
def search(needle, haystack):
# Search for needle in haystack, first escaping needle for regex, then