summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/html.py')
-rw-r--r--coverage/html.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/coverage/html.py b/coverage/html.py
index 3877c834..f8e84acd 100644
--- a/coverage/html.py
+++ b/coverage/html.py
@@ -68,10 +68,10 @@ class HtmlReporter(Reporter):
arcs = self.arcs
# These classes determine which lines are highlighted by default.
- c_run = " run hide"
+ c_run = " run hide_run"
c_exc = " exc"
c_mis = " mis"
- c_par = " par"
+ c_par = " par" + c_run
lines = []
@@ -89,7 +89,13 @@ class HtmlReporter(Reporter):
elif self.arcs and lineno in missing_branch_arcs:
line_class += c_par
n_par += 1
- annotate = " ".join(map(str, missing_branch_arcs[lineno]))
+ annlines = []
+ for b in missing_branch_arcs[lineno]:
+ if b == -1:
+ annlines.append("exit")
+ else:
+ annlines.append(str(b))
+ annotate = " ".join(annlines)
elif lineno in analysis.statements:
line_class += c_run