diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-03-15 14:53:38 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-03-15 14:53:38 -0400 |
commit | b744a07ca7bd102bc7947f39542726999a096619 (patch) | |
tree | 99919cd28b1accb10bdfecf4af54c1821ea69d5a | |
parent | 0b589a53e5d8fc1b65414fbe5f980430737c9839 (diff) | |
download | python-coveragepy-git-b744a07ca7bd102bc7947f39542726999a096619.tar.gz |
Another farm test.
-rw-r--r-- | test/farm/annotate/gold_multi/a/__init__.py,cover | 0 | ||||
-rw-r--r-- | test/farm/annotate/gold_multi/a/a.py,cover | 5 | ||||
-rw-r--r-- | test/farm/annotate/gold_multi/b/__init__.py,cover | 0 | ||||
-rw-r--r-- | test/farm/annotate/gold_multi/b/b.py,cover | 2 | ||||
-rw-r--r-- | test/farm/annotate/gold_multi/multi.py,cover | 5 | ||||
-rw-r--r-- | test/farm/annotate/run_multi.py | 8 | ||||
-rw-r--r-- | test/farm/annotate/src/a/__init__.py | 0 | ||||
-rw-r--r-- | test/farm/annotate/src/a/a.py | 5 | ||||
-rw-r--r-- | test/farm/annotate/src/b/__init__.py | 0 | ||||
-rw-r--r-- | test/farm/annotate/src/b/b.py | 2 | ||||
-rw-r--r-- | test/farm/annotate/src/multi.py | 5 |
11 files changed, 32 insertions, 0 deletions
diff --git a/test/farm/annotate/gold_multi/a/__init__.py,cover b/test/farm/annotate/gold_multi/a/__init__.py,cover new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/farm/annotate/gold_multi/a/__init__.py,cover diff --git a/test/farm/annotate/gold_multi/a/a.py,cover b/test/farm/annotate/gold_multi/a/a.py,cover new file mode 100644 index 00000000..0c858f41 --- /dev/null +++ b/test/farm/annotate/gold_multi/a/a.py,cover @@ -0,0 +1,5 @@ +> 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 new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/farm/annotate/gold_multi/b/__init__.py,cover diff --git a/test/farm/annotate/gold_multi/b/b.py,cover b/test/farm/annotate/gold_multi/b/b.py,cover new file mode 100644 index 00000000..0bd04dac --- /dev/null +++ b/test/farm/annotate/gold_multi/b/b.py,cover @@ -0,0 +1,2 @@ +> 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 new file mode 100644 index 00000000..fc5b0b79 --- /dev/null +++ b/test/farm/annotate/gold_multi/multi.py,cover @@ -0,0 +1,5 @@ +> import a.a
+> import b.b
+
+> a.a.a(1)
+> b.b.b(2)
diff --git a/test/farm/annotate/run_multi.py b/test/farm/annotate/run_multi.py new file mode 100644 index 00000000..586aa36c --- /dev/null +++ b/test/farm/annotate/run_multi.py @@ -0,0 +1,8 @@ +outdir = "out_multi" +copy("src", outdir) +run(""" + coverage -x multi.py + coverage -a + """, rundir=outdir) +compare(outdir, "gold_multi", "*,cover") +clean(outdir) diff --git a/test/farm/annotate/src/a/__init__.py b/test/farm/annotate/src/a/__init__.py new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/farm/annotate/src/a/__init__.py diff --git a/test/farm/annotate/src/a/a.py b/test/farm/annotate/src/a/a.py new file mode 100644 index 00000000..825ce1b2 --- /dev/null +++ b/test/farm/annotate/src/a/a.py @@ -0,0 +1,5 @@ +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 new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/farm/annotate/src/b/__init__.py diff --git a/test/farm/annotate/src/b/b.py b/test/farm/annotate/src/b/b.py new file mode 100644 index 00000000..27629e4f --- /dev/null +++ b/test/farm/annotate/src/b/b.py @@ -0,0 +1,2 @@ +def b(x): + print "x is %s" % x diff --git a/test/farm/annotate/src/multi.py b/test/farm/annotate/src/multi.py new file mode 100644 index 00000000..e8f67c67 --- /dev/null +++ b/test/farm/annotate/src/multi.py @@ -0,0 +1,5 @@ +import a.a
+import b.b
+
+a.a.a(1)
+b.b.b(2)
|