summaryrefslogtreecommitdiff
path: root/test/farm/html/src
diff options
context:
space:
mode:
Diffstat (limited to 'test/farm/html/src')
-rw-r--r--test/farm/html/src/a.py7
-rw-r--r--test/farm/html/src/b.py29
-rw-r--r--test/farm/html/src/bom.py11
-rw-r--r--test/farm/html/src/coverage.xml20
-rw-r--r--test/farm/html/src/extra.css1
-rw-r--r--test/farm/html/src/here.py8
-rw-r--r--test/farm/html/src/isolatin1.py5
-rw-r--r--test/farm/html/src/m1.py2
-rw-r--r--test/farm/html/src/m2.py2
-rw-r--r--test/farm/html/src/m3.py2
-rw-r--r--test/farm/html/src/main.py10
-rw-r--r--test/farm/html/src/omit4.ini2
-rw-r--r--test/farm/html/src/omit5.ini8
-rw-r--r--test/farm/html/src/partial.py18
-rw-r--r--test/farm/html/src/run_a_xml_2.ini3
-rw-r--r--test/farm/html/src/tabbed.py7
-rw-r--r--test/farm/html/src/unicode.py5
-rw-r--r--test/farm/html/src/y.py9
18 files changed, 0 insertions, 149 deletions
diff --git a/test/farm/html/src/a.py b/test/farm/html/src/a.py
deleted file mode 100644
index 9e71aebd..00000000
--- a/test/farm/html/src/a.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# A test file for HTML reporting by coverage.
-
-if 1 < 2:
- # Needed a < to look at HTML entities.
- a = 3
-else:
- a = 4
diff --git a/test/farm/html/src/b.py b/test/farm/html/src/b.py
deleted file mode 100644
index 3bf73a9f..00000000
--- a/test/farm/html/src/b.py
+++ /dev/null
@@ -1,29 +0,0 @@
-# A test file for HTML reporting by coverage.
-
-def one(x):
- # This will be a branch that misses the else.
- if x < 2:
- a = 3
- else:
- a = 4
-
-one(1)
-
-def two(x):
- # A missed else that branches to "exit"
- if x:
- a = 5
-
-two(1)
-
-def three():
- try:
- # This if has two branches, *neither* one taken.
- if name_error_this_variable_doesnt_exist:
- a = 1
- else:
- a = 2
- except:
- pass
-
-three()
diff --git a/test/farm/html/src/bom.py b/test/farm/html/src/bom.py
deleted file mode 100644
index 2db8b717..00000000
--- a/test/farm/html/src/bom.py
+++ /dev/null
@@ -1,11 +0,0 @@
-# A python source file in utf-8, with BOM
-math = "3×4 = 12, ÷2 = 6±0"
-
-import sys
-
-if sys.version_info >= (3, 0):
- assert len(math) == 18
- assert len(math.encode('utf-8')) == 21
-else:
- assert len(math) == 21
- assert len(math.decode('utf-8')) == 18
diff --git a/test/farm/html/src/coverage.xml b/test/farm/html/src/coverage.xml
deleted file mode 100644
index 128cf750..00000000
--- a/test/farm/html/src/coverage.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" ?>
-<!DOCTYPE coverage
- SYSTEM 'http://cobertura.sourceforge.net/xml/coverage-03.dtd'>
-<coverage branch-rate="0.0" line-rate="0.666666666667" timestamp="1263087779313" version="3.3a1">
- <!-- Generated by coverage.py: http://nedbatchelder.com/code/coverage -->
- <packages>
- <package branch-rate="0.0" complexity="0.0" line-rate="0.666666666667" name="">
- <classes>
- <class branch-rate="0.0" complexity="0.0" filename="a.py" line-rate="0.666666666667" name="a">
- <methods/>
- <lines>
- <line hits="1" number="3"/>
- <line hits="1" number="5"/>
- <line hits="0" number="7"/>
- </lines>
- </class>
- </classes>
- </package>
- </packages>
-</coverage>
diff --git a/test/farm/html/src/extra.css b/test/farm/html/src/extra.css
deleted file mode 100644
index 46c41fcd..00000000
--- a/test/farm/html/src/extra.css
+++ /dev/null
@@ -1 +0,0 @@
-/* Doesn't matter what goes in here, it gets copied. */
diff --git a/test/farm/html/src/here.py b/test/farm/html/src/here.py
deleted file mode 100644
index d0d26ea7..00000000
--- a/test/farm/html/src/here.py
+++ /dev/null
@@ -1,8 +0,0 @@
-# A test file for HTML reporting by coverage.
-
-import other
-
-if 1 < 2:
- h = 3
-else:
- h = 4
diff --git a/test/farm/html/src/isolatin1.py b/test/farm/html/src/isolatin1.py
deleted file mode 100644
index 057c097b..00000000
--- a/test/farm/html/src/isolatin1.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# A python source file in another encoding.
-# -*- coding: iso8859-1 -*-
-
-math = "34 = 12, 2 = 60"
-assert len(math) == 18
diff --git a/test/farm/html/src/m1.py b/test/farm/html/src/m1.py
deleted file mode 100644
index 927e1f6b..00000000
--- a/test/farm/html/src/m1.py
+++ /dev/null
@@ -1,2 +0,0 @@
-m1a = 1
-m1b = 2
diff --git a/test/farm/html/src/m2.py b/test/farm/html/src/m2.py
deleted file mode 100644
index ffddf6cf..00000000
--- a/test/farm/html/src/m2.py
+++ /dev/null
@@ -1,2 +0,0 @@
-m2a = 1
-m2b = 2
diff --git a/test/farm/html/src/m3.py b/test/farm/html/src/m3.py
deleted file mode 100644
index 395d7d25..00000000
--- a/test/farm/html/src/m3.py
+++ /dev/null
@@ -1,2 +0,0 @@
-m3a = 1
-m3b = 2
diff --git a/test/farm/html/src/main.py b/test/farm/html/src/main.py
deleted file mode 100644
index ce894465..00000000
--- a/test/farm/html/src/main.py
+++ /dev/null
@@ -1,10 +0,0 @@
-import m1
-import m2
-import m3
-
-a = 5
-b = 6
-
-assert m1.m1a == 1
-assert m2.m2a == 1
-assert m3.m3a == 1
diff --git a/test/farm/html/src/omit4.ini b/test/farm/html/src/omit4.ini
deleted file mode 100644
index 6821ecda..00000000
--- a/test/farm/html/src/omit4.ini
+++ /dev/null
@@ -1,2 +0,0 @@
-[report]
-omit = m2.py
diff --git a/test/farm/html/src/omit5.ini b/test/farm/html/src/omit5.ini
deleted file mode 100644
index 7e32b414..00000000
--- a/test/farm/html/src/omit5.ini
+++ /dev/null
@@ -1,8 +0,0 @@
-[report]
-omit =
- fooey
- gooey, m[23]*, kablooey
- helloworld
-
-[html]
-directory = ../html_omit_5
diff --git a/test/farm/html/src/partial.py b/test/farm/html/src/partial.py
deleted file mode 100644
index 8d62f5c5..00000000
--- a/test/farm/html/src/partial.py
+++ /dev/null
@@ -1,18 +0,0 @@
-# partial branches
-
-a = 3
-
-while True:
- break
-
-while 1:
- break
-
-while a: # pragma: no branch
- break
-
-if 0:
- never_happen()
-
-if 1:
- a = 13
diff --git a/test/farm/html/src/run_a_xml_2.ini b/test/farm/html/src/run_a_xml_2.ini
deleted file mode 100644
index 8d28f97b..00000000
--- a/test/farm/html/src/run_a_xml_2.ini
+++ /dev/null
@@ -1,3 +0,0 @@
-# Put all the XML output in xml_2
-[xml]
-output = ../xml_2/coverage.xml
diff --git a/test/farm/html/src/tabbed.py b/test/farm/html/src/tabbed.py
deleted file mode 100644
index 2035852f..00000000
--- a/test/farm/html/src/tabbed.py
+++ /dev/null
@@ -1,7 +0,0 @@
-# This file should have tabs.
-x = 1
-if x:
- a = "Tabbed" # Aligned comments
- if x: # look nice
- b = "No spaces" # when they
- c = "Done" # line up.
diff --git a/test/farm/html/src/unicode.py b/test/farm/html/src/unicode.py
deleted file mode 100644
index f6a9a052..00000000
--- a/test/farm/html/src/unicode.py
+++ /dev/null
@@ -1,5 +0,0 @@
-# A python source file with exotic characters
-# -*- coding: utf-8 -*-
-
-upside_down = "ʎd˙ǝbɐɹǝʌoɔ"
-surrogate = "db40,dd00: x󠄀"
diff --git a/test/farm/html/src/y.py b/test/farm/html/src/y.py
deleted file mode 100644
index af7c9689..00000000
--- a/test/farm/html/src/y.py
+++ /dev/null
@@ -1,9 +0,0 @@
-# A test file for XML reporting by coverage.
-
-def choice(x):
- if x < 2:
- return 3
- else:
- return 4
-
-assert choice(1) == 3