summaryrefslogtreecommitdiff
path: root/coverage/html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-02-04 22:56:23 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-02-04 22:56:23 -0500
commit5eeccec6a6113b9e2537d7d8716a7d580a4952c7 (patch)
tree39ed6893d1fdf0b58fff71fbb2461c3af70749ec /coverage/html.py
parentf455bd80cf7c8b4cb1cbda494f48d0a3dc710da0 (diff)
downloadpython-coveragepy-git-5eeccec6a6113b9e2537d7d8716a7d580a4952c7.tar.gz
Add arc_destination_description so we can next make better descriptions
Diffstat (limited to 'coverage/html.py')
-rw-r--r--coverage/html.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/coverage/html.py b/coverage/html.py
index ce394530..19898cbe 100644
--- a/coverage/html.py
+++ b/coverage/html.py
@@ -218,16 +218,15 @@ class HtmlReporter(Reporter):
for b in missing_branch_arcs[lineno]:
if b < 0:
shorts.append("exit")
- longs.append("the function exit")
else:
shorts.append(b)
- longs.append("line %d" % b)
+ longs.append(fr.arc_destination_description(b))
# 202F is NARROW NO-BREAK SPACE.
# 219B is RIGHTWARDS ARROW WITH STROKE.
short_fmt = "%s&#x202F;&#x219B;&#x202F;%s"
annotate_html = ",&nbsp;&nbsp; ".join(short_fmt % (lineno, d) for d in shorts)
- annotate_long = "Line %d was executed, but never jumped to " % lineno
+ annotate_long = "Line %d was executed, but didn't " % lineno
if len(longs) == 1:
annotate_long += longs[0]
elif len(longs) == 2: