From e3a3e43d743ff442c818d41bfe4f33176bf7646c Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 8 Nov 2009 20:47:11 -0500 Subject: Annotations on yellow HTML lines with the line numbers not visited. --- coverage/html.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'coverage/html.py') diff --git a/coverage/html.py b/coverage/html.py index b592335..dd769b5 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -114,6 +114,7 @@ class HtmlReporter(Reporter): if part == '\n': line_class = "" + annotate = "" if lineno in analysis.statements: line_class += " stm" if lineno in analysis.excluded: @@ -123,13 +124,15 @@ 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])) elif lineno in analysis.statements: line_class += c_run lineinfo = { 'html': "".join(line), 'number': lineno, - 'class': line_class.strip() or "pln" + 'class': line_class.strip() or "pln", + 'annotate': annotate, } lines.append(lineinfo) -- cgit v1.2.1