OLD | NEW |
1 """Summary reporting""" | 1 """Summary reporting""" |
2 | 2 |
3 import sys | 3 import sys |
4 | 4 |
5 from coverage.report import Reporter | 5 from coverage.report import Reporter |
6 from coverage.results import Numbers | 6 from coverage.results import Numbers |
7 from coverage.misc import NotPython | 7 from coverage.misc import NotPython |
8 | 8 |
9 | 9 |
10 class SummaryReporter(Reporter): | 10 class SummaryReporter(Reporter): |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 outfile.write(rule) | 77 outfile.write(rule) |
78 args = ("TOTAL", total.n_statements, total.n_missing) | 78 args = ("TOTAL", total.n_statements, total.n_missing) |
79 if self.branches: | 79 if self.branches: |
80 args += (total.n_branches, total.n_missing_branches) | 80 args += (total.n_branches, total.n_missing_branches) |
81 args += (total.pc_covered_str,) | 81 args += (total.pc_covered_str,) |
82 if self.config.show_missing: | 82 if self.config.show_missing: |
83 args += ("",) | 83 args += ("",) |
84 outfile.write(fmt_coverage % args) | 84 outfile.write(fmt_coverage % args) |
85 | 85 |
86 return total.pc_covered | 86 return total.pc_covered |
OLD | NEW |