From 6fc10248ef78842f2e2b943eb79daa0525fb75fc Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Mon, 20 Oct 2014 22:31:12 -0400 Subject: Make the text report branch column match the HTML report --- coverage/summary.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coverage/summary.py') diff --git a/coverage/summary.py b/coverage/summary.py index 9d31c22..a166ec2 100644 --- a/coverage/summary.py +++ b/coverage/summary.py @@ -29,7 +29,7 @@ class SummaryReporter(Reporter): header = (fmt_name % "Name") + " Stmts Miss" fmt_coverage = fmt_name + "%6d %6d" if self.branches: - header += " Branch BrMiss" + header += " Branch BrPart" fmt_coverage += " %6d %6d" width100 = Numbers.pc_str_width() header += "%*s" % (width100+4, "Cover") @@ -56,7 +56,7 @@ class SummaryReporter(Reporter): nums = analysis.numbers args = (cu.name, nums.n_statements, nums.n_missing) if self.branches: - args += (nums.n_branches, nums.n_missing_branches) + args += (nums.n_branches, nums.n_partial_branches) args += (nums.pc_covered_str,) if self.config.show_missing: missing_fmtd = analysis.missing_formatted() @@ -84,7 +84,7 @@ class SummaryReporter(Reporter): outfile.write(rule) args = ("TOTAL", total.n_statements, total.n_missing) if self.branches: - args += (total.n_branches, total.n_missing_branches) + args += (total.n_branches, total.n_partial_branches) args += (total.pc_covered_str,) if self.config.show_missing: args += ("",) -- cgit v1.2.1