summaryrefslogtreecommitdiff
path: root/tests/gold/annotate/white
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-28 06:19:16 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-28 06:19:16 -0400
commite36475a387b734711fbbe84c0fe4b6d0777cd9ec (patch)
tree67308e58923d2c8febc60578d1d0c9b0aba5a206 /tests/gold/annotate/white
parentb7fc90dca7bed9f5dffe615a4fdba1dac9ea57d5 (diff)
downloadpython-coveragepy-git-e36475a387b734711fbbe84c0fe4b6d0777cd9ec.tar.gz
refactor(test): name this gold file properly
Diffstat (limited to 'tests/gold/annotate/white')
-rw-r--r--tests/gold/annotate/white/white.py,cover33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/gold/annotate/white/white.py,cover b/tests/gold/annotate/white/white.py,cover
new file mode 100644
index 00000000..36b0b993
--- /dev/null
+++ b/tests/gold/annotate/white/white.py,cover
@@ -0,0 +1,33 @@
+ # 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)