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/annotate.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/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 3130c00..2fa9d5c 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 |