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

Unified Diff: tools/telemetry/third_party/coverage/tests/farm/annotate/gold/white.py,cover

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/tests/farm/annotate/gold/white.py,cover
diff --git a/tools/telemetry/third_party/coverage/tests/farm/annotate/gold/white.py,cover b/tools/telemetry/third_party/coverage/tests/farm/annotate/gold/white.py,cover
new file mode 100644
index 0000000000000000000000000000000000000000..fc16322674e633e6f514279974d35a49ead7a66e
--- /dev/null
+++ b/tools/telemetry/third_party/coverage/tests/farm/annotate/gold/white.py,cover
@@ -0,0 +1,36 @@
+ # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+ # For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
+
+ # A test case sent to me by Steve White
+
+> def f(self):
+! if self==1:
+! pass
+! elif self.m('fred'):
+! pass
+! elif (g==1) and (b==2):
+! pass
+! elif self.m('fred')==True:
+! pass
+! elif ((g==1) and (b==2))==True:
+! pass
+! else:
+! pass
+
+> def g(x):
+> if x == 1:
+> a = 1
+! else:
+! a = 2
+
+> g(1)
+
+> def h(x):
+- if 0: #pragma: no cover
+- pass
+> if x == 1:
+! a = 1
+> else:
+> a = 2
+
+> h(2)

Powered by Google App Engine
This is Rietveld 408576698