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
commitad8321bd6d874ce43666c9cb69a7a664776a07fa (patch)
tree7b84c108652247d0eb02b71bf89651c32a41a1db /coverage/html.py
parent355ff443a4ec45078fa26dc7dfbb4026f6862f15 (diff)
downloadpython-coveragepy-ad8321bd6d874ce43666c9cb69a7a664776a07fa.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 ce39453..19898cb 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: