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

Side by Side 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, 2 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
OLDNEW
(Empty)
1 == nose cover plugin flow ==
2
3 - configure:
4 set self.coverPackages: list of names of packages
5
6 - begin:
7 self.skipModules = sys.modules.keys()[:]
8 set coverage.exclude (why?)
9 coverage.start
10
11
12 - report:
13 coverage.stop()
14 modules = [ module
15 for name, module in sys.modules.items()
16 if self.wantModuleCoverage(name, module) ]
17 coverage.report(modules)
18
19 - wantModuleCoverage(name, module):
20 if self.coverPackages:
21 for package in self.coverPackages:
22 want_it = False
23 if name.startswith(package):
24 if self.coverTests:
25 want_it = True
26 else:
27 want_it = not self.conf.testMatch.search(name)
28 if want_it:
29 return True
30 if name in self.skipModules:
31 return False
32
33 if self.conf.testMatch.search(name) and not self.coverTests:
34 return False
35
36 return not self.coverPackages
37
38 - wantFile:
39
40
41
42
43 source, include, omit:
44
45 # self.source is a list of canonical directories for the packages.
46 # canon_dir is the canonical directory containing the source file.
47
48 if self.source:
49 for s in self.source:
50 if is_contained(s, canon_dir):
51 break
52 else:
53 # This file wasn't in any source.
54 return False
OLDNEW
« 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