summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-10-15 06:38:10 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-10-15 06:38:10 -0400
commit19e52a9bdcfc3318efb2cdcbf1e9cf3343b3dbf8 (patch)
tree972db1acbbc684ed65af93e96f971e535e7d28c3 /coverage/summary.py
parent3722bcb056f0d1bf5562d8c31341eaf0a7ae5977 (diff)
downloadpython-coveragepy-git-19e52a9bdcfc3318efb2cdcbf1e9cf3343b3dbf8.tar.gz
Refactor the analysis results so we aren't passing so many tuples around.
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index 916b41e7..989256fc 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -41,16 +41,16 @@ class SummaryReporter(Reporter):
for cu in self.code_units:
try:
- statements, _, missing, readable = self.coverage._analyze(cu)
- n = len(statements)
- m = n - len(missing)
+ analysis = self.coverage._analyze(cu)
+ n = len(analysis.statements)
+ m = n - len(analysis.missing)
if n > 0:
pc = 100.0 * m / n
else:
pc = 100.0
args = (cu.name, n, m, pc)
if self.show_missing:
- args = args + (readable,)
+ args = args + (analysis.missing_formatted(),)
outfile.write(fmt_coverage % args)
total_units += 1
total_statements = total_statements + n