From f6bc21ddee35703d80914d245f06ee5ce594eb97 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 2 Nov 2009 11:10:19 -0500 Subject: HTML reporting makes use of Numbers to simplify and centralize the code. --- coverage/htmlfiles/index.html | 18 +++++++++--------- coverage/htmlfiles/pyfile.html | 10 +++++----- 2 files changed, 14 insertions(+), 14 deletions(-) (limited to 'coverage/htmlfiles') diff --git a/coverage/htmlfiles/index.html b/coverage/htmlfiles/index.html index 03a83cc3..1e11e9e1 100644 --- a/coverage/htmlfiles/index.html +++ b/coverage/htmlfiles/index.html @@ -10,7 +10,7 @@ @@ -30,24 +30,24 @@ {% for file in files %} {{file.cu.name}} - {{file.stm}} - {{file.run}} - {{file.exc}} + {{file.nums.n_statements}} + {{file.nums.n_run}} + {{file.nums.n_excluded}} {% if arcs %} {{file.par}} {% endif %} - {{file.pc_cov|format_pct}}% + {{file.nums.percent_covered|format_pct}}% {% endfor %} Total -{{total_stm}} -{{total_run}} -{{total_exc}} +{{totals.n_statements}} +{{totals.n_run}} +{{totals.n_excluded}} {% if arcs %} {{total_par}} {% endif %} -{{total_cov|format_pct}}% +{{totals.percent_covered|format_pct}}% diff --git a/coverage/htmlfiles/pyfile.html b/coverage/htmlfiles/pyfile.html index e2ec19c3..5c9509bc 100644 --- a/coverage/htmlfiles/pyfile.html +++ b/coverage/htmlfiles/pyfile.html @@ -23,13 +23,13 @@ function toggle_lines(btn, cls) {