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 | 19e52a9bdcfc3318efb2cdcbf1e9cf3343b3dbf8 (patch) | |
tree | 972db1acbbc684ed65af93e96f971e535e7d28c3 /coverage/annotate.py | |
parent | 3722bcb056f0d1bf5562d8c31341eaf0a7ae5977 (diff) | |
download | python-coveragepy-git-19e52a9bdcfc3318efb2cdcbf1e9cf3343b3dbf8.tar.gz |
Refactor the analysis results so we aren't passing so many tuples around.
Diffstat (limited to 'coverage/annotate.py')
-rw-r--r-- | coverage/annotate.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/coverage/annotate.py b/coverage/annotate.py index 3130c001..2fa9d5cf 100644 --- a/coverage/annotate.py +++ b/coverage/annotate.py @@ -37,7 +37,7 @@ class AnnotateReporter(Reporter): """Run the report.""" self.report_files(self.annotate_file, morfs, directory, omit_prefixes) - def annotate_file(self, cu, statements, excluded, missing): + def annotate_file(self, cu, analysis): """Annotate a single file. `cu` is the CodeUnit for the file to annotate. @@ -55,6 +55,10 @@ class AnnotateReporter(Reporter): dest_file = filename + ",cover" dest = open(dest_file, 'w') + statements = analysis.statements + missing = analysis.missing + excluded = analysis.excluded + lineno = 0 i = 0 j = 0 |