summaryrefslogtreecommitdiff
path: root/coverage/summary.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-09-02 22:06:16 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-09-02 22:06:16 -0400
commit3a7cc512247059017ddd5ced1344578c845c9edd (patch)
treeb9bd7cd406d43154e45fd563ad7c89e05ebd8400 /coverage/summary.py
parent26316d5d71e33daadcf6272288fd5a6a7a5e8423 (diff)
downloadpython-coveragepy-git-3a7cc512247059017ddd5ced1344578c845c9edd.tar.gz
Pass config objects around to limit the sprawl of argument lists.
Diffstat (limited to 'coverage/summary.py')
-rw-r--r--coverage/summary.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/coverage/summary.py b/coverage/summary.py
index a1206af5..599ae782 100644
--- a/coverage/summary.py
+++ b/coverage/summary.py
@@ -14,13 +14,14 @@ class SummaryReporter(Reporter):
self.show_missing = show_missing
self.branches = coverage.data.has_arcs()
- def report(self, morfs, omit=None, outfile=None, include=None):
+ def report(self, morfs, outfile=None, config=None):
"""Writes a report summarizing coverage statistics per module.
- See `coverage.report()` for other arguments.
+ `outfile` is a file object to write the summary to. `config` is a
+ CoverageConfig instance.
"""
- self.find_code_units(morfs, omit, include)
+ self.find_code_units(morfs, config)
# Prepare the formatting strings
max_name = max([len(cu.name) for cu in self.code_units] + [5])