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

Side by Side Diff: tools/telemetry/third_party/coverage/tests/farm/annotate/src/white.py

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 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2 # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
3
4 # A test case sent to me by Steve White
5
6 def f(self):
7 if self==1:
8 pass
9 elif self.m('fred'):
10 pass
11 elif (g==1) and (b==2):
12 pass
13 elif self.m('fred')==True:
14 pass
15 elif ((g==1) and (b==2))==True:
16 pass
17 else:
18 pass
19
20 def g(x):
21 if x == 1:
22 a = 1
23 else:
24 a = 2
25
26 g(1)
27
28 def h(x):
29 if 0: #pragma: no cover
30 pass
31 if x == 1:
32 a = 1
33 else:
34 a = 2
35
36 h(2)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698