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

Unified Diff: tools/telemetry/third_party/coverage/lab/cover-plugin.txt

Issue 1366913004: Add coverage Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tools/telemetry/third_party/coverage/lab/cover-plugin.txt
diff --git a/tools/telemetry/third_party/coverage/lab/cover-plugin.txt b/tools/telemetry/third_party/coverage/lab/cover-plugin.txt
new file mode 100644
index 0000000000000000000000000000000000000000..927fff817c87196790d7ba4cff171b5b762ffd77
--- /dev/null
+++ b/tools/telemetry/third_party/coverage/lab/cover-plugin.txt
@@ -0,0 +1,54 @@
+== nose cover plugin flow ==
+
+- configure:
+ set self.coverPackages: list of names of packages
+
+- begin:
+ self.skipModules = sys.modules.keys()[:]
+ set coverage.exclude (why?)
+ coverage.start
+
+
+- report:
+ coverage.stop()
+ modules = [ module
+ for name, module in sys.modules.items()
+ if self.wantModuleCoverage(name, module) ]
+ coverage.report(modules)
+
+- wantModuleCoverage(name, module):
+ if self.coverPackages:
+ for package in self.coverPackages:
+ want_it = False
+ if name.startswith(package):
+ if self.coverTests:
+ want_it = True
+ else:
+ want_it = not self.conf.testMatch.search(name)
+ if want_it:
+ return True
+ if name in self.skipModules:
+ return False
+
+ if self.conf.testMatch.search(name) and not self.coverTests:
+ return False
+
+ return not self.coverPackages
+
+- wantFile:
+
+
+
+
+source, include, omit:
+
+ # self.source is a list of canonical directories for the packages.
+ # canon_dir is the canonical directory containing the source file.
+
+ if self.source:
+ for s in self.source:
+ if is_contained(s, canon_dir):
+ break
+ else:
+ # This file wasn't in any source.
+ return False
« no previous file with comments | « tools/telemetry/third_party/coverage/lab/branches.py ('k') | tools/telemetry/third_party/coverage/lab/coverage-03.dtd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698