diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-15 06:38:10 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-10-15 06:38:10 -0400 |
commit | 673bdfc8a1e9c77f0a95552a80dea252069eddec (patch) | |
tree | abcfcab7061425a63d6ef6b0c0b68b2701061e57 /coverage/summary.py | |
parent | 9fda137484e08dba5462b1f6dd2cd2c4a2d062b9 (diff) | |
download | python-coveragepy-673bdfc8a1e9c77f0a95552a80dea252069eddec.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.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/summary.py b/coverage/summary.py index 916b41e..989256f 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 |