diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-18 21:15:06 -0400 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-04-18 21:15:06 -0400 |
| commit | 826c1f45355d441b1da33f1ce45b2f933244a545 (patch) | |
| tree | 3c968022eadcc3706fecaba27ff4e8108a2492c6 /test/farm/annotate | |
| parent | b2dfda7020ecce0e895d471fa305f5f7c64a983c (diff) | |
| download | python-coveragepy-git-826c1f45355d441b1da33f1ce45b2f933244a545.tar.gz | |
More annotate tests, but something is amiss.
Diffstat (limited to 'test/farm/annotate')
| -rw-r--r-- | test/farm/annotate/annotate_dir.py | 8 | ||||
| -rw-r--r-- | test/farm/annotate/gold_anno_dir/a.py,cover | 5 | ||||
| -rw-r--r-- | test/farm/annotate/gold_anno_dir/b.py,cover | 2 | ||||
| -rw-r--r-- | test/farm/annotate/gold_anno_dir/multi.py,cover | 5 |
4 files changed, 20 insertions, 0 deletions
diff --git a/test/farm/annotate/annotate_dir.py b/test/farm/annotate/annotate_dir.py new file mode 100644 index 00000000..23dfff30 --- /dev/null +++ b/test/farm/annotate/annotate_dir.py @@ -0,0 +1,8 @@ +copy("src", "run") +run(""" + coverage -x multi.py + coverage -a -d out_anno_dir + """, rundir="run") +compare("run/out_anno_dir", "gold_anno_dir", "*,cover", left_extra=True) +clean("out_anno_dir") +clean("run") diff --git a/test/farm/annotate/gold_anno_dir/a.py,cover b/test/farm/annotate/gold_anno_dir/a.py,cover new file mode 100644 index 00000000..0c858f41 --- /dev/null +++ b/test/farm/annotate/gold_anno_dir/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_anno_dir/b.py,cover b/test/farm/annotate/gold_anno_dir/b.py,cover new file mode 100644 index 00000000..0bd04dac --- /dev/null +++ b/test/farm/annotate/gold_anno_dir/b.py,cover @@ -0,0 +1,2 @@ +> def b(x):
+> print "x is %s" % x
diff --git a/test/farm/annotate/gold_anno_dir/multi.py,cover b/test/farm/annotate/gold_anno_dir/multi.py,cover new file mode 100644 index 00000000..fc5b0b79 --- /dev/null +++ b/test/farm/annotate/gold_anno_dir/multi.py,cover @@ -0,0 +1,5 @@ +> import a.a
+> import b.b
+
+> a.a.a(1)
+> b.b.b(2)
|
