summaryrefslogtreecommitdiff
path: root/coverage/htmlfiles/pyfile.html
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-10-27 07:21:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-10-27 07:21:41 -0400
commit52ef6f76547e757dc9ca9fc4aecdb9aec4a47368 (patch)
treee28bb135ec053c6237b089155b80c838b1f9dca2 /coverage/htmlfiles/pyfile.html
parent1c96df0e2a02da1d07730125a5738d8277397854 (diff)
downloadpython-coveragepy-git-52ef6f76547e757dc9ca9fc4aecdb9aec4a47368.tar.gz
Better reporting of partial lines, including leaving out partial stuff altogether if no arcs were measured.
Diffstat (limited to 'coverage/htmlfiles/pyfile.html')
-rw-r--r--coverage/htmlfiles/pyfile.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html
index 8a0dd4e9..91c56cbe 100644
--- a/coverage/htmlfiles/pyfile.html
+++ b/coverage/htmlfiles/pyfile.html
@@ -29,7 +29,9 @@ function toggle_lines(btn, cls) {
<span class='{{c_run.strip}}' onclick='toggle_lines(this, "run")'>{{n_run}} run</span>
<span class='{{c_exc.strip}}' onclick='toggle_lines(this, "exc")'>{{n_exc}} excluded</span>
<span class='{{c_mis.strip}}' onclick='toggle_lines(this, "mis")'>{{n_mis}} missing</span>
- <span class='{{c_par.strip}}' onclick='toggle_lines(this, "par")'>{{n_par}} partial</span>
+ {% if arcs %}
+ <span class='{{c_par.strip}}' onclick='toggle_lines(this, "par")'>{{n_par}} partial</span>
+ {% endif %}
</h2>
</div>
</div>