diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2016-03-27 13:44:49 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2016-03-27 13:44:49 -0400 |
commit | 928b6cd61a2aca930574b4bc2d731975a14d6603 (patch) | |
tree | 0b0ba37079d66058d874f7c40e0a3b7248981a71 /coverage/html.py | |
parent | a80a1e589d2c0864de2ddd2c9331599471b61fc0 (diff) | |
download | python-coveragepy-928b6cd61a2aca930574b4bc2d731975a14d6603.tar.gz |
Better descriptions of missing one-line executables. Part of #475
Diffstat (limited to 'coverage/html.py')
-rw-r--r-- | coverage/html.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coverage/html.py b/coverage/html.py index 9471db9..d4fb751 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -190,6 +190,7 @@ class HtmlReporter(Reporter): if self.has_arcs: missing_branch_arcs = analysis.missing_branch_arcs() + arcs_executed = analysis.arcs_executed() # These classes determine which lines are highlighted by default. c_run = "run hide_run" @@ -219,7 +220,7 @@ class HtmlReporter(Reporter): shorts.append("exit") else: shorts.append(b) - longs.append(fr.missing_arc_description(lineno, b)) + longs.append(fr.missing_arc_description(lineno, b, arcs_executed)) # 202F is NARROW NO-BREAK SPACE. # 219B is RIGHTWARDS ARROW WITH STROKE. short_fmt = "%s ↛ %s" |