Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: third_party/coverage-3.7.1/coverage/summary.py

Issue 225633007: Upgrade to coverage 3.7.1 and have it auto-build itself on first use. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: sigh our imports are a mess Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/coverage-3.7.1/coverage/results.py ('k') | third_party/coverage-3.7.1/coverage/templite.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698