From ad8321bd6d874ce43666c9cb69a7a664776a07fa Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 4 Feb 2016 22:56:23 -0500 Subject: Add arc_destination_description so we can next make better descriptions --- coverage/html.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'coverage/html.py') 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 ↛ %s" annotate_html = ",   ".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: -- cgit v1.2.1