summaryrefslogtreecommitdiff
path: root/test/farm/annotate
diff options
context:
space:
mode:
Diffstat (limited to 'test/farm/annotate')
-rw-r--r--test/farm/annotate/annotate_dir.py7
-rw-r--r--test/farm/annotate/gold/white.py,cover33
-rw-r--r--test/farm/annotate/gold_anno_dir/a___init__.py,cover0
-rw-r--r--test/farm/annotate/gold_anno_dir/a_a.py,cover5
-rw-r--r--test/farm/annotate/gold_anno_dir/b___init__.py,cover0
-rw-r--r--test/farm/annotate/gold_anno_dir/b_b.py,cover3
-rw-r--r--test/farm/annotate/gold_anno_dir/multi.py,cover5
-rw-r--r--test/farm/annotate/gold_multi/a/__init__.py,cover0
-rw-r--r--test/farm/annotate/gold_multi/a/a.py,cover5
-rw-r--r--test/farm/annotate/gold_multi/b/__init__.py,cover0
-rw-r--r--test/farm/annotate/gold_multi/b/b.py,cover2
-rw-r--r--test/farm/annotate/gold_multi/multi.py,cover5
-rw-r--r--test/farm/annotate/gold_v24/white.py,cover33
-rw-r--r--test/farm/annotate/run.py7
-rw-r--r--test/farm/annotate/run_multi.py7
-rw-r--r--test/farm/annotate/src/a/__init__.py0
-rw-r--r--test/farm/annotate/src/a/a.py5
-rw-r--r--test/farm/annotate/src/b/__init__.py0
-rw-r--r--test/farm/annotate/src/b/b.py3
-rw-r--r--test/farm/annotate/src/multi.py5
-rw-r--r--test/farm/annotate/src/white.py33
21 files changed, 0 insertions, 158 deletions
diff --git a/test/farm/annotate/annotate_dir.py b/test/farm/annotate/annotate_dir.py
deleted file mode 100644
index 3e37f9ed..00000000
--- a/test/farm/annotate/annotate_dir.py
+++ /dev/null
@@ -1,7 +0,0 @@
-copy("src", "run")
-run("""
- coverage -e -x multi.py
- coverage -a -d out_anno_dir
- """, rundir="run")
-compare("run/out_anno_dir", "gold_anno_dir", "*,cover", left_extra=True)
-clean("run")
diff --git a/test/farm/annotate/gold/white.py,cover b/test/farm/annotate/gold/white.py,cover
deleted file mode 100644
index 36b0b993..00000000
--- a/test/farm/annotate/gold/white.py,cover
+++ /dev/null
@@ -1,33 +0,0 @@
- # 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)
diff --git a/test/farm/annotate/gold_anno_dir/a___init__.py,cover b/test/farm/annotate/gold_anno_dir/a___init__.py,cover
deleted file mode 100644
index e69de29b..00000000
--- a/test/farm/annotate/gold_anno_dir/a___init__.py,cover
+++ /dev/null
diff --git a/test/farm/annotate/gold_anno_dir/a_a.py,cover b/test/farm/annotate/gold_anno_dir/a_a.py,cover
deleted file mode 100644
index d0ff3c0c..00000000
--- a/test/farm/annotate/gold_anno_dir/a_a.py,cover
+++ /dev/null
@@ -1,5 +0,0 @@
-> def a(x):
-> if x == 1:
-> print("x is 1")
-! else:
-! print("x is not 1")
diff --git a/test/farm/annotate/gold_anno_dir/b___init__.py,cover b/test/farm/annotate/gold_anno_dir/b___init__.py,cover
deleted file mode 100644
index e69de29b..00000000
--- a/test/farm/annotate/gold_anno_dir/b___init__.py,cover
+++ /dev/null
diff --git a/test/farm/annotate/gold_anno_dir/b_b.py,cover b/test/farm/annotate/gold_anno_dir/b_b.py,cover
deleted file mode 100644
index 90d076f1..00000000
--- a/test/farm/annotate/gold_anno_dir/b_b.py,cover
+++ /dev/null
@@ -1,3 +0,0 @@
-> def b(x):
-> msg = "x is %s" % x
-> print(msg)
diff --git a/test/farm/annotate/gold_anno_dir/multi.py,cover b/test/farm/annotate/gold_anno_dir/multi.py,cover
deleted file mode 100644
index 2a5c59ce..00000000
--- a/test/farm/annotate/gold_anno_dir/multi.py,cover
+++ /dev/null
@@ -1,5 +0,0 @@
-> import a.a
-> import b.b
-
-> a.a.a(1)
-> b.b.b(2)
diff --git a/test/farm/annotate/gold_multi/a/__init__.py,cover b/test/farm/annotate/gold_multi/a/__init__.py,cover
deleted file mode 100644
index e69de29b..00000000
--- a/test/farm/annotate/gold_multi/a/__init__.py,cover
+++ /dev/null
diff --git a/test/farm/annotate/gold_multi/a/a.py,cover b/test/farm/annotate/gold_multi/a/a.py,cover
deleted file mode 100644
index fb3f5435..00000000
--- a/test/farm/annotate/gold_multi/a/a.py,cover
+++ /dev/null
@@ -1,5 +0,0 @@
-> def a(x):
-> if x == 1:
-> print "x is 1"
-! else:
-! print "x is not 1"
diff --git a/test/farm/annotate/gold_multi/b/__init__.py,cover b/test/farm/annotate/gold_multi/b/__init__.py,cover
deleted file mode 100644
index e69de29b..00000000
--- a/test/farm/annotate/gold_multi/b/__init__.py,cover
+++ /dev/null
diff --git a/test/farm/annotate/gold_multi/b/b.py,cover b/test/farm/annotate/gold_multi/b/b.py,cover
deleted file mode 100644
index a3f5daec..00000000
--- a/test/farm/annotate/gold_multi/b/b.py,cover
+++ /dev/null
@@ -1,2 +0,0 @@
-> def b(x):
-> print "x is %s" % x
diff --git a/test/farm/annotate/gold_multi/multi.py,cover b/test/farm/annotate/gold_multi/multi.py,cover
deleted file mode 100644
index 2a5c59ce..00000000
--- a/test/farm/annotate/gold_multi/multi.py,cover
+++ /dev/null
@@ -1,5 +0,0 @@
-> import a.a
-> import b.b
-
-> a.a.a(1)
-> b.b.b(2)
diff --git a/test/farm/annotate/gold_v24/white.py,cover b/test/farm/annotate/gold_v24/white.py,cover
deleted file mode 100644
index bbd8d428..00000000
--- a/test/farm/annotate/gold_v24/white.py,cover
+++ /dev/null
@@ -1,33 +0,0 @@
- # 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)
diff --git a/test/farm/annotate/run.py b/test/farm/annotate/run.py
deleted file mode 100644
index c645f21c..00000000
--- a/test/farm/annotate/run.py
+++ /dev/null
@@ -1,7 +0,0 @@
-copy("src", "out")
-run("""
- coverage -e -x white.py
- coverage -a white.py
- """, rundir="out")
-compare("out", "gold", "*,cover")
-clean("out")
diff --git a/test/farm/annotate/run_multi.py b/test/farm/annotate/run_multi.py
deleted file mode 100644
index 4e8252ed..00000000
--- a/test/farm/annotate/run_multi.py
+++ /dev/null
@@ -1,7 +0,0 @@
-copy("src", "out_multi")
-run("""
- coverage -e -x multi.py
- coverage -a
- """, rundir="out_multi")
-compare("out_multi", "gold_multi", "*,cover")
-clean("out_multi")
diff --git a/test/farm/annotate/src/a/__init__.py b/test/farm/annotate/src/a/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/test/farm/annotate/src/a/__init__.py
+++ /dev/null
diff --git a/test/farm/annotate/src/a/a.py b/test/farm/annotate/src/a/a.py
deleted file mode 100644
index c2583d1e..00000000
--- a/test/farm/annotate/src/a/a.py
+++ /dev/null
@@ -1,5 +0,0 @@
-def a(x):
- if x == 1:
- print("x is 1")
- else:
- print("x is not 1")
diff --git a/test/farm/annotate/src/b/__init__.py b/test/farm/annotate/src/b/__init__.py
deleted file mode 100644
index e69de29b..00000000
--- a/test/farm/annotate/src/b/__init__.py
+++ /dev/null
diff --git a/test/farm/annotate/src/b/b.py b/test/farm/annotate/src/b/b.py
deleted file mode 100644
index 625a5490..00000000
--- a/test/farm/annotate/src/b/b.py
+++ /dev/null
@@ -1,3 +0,0 @@
-def b(x):
- msg = "x is %s" % x
- print(msg)
diff --git a/test/farm/annotate/src/multi.py b/test/farm/annotate/src/multi.py
deleted file mode 100644
index 19a6200c..00000000
--- a/test/farm/annotate/src/multi.py
+++ /dev/null
@@ -1,5 +0,0 @@
-import a.a
-import b.b
-
-a.a.a(1)
-b.b.b(2)
diff --git a/test/farm/annotate/src/white.py b/test/farm/annotate/src/white.py
deleted file mode 100644
index ecbbd25a..00000000
--- a/test/farm/annotate/src/white.py
+++ /dev/null
@@ -1,33 +0,0 @@
-# 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)