summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-10-20 22:31:12 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-10-20 22:31:12 -0400
commit6c3042ad6f61af8027cf3d4c513d914d9620b896 (patch)
treea100535cc7c1f205882a7cdaf42c394b01d9bf8c /coverage/summary.py
parenta2db5014858f024b6866cf54bb9b09509aca9c18 (diff)
downloadpython-coveragepy-git-6c3042ad6f61af8027cf3d4c513d914d9620b896.tar.gz
Make the text report branch column match the HTML report
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 9d31c226..a166ec2c 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 += ("",)