From 740d257d6c6a1bd26900af5115aa9cfa2d3a8b40 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 18 Nov 2018 11:24:07 -0500 Subject: Rename farm to gold, since that's what it is --- tests/farm/annotate/gold/white.py,cover | 33 -- .../annotate/gold_anno_dir/a___init__.py,cover | 0 tests/farm/annotate/gold_anno_dir/a_a.py,cover | 5 - .../annotate/gold_anno_dir/b___init__.py,cover | 0 tests/farm/annotate/gold_anno_dir/b_b.py,cover | 3 - tests/farm/annotate/gold_anno_dir/multi.py,cover | 5 - tests/farm/annotate/gold_encodings/utf8.py,cover | 4 - tests/farm/annotate/gold_multi/a/__init__.py,cover | 0 tests/farm/annotate/gold_multi/a/a.py,cover | 5 - tests/farm/annotate/gold_multi/b/__init__.py,cover | 0 tests/farm/annotate/gold_multi/b/b.py,cover | 2 - tests/farm/annotate/gold_multi/multi.py,cover | 5 - tests/farm/html/gold_a/a_py.html | 82 ----- tests/farm/html/gold_a/index.html | 84 ----- tests/farm/html/gold_b_branch/b_py.html | 127 ------- tests/farm/html/gold_b_branch/index.html | 92 ----- tests/farm/html/gold_bom/2/bom_py.html | 94 ------ tests/farm/html/gold_bom/2/index.html | 84 ----- tests/farm/html/gold_bom/bom_py.html | 94 ------ tests/farm/html/gold_bom/index.html | 84 ----- tests/farm/html/gold_isolatin1/index.html | 84 ----- tests/farm/html/gold_isolatin1/isolatin1_py.html | 82 ----- tests/farm/html/gold_omit_1/index.html | 105 ------ tests/farm/html/gold_omit_1/m1_py.html | 76 ----- tests/farm/html/gold_omit_1/m2_py.html | 76 ----- tests/farm/html/gold_omit_1/m3_py.html | 76 ----- tests/farm/html/gold_omit_1/main_py.html | 92 ----- tests/farm/html/gold_omit_2/index.html | 98 ------ tests/farm/html/gold_omit_2/m2_py.html | 76 ----- tests/farm/html/gold_omit_2/m3_py.html | 76 ----- tests/farm/html/gold_omit_2/main_py.html | 92 ----- tests/farm/html/gold_omit_3/index.html | 91 ----- tests/farm/html/gold_omit_3/m3_py.html | 76 ----- tests/farm/html/gold_omit_3/main_py.html | 92 ----- tests/farm/html/gold_omit_4/index.html | 98 ------ tests/farm/html/gold_omit_4/m1_py.html | 76 ----- tests/farm/html/gold_omit_4/m3_py.html | 76 ----- tests/farm/html/gold_omit_4/main_py.html | 92 ----- tests/farm/html/gold_omit_5/index.html | 91 ----- tests/farm/html/gold_omit_5/m1_py.html | 76 ----- tests/farm/html/gold_omit_5/main_py.html | 92 ----- tests/farm/html/gold_other/blah_blah_other_py.html | 80 ----- tests/farm/html/gold_other/here_py.html | 84 ----- tests/farm/html/gold_other/index.html | 91 ----- tests/farm/html/gold_partial/index.html | 92 ----- tests/farm/html/gold_partial/partial_py.html | 107 ------ tests/farm/html/gold_styled/a_py.html | 83 ----- tests/farm/html/gold_styled/extra.css | 1 - tests/farm/html/gold_styled/index.html | 85 ----- tests/farm/html/gold_styled/style.css | 376 --------------------- tests/farm/html/gold_unicode/index.html | 84 ----- tests/farm/html/gold_unicode/unicode_py.html | 82 ----- tests/farm/html/gold_x_xml/coverage.xml | 22 -- tests/farm/html/gold_y_xml_branch/coverage.xml | 24 -- tests/gold/annotate/anno_dir/a___init__.py,cover | 0 tests/gold/annotate/anno_dir/a_a.py,cover | 5 + tests/gold/annotate/anno_dir/b___init__.py,cover | 0 tests/gold/annotate/anno_dir/b_b.py,cover | 3 + tests/gold/annotate/anno_dir/multi.py,cover | 5 + tests/gold/annotate/annotate/white.py,cover | 33 ++ tests/gold/annotate/encodings/utf8.py,cover | 4 + tests/gold/annotate/multi/a/__init__.py,cover | 0 tests/gold/annotate/multi/a/a.py,cover | 5 + tests/gold/annotate/multi/b/__init__.py,cover | 0 tests/gold/annotate/multi/b/b.py,cover | 2 + tests/gold/annotate/multi/multi.py,cover | 5 + tests/gold/html/a/a_py.html | 82 +++++ tests/gold/html/a/index.html | 84 +++++ tests/gold/html/b_branch/b_py.html | 127 +++++++ tests/gold/html/b_branch/index.html | 92 +++++ tests/gold/html/bom/2/bom_py.html | 94 ++++++ tests/gold/html/bom/2/index.html | 84 +++++ tests/gold/html/bom/bom_py.html | 94 ++++++ tests/gold/html/bom/index.html | 84 +++++ tests/gold/html/isolatin1/index.html | 84 +++++ tests/gold/html/isolatin1/isolatin1_py.html | 82 +++++ tests/gold/html/omit_1/index.html | 105 ++++++ tests/gold/html/omit_1/m1_py.html | 76 +++++ tests/gold/html/omit_1/m2_py.html | 76 +++++ tests/gold/html/omit_1/m3_py.html | 76 +++++ tests/gold/html/omit_1/main_py.html | 92 +++++ tests/gold/html/omit_2/index.html | 98 ++++++ tests/gold/html/omit_2/m2_py.html | 76 +++++ tests/gold/html/omit_2/m3_py.html | 76 +++++ tests/gold/html/omit_2/main_py.html | 92 +++++ tests/gold/html/omit_3/index.html | 91 +++++ tests/gold/html/omit_3/m3_py.html | 76 +++++ tests/gold/html/omit_3/main_py.html | 92 +++++ tests/gold/html/omit_4/index.html | 98 ++++++ tests/gold/html/omit_4/m1_py.html | 76 +++++ tests/gold/html/omit_4/m3_py.html | 76 +++++ tests/gold/html/omit_4/main_py.html | 92 +++++ tests/gold/html/omit_5/index.html | 91 +++++ tests/gold/html/omit_5/m1_py.html | 76 +++++ tests/gold/html/omit_5/main_py.html | 92 +++++ tests/gold/html/other/blah_blah_other_py.html | 80 +++++ tests/gold/html/other/here_py.html | 84 +++++ tests/gold/html/other/index.html | 91 +++++ tests/gold/html/partial/index.html | 92 +++++ tests/gold/html/partial/partial_py.html | 107 ++++++ tests/gold/html/styled/a_py.html | 83 +++++ tests/gold/html/styled/extra.css | 1 + tests/gold/html/styled/index.html | 85 +++++ tests/gold/html/styled/style.css | 376 +++++++++++++++++++++ tests/gold/html/unicode/index.html | 84 +++++ tests/gold/html/unicode/unicode_py.html | 82 +++++ tests/gold/xml/x_xml/coverage.xml | 22 ++ tests/gold/xml/y_xml_branch/coverage.xml | 24 ++ tests/goldtest.py | 2 +- tests/test_annotate.py | 8 +- tests/test_html.py | 28 +- tests/test_xml.py | 6 +- 112 files changed, 3829 insertions(+), 3829 deletions(-) delete mode 100644 tests/farm/annotate/gold/white.py,cover delete mode 100644 tests/farm/annotate/gold_anno_dir/a___init__.py,cover delete mode 100644 tests/farm/annotate/gold_anno_dir/a_a.py,cover delete mode 100644 tests/farm/annotate/gold_anno_dir/b___init__.py,cover delete mode 100644 tests/farm/annotate/gold_anno_dir/b_b.py,cover delete mode 100644 tests/farm/annotate/gold_anno_dir/multi.py,cover delete mode 100644 tests/farm/annotate/gold_encodings/utf8.py,cover delete mode 100644 tests/farm/annotate/gold_multi/a/__init__.py,cover delete mode 100644 tests/farm/annotate/gold_multi/a/a.py,cover delete mode 100644 tests/farm/annotate/gold_multi/b/__init__.py,cover delete mode 100644 tests/farm/annotate/gold_multi/b/b.py,cover delete mode 100644 tests/farm/annotate/gold_multi/multi.py,cover delete mode 100644 tests/farm/html/gold_a/a_py.html delete mode 100644 tests/farm/html/gold_a/index.html delete mode 100644 tests/farm/html/gold_b_branch/b_py.html delete mode 100644 tests/farm/html/gold_b_branch/index.html delete mode 100644 tests/farm/html/gold_bom/2/bom_py.html delete mode 100644 tests/farm/html/gold_bom/2/index.html delete mode 100644 tests/farm/html/gold_bom/bom_py.html delete mode 100644 tests/farm/html/gold_bom/index.html delete mode 100644 tests/farm/html/gold_isolatin1/index.html delete mode 100644 tests/farm/html/gold_isolatin1/isolatin1_py.html delete mode 100644 tests/farm/html/gold_omit_1/index.html delete mode 100644 tests/farm/html/gold_omit_1/m1_py.html delete mode 100644 tests/farm/html/gold_omit_1/m2_py.html delete mode 100644 tests/farm/html/gold_omit_1/m3_py.html delete mode 100644 tests/farm/html/gold_omit_1/main_py.html delete mode 100644 tests/farm/html/gold_omit_2/index.html delete mode 100644 tests/farm/html/gold_omit_2/m2_py.html delete mode 100644 tests/farm/html/gold_omit_2/m3_py.html delete mode 100644 tests/farm/html/gold_omit_2/main_py.html delete mode 100644 tests/farm/html/gold_omit_3/index.html delete mode 100644 tests/farm/html/gold_omit_3/m3_py.html delete mode 100644 tests/farm/html/gold_omit_3/main_py.html delete mode 100644 tests/farm/html/gold_omit_4/index.html delete mode 100644 tests/farm/html/gold_omit_4/m1_py.html delete mode 100644 tests/farm/html/gold_omit_4/m3_py.html delete mode 100644 tests/farm/html/gold_omit_4/main_py.html delete mode 100644 tests/farm/html/gold_omit_5/index.html delete mode 100644 tests/farm/html/gold_omit_5/m1_py.html delete mode 100644 tests/farm/html/gold_omit_5/main_py.html delete mode 100644 tests/farm/html/gold_other/blah_blah_other_py.html delete mode 100644 tests/farm/html/gold_other/here_py.html delete mode 100644 tests/farm/html/gold_other/index.html delete mode 100644 tests/farm/html/gold_partial/index.html delete mode 100644 tests/farm/html/gold_partial/partial_py.html delete mode 100644 tests/farm/html/gold_styled/a_py.html delete mode 100644 tests/farm/html/gold_styled/extra.css delete mode 100644 tests/farm/html/gold_styled/index.html delete mode 100644 tests/farm/html/gold_styled/style.css delete mode 100644 tests/farm/html/gold_unicode/index.html delete mode 100644 tests/farm/html/gold_unicode/unicode_py.html delete mode 100644 tests/farm/html/gold_x_xml/coverage.xml delete mode 100644 tests/farm/html/gold_y_xml_branch/coverage.xml create mode 100644 tests/gold/annotate/anno_dir/a___init__.py,cover create mode 100644 tests/gold/annotate/anno_dir/a_a.py,cover create mode 100644 tests/gold/annotate/anno_dir/b___init__.py,cover create mode 100644 tests/gold/annotate/anno_dir/b_b.py,cover create mode 100644 tests/gold/annotate/anno_dir/multi.py,cover create mode 100644 tests/gold/annotate/annotate/white.py,cover create mode 100644 tests/gold/annotate/encodings/utf8.py,cover create mode 100644 tests/gold/annotate/multi/a/__init__.py,cover create mode 100644 tests/gold/annotate/multi/a/a.py,cover create mode 100644 tests/gold/annotate/multi/b/__init__.py,cover create mode 100644 tests/gold/annotate/multi/b/b.py,cover create mode 100644 tests/gold/annotate/multi/multi.py,cover create mode 100644 tests/gold/html/a/a_py.html create mode 100644 tests/gold/html/a/index.html create mode 100644 tests/gold/html/b_branch/b_py.html create mode 100644 tests/gold/html/b_branch/index.html create mode 100644 tests/gold/html/bom/2/bom_py.html create mode 100644 tests/gold/html/bom/2/index.html create mode 100644 tests/gold/html/bom/bom_py.html create mode 100644 tests/gold/html/bom/index.html create mode 100644 tests/gold/html/isolatin1/index.html create mode 100644 tests/gold/html/isolatin1/isolatin1_py.html create mode 100644 tests/gold/html/omit_1/index.html create mode 100644 tests/gold/html/omit_1/m1_py.html create mode 100644 tests/gold/html/omit_1/m2_py.html create mode 100644 tests/gold/html/omit_1/m3_py.html create mode 100644 tests/gold/html/omit_1/main_py.html create mode 100644 tests/gold/html/omit_2/index.html create mode 100644 tests/gold/html/omit_2/m2_py.html create mode 100644 tests/gold/html/omit_2/m3_py.html create mode 100644 tests/gold/html/omit_2/main_py.html create mode 100644 tests/gold/html/omit_3/index.html create mode 100644 tests/gold/html/omit_3/m3_py.html create mode 100644 tests/gold/html/omit_3/main_py.html create mode 100644 tests/gold/html/omit_4/index.html create mode 100644 tests/gold/html/omit_4/m1_py.html create mode 100644 tests/gold/html/omit_4/m3_py.html create mode 100644 tests/gold/html/omit_4/main_py.html create mode 100644 tests/gold/html/omit_5/index.html create mode 100644 tests/gold/html/omit_5/m1_py.html create mode 100644 tests/gold/html/omit_5/main_py.html create mode 100644 tests/gold/html/other/blah_blah_other_py.html create mode 100644 tests/gold/html/other/here_py.html create mode 100644 tests/gold/html/other/index.html create mode 100644 tests/gold/html/partial/index.html create mode 100644 tests/gold/html/partial/partial_py.html create mode 100644 tests/gold/html/styled/a_py.html create mode 100644 tests/gold/html/styled/extra.css create mode 100644 tests/gold/html/styled/index.html create mode 100644 tests/gold/html/styled/style.css create mode 100644 tests/gold/html/unicode/index.html create mode 100644 tests/gold/html/unicode/unicode_py.html create mode 100644 tests/gold/xml/x_xml/coverage.xml create mode 100644 tests/gold/xml/y_xml_branch/coverage.xml (limited to 'tests') diff --git a/tests/farm/annotate/gold/white.py,cover b/tests/farm/annotate/gold/white.py,cover deleted file mode 100644 index 36b0b993..00000000 --- a/tests/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/tests/farm/annotate/gold_anno_dir/a___init__.py,cover b/tests/farm/annotate/gold_anno_dir/a___init__.py,cover deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/farm/annotate/gold_anno_dir/a_a.py,cover b/tests/farm/annotate/gold_anno_dir/a_a.py,cover deleted file mode 100644 index d0ff3c0c..00000000 --- a/tests/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/tests/farm/annotate/gold_anno_dir/b___init__.py,cover b/tests/farm/annotate/gold_anno_dir/b___init__.py,cover deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/farm/annotate/gold_anno_dir/b_b.py,cover b/tests/farm/annotate/gold_anno_dir/b_b.py,cover deleted file mode 100644 index 90d076f1..00000000 --- a/tests/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/tests/farm/annotate/gold_anno_dir/multi.py,cover b/tests/farm/annotate/gold_anno_dir/multi.py,cover deleted file mode 100644 index 2a5c59ce..00000000 --- a/tests/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/tests/farm/annotate/gold_encodings/utf8.py,cover b/tests/farm/annotate/gold_encodings/utf8.py,cover deleted file mode 100644 index 6dbf7e0d..00000000 --- a/tests/farm/annotate/gold_encodings/utf8.py,cover +++ /dev/null @@ -1,4 +0,0 @@ - # -*- coding: utf-8 -*- - # This comment has an accent: é - -> print("spam eggs") diff --git a/tests/farm/annotate/gold_multi/a/__init__.py,cover b/tests/farm/annotate/gold_multi/a/__init__.py,cover deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/farm/annotate/gold_multi/a/a.py,cover b/tests/farm/annotate/gold_multi/a/a.py,cover deleted file mode 100644 index fb3f5435..00000000 --- a/tests/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/tests/farm/annotate/gold_multi/b/__init__.py,cover b/tests/farm/annotate/gold_multi/b/__init__.py,cover deleted file mode 100644 index e69de29b..00000000 diff --git a/tests/farm/annotate/gold_multi/b/b.py,cover b/tests/farm/annotate/gold_multi/b/b.py,cover deleted file mode 100644 index a3f5daec..00000000 --- a/tests/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/tests/farm/annotate/gold_multi/multi.py,cover b/tests/farm/annotate/gold_multi/multi.py,cover deleted file mode 100644 index 2a5c59ce..00000000 --- a/tests/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/tests/farm/html/gold_a/a_py.html b/tests/farm/html/gold_a/a_py.html deleted file mode 100644 index 119ad4a3..00000000 --- a/tests/farm/html/gold_a/a_py.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - Coverage for a.py: 67% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-
-

if 1 < 2: 

-

# Needed a < to look at HTML entities. 

-

a = 3 

-

else: 

-

a = 4 

-
-
- - - diff --git a/tests/farm/html/gold_a/index.html b/tests/farm/html/gold_a/index.html deleted file mode 100644 index b839af1e..00000000 --- a/tests/farm/html/gold_a/index.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total31067%
a.py31067%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_b_branch/b_py.html b/tests/farm/html/gold_b_branch/b_py.html deleted file mode 100644 index a21175eb..00000000 --- a/tests/farm/html/gold_b_branch/b_py.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - - Coverage for b.py: 70% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-

11

-

12

-

13

-

14

-

15

-

16

-

17

-

18

-

19

-

20

-

21

-

22

-

23

-

24

-

25

-

26

-

27

-
-

def one(x): 

-

# This will be a branch that misses the else. 

-

3 ↛ 6line 3 didn't jump to line 6, because the condition on line 3 was never false if x < 2: 

-

a = 3 

-

else: 

-

a = 4 

-

 

-

one(1) 

-

 

-

def two(x): 

-

# A missed else that branches to "exit" 

-

12 ↛ exitline 12 didn't return from function 'two', because the condition on line 12 was never false if x: 

-

a = 5 

-

 

-

two(1) 

-

 

-

def three(): 

-

try: 

-

# This if has two branches, *neither* one taken. 

-

20 ↛ 21,   20 ↛ 232 missed branches: 1) line 20 didn't jump to line 21, because the condition on line 20 was never true, 2) line 20 didn't jump to line 23, because the condition on line 20 was never false if name_error_this_variable_doesnt_exist: 

-

a = 1 

-

else: 

-

a = 2 

-

except: 

-

pass 

-

 

-

three() 

-
-
- - - diff --git a/tests/farm/html/gold_b_branch/index.html b/tests/farm/html/gold_b_branch/index.html deleted file mode 100644 index a0346e86..00000000 --- a/tests/farm/html/gold_b_branch/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - b - p - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedbranchespartialcoverage
Total17306470%
b.py17306470%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_bom/2/bom_py.html b/tests/farm/html/gold_bom/2/bom_py.html deleted file mode 100644 index 14f25413..00000000 --- a/tests/farm/html/gold_bom/2/bom_py.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - Coverage for bom.py: 71% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-

11

-
-

# 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/tests/farm/html/gold_bom/2/index.html b/tests/farm/html/gold_bom/2/index.html deleted file mode 100644 index bde4bb46..00000000 --- a/tests/farm/html/gold_bom/2/index.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total72071%
bom.py72071%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_bom/bom_py.html b/tests/farm/html/gold_bom/bom_py.html deleted file mode 100644 index 78d7f7b7..00000000 --- a/tests/farm/html/gold_bom/bom_py.html +++ /dev/null @@ -1,94 +0,0 @@ - - - - - - Coverage for bom.py: 71% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-

11

-
-

# 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/tests/farm/html/gold_bom/index.html b/tests/farm/html/gold_bom/index.html deleted file mode 100644 index 4c4d9897..00000000 --- a/tests/farm/html/gold_bom/index.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total72071%
bom.py72071%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_isolatin1/index.html b/tests/farm/html/gold_isolatin1/index.html deleted file mode 100644 index c648ae7d..00000000 --- a/tests/farm/html/gold_isolatin1/index.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total200100%
isolatin1.py200100%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_isolatin1/isolatin1_py.html b/tests/farm/html/gold_isolatin1/isolatin1_py.html deleted file mode 100644 index e8ad244b..00000000 --- a/tests/farm/html/gold_isolatin1/isolatin1_py.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - Coverage for isolatin1.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-
-

# -*- coding: iso8859-1 -*- 

-

# A Python source file in another encoding. 

-

 

-

math = "3×4 = 12, ÷2 = 6±0" 

-

assert len(math) == 18 

-
-
- - - diff --git a/tests/farm/html/gold_omit_1/index.html b/tests/farm/html/gold_omit_1/index.html deleted file mode 100644 index 289c6f10..00000000 --- a/tests/farm/html/gold_omit_1/index.html +++ /dev/null @@ -1,105 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total1400100%
m1.py200100%
m2.py200100%
m3.py200100%
main.py800100%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_omit_1/m1_py.html b/tests/farm/html/gold_omit_1/m1_py.html deleted file mode 100644 index 05b2bd49..00000000 --- a/tests/farm/html/gold_omit_1/m1_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m1.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m1a = 1 

-

m1b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_1/m2_py.html b/tests/farm/html/gold_omit_1/m2_py.html deleted file mode 100644 index 056e7af1..00000000 --- a/tests/farm/html/gold_omit_1/m2_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m2.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m2a = 1 

-

m2b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_1/m3_py.html b/tests/farm/html/gold_omit_1/m3_py.html deleted file mode 100644 index 428527b2..00000000 --- a/tests/farm/html/gold_omit_1/m3_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m3.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m3a = 1 

-

m3b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_1/main_py.html b/tests/farm/html/gold_omit_1/main_py.html deleted file mode 100644 index 3fbc4af7..00000000 --- a/tests/farm/html/gold_omit_1/main_py.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Coverage for main.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-
-

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/tests/farm/html/gold_omit_2/index.html b/tests/farm/html/gold_omit_2/index.html deleted file mode 100644 index 5813c0dc..00000000 --- a/tests/farm/html/gold_omit_2/index.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total1200100%
m2.py200100%
m3.py200100%
main.py800100%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_omit_2/m2_py.html b/tests/farm/html/gold_omit_2/m2_py.html deleted file mode 100644 index 056e7af1..00000000 --- a/tests/farm/html/gold_omit_2/m2_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m2.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m2a = 1 

-

m2b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_2/m3_py.html b/tests/farm/html/gold_omit_2/m3_py.html deleted file mode 100644 index 428527b2..00000000 --- a/tests/farm/html/gold_omit_2/m3_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m3.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m3a = 1 

-

m3b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_2/main_py.html b/tests/farm/html/gold_omit_2/main_py.html deleted file mode 100644 index 3fbc4af7..00000000 --- a/tests/farm/html/gold_omit_2/main_py.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Coverage for main.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-
-

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/tests/farm/html/gold_omit_3/index.html b/tests/farm/html/gold_omit_3/index.html deleted file mode 100644 index 4ebcf4a4..00000000 --- a/tests/farm/html/gold_omit_3/index.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total1000100%
m3.py200100%
main.py800100%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_omit_3/m3_py.html b/tests/farm/html/gold_omit_3/m3_py.html deleted file mode 100644 index 428527b2..00000000 --- a/tests/farm/html/gold_omit_3/m3_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m3.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m3a = 1 

-

m3b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_3/main_py.html b/tests/farm/html/gold_omit_3/main_py.html deleted file mode 100644 index 3fbc4af7..00000000 --- a/tests/farm/html/gold_omit_3/main_py.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Coverage for main.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-
-

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/tests/farm/html/gold_omit_4/index.html b/tests/farm/html/gold_omit_4/index.html deleted file mode 100644 index e7588714..00000000 --- a/tests/farm/html/gold_omit_4/index.html +++ /dev/null @@ -1,98 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total1200100%
m1.py200100%
m3.py200100%
main.py800100%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_omit_4/m1_py.html b/tests/farm/html/gold_omit_4/m1_py.html deleted file mode 100644 index 05b2bd49..00000000 --- a/tests/farm/html/gold_omit_4/m1_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m1.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m1a = 1 

-

m1b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_4/m3_py.html b/tests/farm/html/gold_omit_4/m3_py.html deleted file mode 100644 index 428527b2..00000000 --- a/tests/farm/html/gold_omit_4/m3_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m3.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m3a = 1 

-

m3b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_4/main_py.html b/tests/farm/html/gold_omit_4/main_py.html deleted file mode 100644 index 3fbc4af7..00000000 --- a/tests/farm/html/gold_omit_4/main_py.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Coverage for main.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-
-

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/tests/farm/html/gold_omit_5/index.html b/tests/farm/html/gold_omit_5/index.html deleted file mode 100644 index e2c1a132..00000000 --- a/tests/farm/html/gold_omit_5/index.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total1000100%
m1.py200100%
main.py800100%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_omit_5/m1_py.html b/tests/farm/html/gold_omit_5/m1_py.html deleted file mode 100644 index 05b2bd49..00000000 --- a/tests/farm/html/gold_omit_5/m1_py.html +++ /dev/null @@ -1,76 +0,0 @@ - - - - - - Coverage for m1.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-
-

m1a = 1 

-

m1b = 2 

-
-
- - - diff --git a/tests/farm/html/gold_omit_5/main_py.html b/tests/farm/html/gold_omit_5/main_py.html deleted file mode 100644 index 3fbc4af7..00000000 --- a/tests/farm/html/gold_omit_5/main_py.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - - Coverage for main.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-
-

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/tests/farm/html/gold_other/blah_blah_other_py.html b/tests/farm/html/gold_other/blah_blah_other_py.html deleted file mode 100644 index 36e3653d..00000000 --- a/tests/farm/html/gold_other/blah_blah_other_py.html +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - Coverage for /private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hm0000gp/T/coverage_test/tests_test_html_HtmlGoldTests_test_other_95946649/othersrc/other.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-
-

# A file in another directory. We're checking that it ends up in the 

-

# HTML report. 

-

 

-

print("This is the other src!") 

-
-
- - - diff --git a/tests/farm/html/gold_other/here_py.html b/tests/farm/html/gold_other/here_py.html deleted file mode 100644 index 8efa027a..00000000 --- a/tests/farm/html/gold_other/here_py.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - - Coverage for here.py: 75% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-
-

import other 

-

 

-

if 1 < 2: 

-

h = 3 

-

else: 

-

h = 4 

-
-
- - - diff --git a/tests/farm/html/gold_other/index.html b/tests/farm/html/gold_other/index.html deleted file mode 100644 index 10d4ae9a..00000000 --- a/tests/farm/html/gold_other/index.html +++ /dev/null @@ -1,91 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total51080%
/private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hm0000gp/T/coverage_test/tests_test_html_HtmlGoldTests_test_other_95946649/othersrc/other.py100100%
here.py41075%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_partial/index.html b/tests/farm/html/gold_partial/index.html deleted file mode 100644 index 6ac43531..00000000 --- a/tests/farm/html/gold_partial/index.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - b - p - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedbranchespartialcoverage
Total7014191%
partial.py7014191%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_partial/partial_py.html b/tests/farm/html/gold_partial/partial_py.html deleted file mode 100644 index 96d02f2f..00000000 --- a/tests/farm/html/gold_partial/partial_py.html +++ /dev/null @@ -1,107 +0,0 @@ - - - - - - Coverage for partial.py: 91% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-

6

-

7

-

8

-

9

-

10

-

11

-

12

-

13

-

14

-

15

-

16

-

17

-
-

# partial branches and excluded lines 

-

a = 6 

-

 

-

4 ↛ 7line 4 didn't jump to line 7, because the condition on line 4 was never falsewhile "no peephole".upper(): # t4 

-

break 

-

 

-

while a: # pragma: no branch 

-

break 

-

 

-

if 0: 

-

never_happen() 

-

 

-

if 1: 

-

a = 21 

-

 

-

if a == 23: 

-

raise AssertionError("Can't") 

-
-
- - - diff --git a/tests/farm/html/gold_styled/a_py.html b/tests/farm/html/gold_styled/a_py.html deleted file mode 100644 index dd569b1b..00000000 --- a/tests/farm/html/gold_styled/a_py.html +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - Coverage for a.py: 67% - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-
-

if 1 < 2: 

-

# Needed a < to look at HTML entities. 

-

a = 3 

-

else: 

-

a = 4 

-
-
- - - diff --git a/tests/farm/html/gold_styled/extra.css b/tests/farm/html/gold_styled/extra.css deleted file mode 100644 index 46c41fcd..00000000 --- a/tests/farm/html/gold_styled/extra.css +++ /dev/null @@ -1 +0,0 @@ -/* Doesn't matter what goes in here, it gets copied. */ diff --git a/tests/farm/html/gold_styled/index.html b/tests/farm/html/gold_styled/index.html deleted file mode 100644 index 1f86b772..00000000 --- a/tests/farm/html/gold_styled/index.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - Coverage report - - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total31067%
a.py31067%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_styled/style.css b/tests/farm/html/gold_styled/style.css deleted file mode 100644 index 14592865..00000000 --- a/tests/farm/html/gold_styled/style.css +++ /dev/null @@ -1,376 +0,0 @@ -/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */ -/* For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt */ - -/* CSS styles for coverage.py. */ - -/* Page-wide styles */ -html, body, h1, h2, h3, p, table, td, th { - margin: 0; - padding: 0; - border: 0; - outline: 0; - font-weight: inherit; - font-style: inherit; - font-size: 100%; - font-family: inherit; - vertical-align: baseline; - } - -/* Set baseline grid to 16 pt. */ -body { - font-family: georgia, serif; - font-size: 1em; - } - -html>body { - font-size: 16px; - } - -/* Set base font size to 12/16 */ -p { - font-size: .75em; /* 12/16 */ - line-height: 1.33333333em; /* 16/12 */ - } - -table { - border-collapse: collapse; - } -td { - vertical-align: top; -} -table tr.hidden { - display: none !important; - } - -p#no_rows { - display: none; - font-size: 1.2em; - } - -a.nav { - text-decoration: none; - color: inherit; - } -a.nav:hover { - text-decoration: underline; - color: inherit; - } - -/* Page structure */ -#header { - background: #f8f8f8; - width: 100%; - border-bottom: 1px solid #eee; - } - -#source { - padding: 1em; - font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; - } - -.indexfile #footer { - margin: 1em 3em; - } - -.pyfile #footer { - margin: 1em 1em; - } - -#footer .content { - padding: 0; - font-size: 85%; - font-family: verdana, sans-serif; - color: #666666; - font-style: italic; - } - -#index { - margin: 1em 0 0 3em; - } - -/* Header styles */ -#header .content { - padding: 1em 3em; - } - -h1 { - font-size: 1.25em; - display: inline-block; -} - -#filter_container { - display: inline-block; - float: right; - margin: 0 2em 0 0; -} -#filter_container input { - width: 10em; -} - -h2.stats { - margin-top: .5em; - font-size: 1em; -} -.stats span { - border: 1px solid; - padding: .1em .25em; - margin: 0 .1em; - cursor: pointer; - border-color: #999 #ccc #ccc #999; -} -.stats span.hide_run, .stats span.hide_exc, -.stats span.hide_mis, .stats span.hide_par, -.stats span.par.hide_run.hide_par { - border-color: #ccc #999 #999 #ccc; -} -.stats span.par.hide_run { - border-color: #999 #ccc #ccc #999; -} - -.stats span.run { - background: #ddffdd; -} -.stats span.exc { - background: #eeeeee; -} -.stats span.mis { - background: #ffdddd; -} -.stats span.hide_run { - background: #eeffee; -} -.stats span.hide_exc { - background: #f5f5f5; -} -.stats span.hide_mis { - background: #ffeeee; -} -.stats span.par { - background: #ffffaa; -} -.stats span.hide_par { - background: #ffffcc; -} - -/* Help panel */ -#keyboard_icon { - float: right; - margin: 5px; - cursor: pointer; -} - -.help_panel { - position: absolute; - background: #ffffcc; - padding: .5em; - border: 1px solid #883; - display: none; -} - -.indexfile .help_panel { - width: 20em; height: 4em; -} - -.pyfile .help_panel { - width: 16em; height: 8em; -} - -.help_panel .legend { - font-style: italic; - margin-bottom: 1em; -} - -#panel_icon { - float: right; - cursor: pointer; -} - -.keyhelp { - margin: .75em; -} - -.keyhelp .key { - border: 1px solid black; - border-color: #888 #333 #333 #888; - padding: .1em .35em; - font-family: monospace; - font-weight: bold; - background: #eee; -} - -/* Source file styles */ -.linenos p { - text-align: right; - margin: 0; - padding: 0 .5em; - color: #999999; - font-family: verdana, sans-serif; - font-size: .625em; /* 10/16 */ - line-height: 1.6em; /* 16/10 */ - } -.linenos p.highlight { - background: #ffdd00; - } -.linenos p a { - text-decoration: none; - color: #999999; - } -.linenos p a:hover { - text-decoration: underline; - color: #999999; - } - -td.text { - width: 100%; - } -.text p { - margin: 0; - padding: 0 0 0 .5em; - border-left: 2px solid #ffffff; - white-space: pre; - position: relative; - } - -.text p.mis { - background: #ffdddd; - border-left: 2px solid #ff0000; - } -.text p.run, .text p.run.hide_par { - background: #ddffdd; - border-left: 2px solid #00ff00; - } -.text p.exc { - background: #eeeeee; - border-left: 2px solid #808080; - } -.text p.par, .text p.par.hide_run { - background: #ffffaa; - border-left: 2px solid #eeee99; - } -.text p.hide_run, .text p.hide_exc, .text p.hide_mis, .text p.hide_par, -.text p.hide_run.hide_par { - background: inherit; - } - -.text span.annotate { - font-family: georgia; - color: #666; - float: right; - padding-right: .5em; - } -.text p.hide_par span.annotate { - display: none; - } -.text span.annotate.long { - display: none; - } -.text p:hover span.annotate.long { - display: block; - max-width: 50%; - white-space: normal; - float: right; - position: absolute; - top: 1.75em; - right: 1em; - width: 30em; - height: auto; - color: #333; - background: #ffffcc; - border: 1px solid #888; - padding: .25em .5em; - z-index: 999; - border-radius: .2em; - box-shadow: #cccccc .2em .2em .2em; - } - -/* Syntax coloring */ -.text .com { - color: green; - font-style: italic; - line-height: 1px; - } -.text .key { - font-weight: bold; - line-height: 1px; - } -.text .str { - color: #000080; - } - -/* index styles */ -#index td, #index th { - text-align: right; - width: 5em; - padding: .25em .5em; - border-bottom: 1px solid #eee; - } -#index th { - font-style: italic; - color: #333; - border-bottom: 1px solid #ccc; - cursor: pointer; - } -#index th:hover { - background: #eee; - border-bottom: 1px solid #999; - } -#index td.left, #index th.left { - padding-left: 0; - } -#index td.right, #index th.right { - padding-right: 0; - } -#index th.headerSortDown, #index th.headerSortUp { - border-bottom: 1px solid #000; - white-space: nowrap; - background: #eee; - } -#index th.headerSortDown:after { - content: " ↓"; -} -#index th.headerSortUp:after { - content: " ↑"; -} -#index td.name, #index th.name { - text-align: left; - width: auto; - } -#index td.name a { - text-decoration: none; - color: #000; - } -#index tr.total, -#index tr.total_dynamic { - } -#index tr.total td, -#index tr.total_dynamic td { - font-weight: bold; - border-top: 1px solid #ccc; - border-bottom: none; - } -#index tr.file:hover { - background: #eeeeee; - } -#index tr.file:hover td.name { - text-decoration: underline; - color: #000; - } - -/* scroll marker styles */ -#scroll_marker { - position: fixed; - right: 0; - top: 0; - width: 16px; - height: 100%; - background: white; - border-left: 1px solid #eee; - will-change: transform; /* for faster scrolling of fixed element in Chrome */ - } - -#scroll_marker .marker { - background: #eedddd; - position: absolute; - min-height: 3px; - width: 100%; - } diff --git a/tests/farm/html/gold_unicode/index.html b/tests/farm/html/gold_unicode/index.html deleted file mode 100644 index 35a98a9e..00000000 --- a/tests/farm/html/gold_unicode/index.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Coverage report - - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- n - s - m - x - c   change column sorting -

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Modulestatementsmissingexcludedcoverage
Total200100%
unicode.py200100%
-

- No items found using the specified filter. -

-
- - - diff --git a/tests/farm/html/gold_unicode/unicode_py.html b/tests/farm/html/gold_unicode/unicode_py.html deleted file mode 100644 index 174a9a27..00000000 --- a/tests/farm/html/gold_unicode/unicode_py.html +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - Coverage for unicode.py: 100% - - - - - - - - - -
- Hide keyboard shortcuts -

Hot-keys on this page

-
-

- r - m - x - p   toggle line displays -

-

- j - k   next/prev highlighted chunk -

-

- 0   (zero) top of page -

-

- 1   (one) first highlighted chunk -

-
-
-
- - - - - -
-

1

-

2

-

3

-

4

-

5

-
-

# -*- coding: utf-8 -*- 

-

# A Python source file with exotic characters. 

-

 

-

upside_down = "ʎd˙ǝbɐɹǝʌoɔ" 

-

surrogate = "db40,dd00: x󠄀" 

-
-
- - - diff --git a/tests/farm/html/gold_x_xml/coverage.xml b/tests/farm/html/gold_x_xml/coverage.xml deleted file mode 100644 index 1030f9f8..00000000 --- a/tests/farm/html/gold_x_xml/coverage.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - /private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hm0000gp/T/coverage_test/tests_test_xml_XmlGoldTest_test_a_xml_1_43316963 - - - - - - - - - - - - - - - - diff --git a/tests/farm/html/gold_y_xml_branch/coverage.xml b/tests/farm/html/gold_y_xml_branch/coverage.xml deleted file mode 100644 index 71e08bb0..00000000 --- a/tests/farm/html/gold_y_xml_branch/coverage.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - /private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hm0000gp/T/coverage_test/tests_test_xml_XmlGoldTest_test_y_xml_branch_93378757 - - - - - - - - - - - - - - - - - - diff --git a/tests/gold/annotate/anno_dir/a___init__.py,cover b/tests/gold/annotate/anno_dir/a___init__.py,cover new file mode 100644 index 00000000..e69de29b diff --git a/tests/gold/annotate/anno_dir/a_a.py,cover b/tests/gold/annotate/anno_dir/a_a.py,cover new file mode 100644 index 00000000..d0ff3c0c --- /dev/null +++ b/tests/gold/annotate/anno_dir/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/tests/gold/annotate/anno_dir/b___init__.py,cover b/tests/gold/annotate/anno_dir/b___init__.py,cover new file mode 100644 index 00000000..e69de29b diff --git a/tests/gold/annotate/anno_dir/b_b.py,cover b/tests/gold/annotate/anno_dir/b_b.py,cover new file mode 100644 index 00000000..90d076f1 --- /dev/null +++ b/tests/gold/annotate/anno_dir/b_b.py,cover @@ -0,0 +1,3 @@ +> def b(x): +> msg = "x is %s" % x +> print(msg) diff --git a/tests/gold/annotate/anno_dir/multi.py,cover b/tests/gold/annotate/anno_dir/multi.py,cover new file mode 100644 index 00000000..2a5c59ce --- /dev/null +++ b/tests/gold/annotate/anno_dir/multi.py,cover @@ -0,0 +1,5 @@ +> import a.a +> import b.b + +> a.a.a(1) +> b.b.b(2) diff --git a/tests/gold/annotate/annotate/white.py,cover b/tests/gold/annotate/annotate/white.py,cover new file mode 100644 index 00000000..36b0b993 --- /dev/null +++ b/tests/gold/annotate/annotate/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) diff --git a/tests/gold/annotate/encodings/utf8.py,cover b/tests/gold/annotate/encodings/utf8.py,cover new file mode 100644 index 00000000..6dbf7e0d --- /dev/null +++ b/tests/gold/annotate/encodings/utf8.py,cover @@ -0,0 +1,4 @@ + # -*- coding: utf-8 -*- + # This comment has an accent: é + +> print("spam eggs") diff --git a/tests/gold/annotate/multi/a/__init__.py,cover b/tests/gold/annotate/multi/a/__init__.py,cover new file mode 100644 index 00000000..e69de29b diff --git a/tests/gold/annotate/multi/a/a.py,cover b/tests/gold/annotate/multi/a/a.py,cover new file mode 100644 index 00000000..fb3f5435 --- /dev/null +++ b/tests/gold/annotate/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/tests/gold/annotate/multi/b/__init__.py,cover b/tests/gold/annotate/multi/b/__init__.py,cover new file mode 100644 index 00000000..e69de29b diff --git a/tests/gold/annotate/multi/b/b.py,cover b/tests/gold/annotate/multi/b/b.py,cover new file mode 100644 index 00000000..a3f5daec --- /dev/null +++ b/tests/gold/annotate/multi/b/b.py,cover @@ -0,0 +1,2 @@ +> def b(x): +> print "x is %s" % x diff --git a/tests/gold/annotate/multi/multi.py,cover b/tests/gold/annotate/multi/multi.py,cover new file mode 100644 index 00000000..2a5c59ce --- /dev/null +++ b/tests/gold/annotate/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/tests/gold/html/a/a_py.html b/tests/gold/html/a/a_py.html new file mode 100644 index 00000000..119ad4a3 --- /dev/null +++ b/tests/gold/html/a/a_py.html @@ -0,0 +1,82 @@ + + + + + + Coverage for a.py: 67% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+
+

if 1 < 2: 

+

# Needed a < to look at HTML entities. 

+

a = 3 

+

else: 

+

a = 4 

+
+
+ + + diff --git a/tests/gold/html/a/index.html b/tests/gold/html/a/index.html new file mode 100644 index 00000000..b839af1e --- /dev/null +++ b/tests/gold/html/a/index.html @@ -0,0 +1,84 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total31067%
a.py31067%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/b_branch/b_py.html b/tests/gold/html/b_branch/b_py.html new file mode 100644 index 00000000..a21175eb --- /dev/null +++ b/tests/gold/html/b_branch/b_py.html @@ -0,0 +1,127 @@ + + + + + + Coverage for b.py: 70% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+

11

+

12

+

13

+

14

+

15

+

16

+

17

+

18

+

19

+

20

+

21

+

22

+

23

+

24

+

25

+

26

+

27

+
+

def one(x): 

+

# This will be a branch that misses the else. 

+

3 ↛ 6line 3 didn't jump to line 6, because the condition on line 3 was never false if x < 2: 

+

a = 3 

+

else: 

+

a = 4 

+

 

+

one(1) 

+

 

+

def two(x): 

+

# A missed else that branches to "exit" 

+

12 ↛ exitline 12 didn't return from function 'two', because the condition on line 12 was never false if x: 

+

a = 5 

+

 

+

two(1) 

+

 

+

def three(): 

+

try: 

+

# This if has two branches, *neither* one taken. 

+

20 ↛ 21,   20 ↛ 232 missed branches: 1) line 20 didn't jump to line 21, because the condition on line 20 was never true, 2) line 20 didn't jump to line 23, because the condition on line 20 was never false if name_error_this_variable_doesnt_exist: 

+

a = 1 

+

else: 

+

a = 2 

+

except: 

+

pass 

+

 

+

three() 

+
+
+ + + diff --git a/tests/gold/html/b_branch/index.html b/tests/gold/html/b_branch/index.html new file mode 100644 index 00000000..a0346e86 --- /dev/null +++ b/tests/gold/html/b_branch/index.html @@ -0,0 +1,92 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + b + p + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedbranchespartialcoverage
Total17306470%
b.py17306470%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/bom/2/bom_py.html b/tests/gold/html/bom/2/bom_py.html new file mode 100644 index 00000000..14f25413 --- /dev/null +++ b/tests/gold/html/bom/2/bom_py.html @@ -0,0 +1,94 @@ + + + + + + Coverage for bom.py: 71% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+

11

+
+

# 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/tests/gold/html/bom/2/index.html b/tests/gold/html/bom/2/index.html new file mode 100644 index 00000000..bde4bb46 --- /dev/null +++ b/tests/gold/html/bom/2/index.html @@ -0,0 +1,84 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total72071%
bom.py72071%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/bom/bom_py.html b/tests/gold/html/bom/bom_py.html new file mode 100644 index 00000000..78d7f7b7 --- /dev/null +++ b/tests/gold/html/bom/bom_py.html @@ -0,0 +1,94 @@ + + + + + + Coverage for bom.py: 71% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+

11

+
+

# 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/tests/gold/html/bom/index.html b/tests/gold/html/bom/index.html new file mode 100644 index 00000000..4c4d9897 --- /dev/null +++ b/tests/gold/html/bom/index.html @@ -0,0 +1,84 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total72071%
bom.py72071%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/isolatin1/index.html b/tests/gold/html/isolatin1/index.html new file mode 100644 index 00000000..c648ae7d --- /dev/null +++ b/tests/gold/html/isolatin1/index.html @@ -0,0 +1,84 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total200100%
isolatin1.py200100%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/isolatin1/isolatin1_py.html b/tests/gold/html/isolatin1/isolatin1_py.html new file mode 100644 index 00000000..e8ad244b --- /dev/null +++ b/tests/gold/html/isolatin1/isolatin1_py.html @@ -0,0 +1,82 @@ + + + + + + Coverage for isolatin1.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+
+

# -*- coding: iso8859-1 -*- 

+

# A Python source file in another encoding. 

+

 

+

math = "3×4 = 12, ÷2 = 6±0" 

+

assert len(math) == 18 

+
+
+ + + diff --git a/tests/gold/html/omit_1/index.html b/tests/gold/html/omit_1/index.html new file mode 100644 index 00000000..289c6f10 --- /dev/null +++ b/tests/gold/html/omit_1/index.html @@ -0,0 +1,105 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total1400100%
m1.py200100%
m2.py200100%
m3.py200100%
main.py800100%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/omit_1/m1_py.html b/tests/gold/html/omit_1/m1_py.html new file mode 100644 index 00000000..05b2bd49 --- /dev/null +++ b/tests/gold/html/omit_1/m1_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m1.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m1a = 1 

+

m1b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_1/m2_py.html b/tests/gold/html/omit_1/m2_py.html new file mode 100644 index 00000000..056e7af1 --- /dev/null +++ b/tests/gold/html/omit_1/m2_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m2.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m2a = 1 

+

m2b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_1/m3_py.html b/tests/gold/html/omit_1/m3_py.html new file mode 100644 index 00000000..428527b2 --- /dev/null +++ b/tests/gold/html/omit_1/m3_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m3.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m3a = 1 

+

m3b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_1/main_py.html b/tests/gold/html/omit_1/main_py.html new file mode 100644 index 00000000..3fbc4af7 --- /dev/null +++ b/tests/gold/html/omit_1/main_py.html @@ -0,0 +1,92 @@ + + + + + + Coverage for main.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+
+

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/tests/gold/html/omit_2/index.html b/tests/gold/html/omit_2/index.html new file mode 100644 index 00000000..5813c0dc --- /dev/null +++ b/tests/gold/html/omit_2/index.html @@ -0,0 +1,98 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total1200100%
m2.py200100%
m3.py200100%
main.py800100%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/omit_2/m2_py.html b/tests/gold/html/omit_2/m2_py.html new file mode 100644 index 00000000..056e7af1 --- /dev/null +++ b/tests/gold/html/omit_2/m2_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m2.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m2a = 1 

+

m2b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_2/m3_py.html b/tests/gold/html/omit_2/m3_py.html new file mode 100644 index 00000000..428527b2 --- /dev/null +++ b/tests/gold/html/omit_2/m3_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m3.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m3a = 1 

+

m3b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_2/main_py.html b/tests/gold/html/omit_2/main_py.html new file mode 100644 index 00000000..3fbc4af7 --- /dev/null +++ b/tests/gold/html/omit_2/main_py.html @@ -0,0 +1,92 @@ + + + + + + Coverage for main.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+
+

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/tests/gold/html/omit_3/index.html b/tests/gold/html/omit_3/index.html new file mode 100644 index 00000000..4ebcf4a4 --- /dev/null +++ b/tests/gold/html/omit_3/index.html @@ -0,0 +1,91 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total1000100%
m3.py200100%
main.py800100%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/omit_3/m3_py.html b/tests/gold/html/omit_3/m3_py.html new file mode 100644 index 00000000..428527b2 --- /dev/null +++ b/tests/gold/html/omit_3/m3_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m3.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m3a = 1 

+

m3b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_3/main_py.html b/tests/gold/html/omit_3/main_py.html new file mode 100644 index 00000000..3fbc4af7 --- /dev/null +++ b/tests/gold/html/omit_3/main_py.html @@ -0,0 +1,92 @@ + + + + + + Coverage for main.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+
+

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/tests/gold/html/omit_4/index.html b/tests/gold/html/omit_4/index.html new file mode 100644 index 00000000..e7588714 --- /dev/null +++ b/tests/gold/html/omit_4/index.html @@ -0,0 +1,98 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total1200100%
m1.py200100%
m3.py200100%
main.py800100%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/omit_4/m1_py.html b/tests/gold/html/omit_4/m1_py.html new file mode 100644 index 00000000..05b2bd49 --- /dev/null +++ b/tests/gold/html/omit_4/m1_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m1.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m1a = 1 

+

m1b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_4/m3_py.html b/tests/gold/html/omit_4/m3_py.html new file mode 100644 index 00000000..428527b2 --- /dev/null +++ b/tests/gold/html/omit_4/m3_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m3.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m3a = 1 

+

m3b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_4/main_py.html b/tests/gold/html/omit_4/main_py.html new file mode 100644 index 00000000..3fbc4af7 --- /dev/null +++ b/tests/gold/html/omit_4/main_py.html @@ -0,0 +1,92 @@ + + + + + + Coverage for main.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+
+

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/tests/gold/html/omit_5/index.html b/tests/gold/html/omit_5/index.html new file mode 100644 index 00000000..e2c1a132 --- /dev/null +++ b/tests/gold/html/omit_5/index.html @@ -0,0 +1,91 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total1000100%
m1.py200100%
main.py800100%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/omit_5/m1_py.html b/tests/gold/html/omit_5/m1_py.html new file mode 100644 index 00000000..05b2bd49 --- /dev/null +++ b/tests/gold/html/omit_5/m1_py.html @@ -0,0 +1,76 @@ + + + + + + Coverage for m1.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+
+

m1a = 1 

+

m1b = 2 

+
+
+ + + diff --git a/tests/gold/html/omit_5/main_py.html b/tests/gold/html/omit_5/main_py.html new file mode 100644 index 00000000..3fbc4af7 --- /dev/null +++ b/tests/gold/html/omit_5/main_py.html @@ -0,0 +1,92 @@ + + + + + + Coverage for main.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+
+

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/tests/gold/html/other/blah_blah_other_py.html b/tests/gold/html/other/blah_blah_other_py.html new file mode 100644 index 00000000..36e3653d --- /dev/null +++ b/tests/gold/html/other/blah_blah_other_py.html @@ -0,0 +1,80 @@ + + + + + + Coverage for /private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hm0000gp/T/coverage_test/tests_test_html_HtmlGoldTests_test_other_95946649/othersrc/other.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+
+

# A file in another directory. We're checking that it ends up in the 

+

# HTML report. 

+

 

+

print("This is the other src!") 

+
+
+ + + diff --git a/tests/gold/html/other/here_py.html b/tests/gold/html/other/here_py.html new file mode 100644 index 00000000..8efa027a --- /dev/null +++ b/tests/gold/html/other/here_py.html @@ -0,0 +1,84 @@ + + + + + + Coverage for here.py: 75% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+
+

import other 

+

 

+

if 1 < 2: 

+

h = 3 

+

else: 

+

h = 4 

+
+
+ + + diff --git a/tests/gold/html/other/index.html b/tests/gold/html/other/index.html new file mode 100644 index 00000000..10d4ae9a --- /dev/null +++ b/tests/gold/html/other/index.html @@ -0,0 +1,91 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total51080%
/private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hm0000gp/T/coverage_test/tests_test_html_HtmlGoldTests_test_other_95946649/othersrc/other.py100100%
here.py41075%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/partial/index.html b/tests/gold/html/partial/index.html new file mode 100644 index 00000000..6ac43531 --- /dev/null +++ b/tests/gold/html/partial/index.html @@ -0,0 +1,92 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + b + p + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedbranchespartialcoverage
Total7014191%
partial.py7014191%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/partial/partial_py.html b/tests/gold/html/partial/partial_py.html new file mode 100644 index 00000000..96d02f2f --- /dev/null +++ b/tests/gold/html/partial/partial_py.html @@ -0,0 +1,107 @@ + + + + + + Coverage for partial.py: 91% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+

6

+

7

+

8

+

9

+

10

+

11

+

12

+

13

+

14

+

15

+

16

+

17

+
+

# partial branches and excluded lines 

+

a = 6 

+

 

+

4 ↛ 7line 4 didn't jump to line 7, because the condition on line 4 was never falsewhile "no peephole".upper(): # t4 

+

break 

+

 

+

while a: # pragma: no branch 

+

break 

+

 

+

if 0: 

+

never_happen() 

+

 

+

if 1: 

+

a = 21 

+

 

+

if a == 23: 

+

raise AssertionError("Can't") 

+
+
+ + + diff --git a/tests/gold/html/styled/a_py.html b/tests/gold/html/styled/a_py.html new file mode 100644 index 00000000..dd569b1b --- /dev/null +++ b/tests/gold/html/styled/a_py.html @@ -0,0 +1,83 @@ + + + + + + Coverage for a.py: 67% + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+
+

if 1 < 2: 

+

# Needed a < to look at HTML entities. 

+

a = 3 

+

else: 

+

a = 4 

+
+
+ + + diff --git a/tests/gold/html/styled/extra.css b/tests/gold/html/styled/extra.css new file mode 100644 index 00000000..46c41fcd --- /dev/null +++ b/tests/gold/html/styled/extra.css @@ -0,0 +1 @@ +/* Doesn't matter what goes in here, it gets copied. */ diff --git a/tests/gold/html/styled/index.html b/tests/gold/html/styled/index.html new file mode 100644 index 00000000..1f86b772 --- /dev/null +++ b/tests/gold/html/styled/index.html @@ -0,0 +1,85 @@ + + + + + Coverage report + + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total31067%
a.py31067%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/styled/style.css b/tests/gold/html/styled/style.css new file mode 100644 index 00000000..14592865 --- /dev/null +++ b/tests/gold/html/styled/style.css @@ -0,0 +1,376 @@ +/* Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 */ +/* For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt */ + +/* CSS styles for coverage.py. */ + +/* Page-wide styles */ +html, body, h1, h2, h3, p, table, td, th { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-weight: inherit; + font-style: inherit; + font-size: 100%; + font-family: inherit; + vertical-align: baseline; + } + +/* Set baseline grid to 16 pt. */ +body { + font-family: georgia, serif; + font-size: 1em; + } + +html>body { + font-size: 16px; + } + +/* Set base font size to 12/16 */ +p { + font-size: .75em; /* 12/16 */ + line-height: 1.33333333em; /* 16/12 */ + } + +table { + border-collapse: collapse; + } +td { + vertical-align: top; +} +table tr.hidden { + display: none !important; + } + +p#no_rows { + display: none; + font-size: 1.2em; + } + +a.nav { + text-decoration: none; + color: inherit; + } +a.nav:hover { + text-decoration: underline; + color: inherit; + } + +/* Page structure */ +#header { + background: #f8f8f8; + width: 100%; + border-bottom: 1px solid #eee; + } + +#source { + padding: 1em; + font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; + } + +.indexfile #footer { + margin: 1em 3em; + } + +.pyfile #footer { + margin: 1em 1em; + } + +#footer .content { + padding: 0; + font-size: 85%; + font-family: verdana, sans-serif; + color: #666666; + font-style: italic; + } + +#index { + margin: 1em 0 0 3em; + } + +/* Header styles */ +#header .content { + padding: 1em 3em; + } + +h1 { + font-size: 1.25em; + display: inline-block; +} + +#filter_container { + display: inline-block; + float: right; + margin: 0 2em 0 0; +} +#filter_container input { + width: 10em; +} + +h2.stats { + margin-top: .5em; + font-size: 1em; +} +.stats span { + border: 1px solid; + padding: .1em .25em; + margin: 0 .1em; + cursor: pointer; + border-color: #999 #ccc #ccc #999; +} +.stats span.hide_run, .stats span.hide_exc, +.stats span.hide_mis, .stats span.hide_par, +.stats span.par.hide_run.hide_par { + border-color: #ccc #999 #999 #ccc; +} +.stats span.par.hide_run { + border-color: #999 #ccc #ccc #999; +} + +.stats span.run { + background: #ddffdd; +} +.stats span.exc { + background: #eeeeee; +} +.stats span.mis { + background: #ffdddd; +} +.stats span.hide_run { + background: #eeffee; +} +.stats span.hide_exc { + background: #f5f5f5; +} +.stats span.hide_mis { + background: #ffeeee; +} +.stats span.par { + background: #ffffaa; +} +.stats span.hide_par { + background: #ffffcc; +} + +/* Help panel */ +#keyboard_icon { + float: right; + margin: 5px; + cursor: pointer; +} + +.help_panel { + position: absolute; + background: #ffffcc; + padding: .5em; + border: 1px solid #883; + display: none; +} + +.indexfile .help_panel { + width: 20em; height: 4em; +} + +.pyfile .help_panel { + width: 16em; height: 8em; +} + +.help_panel .legend { + font-style: italic; + margin-bottom: 1em; +} + +#panel_icon { + float: right; + cursor: pointer; +} + +.keyhelp { + margin: .75em; +} + +.keyhelp .key { + border: 1px solid black; + border-color: #888 #333 #333 #888; + padding: .1em .35em; + font-family: monospace; + font-weight: bold; + background: #eee; +} + +/* Source file styles */ +.linenos p { + text-align: right; + margin: 0; + padding: 0 .5em; + color: #999999; + font-family: verdana, sans-serif; + font-size: .625em; /* 10/16 */ + line-height: 1.6em; /* 16/10 */ + } +.linenos p.highlight { + background: #ffdd00; + } +.linenos p a { + text-decoration: none; + color: #999999; + } +.linenos p a:hover { + text-decoration: underline; + color: #999999; + } + +td.text { + width: 100%; + } +.text p { + margin: 0; + padding: 0 0 0 .5em; + border-left: 2px solid #ffffff; + white-space: pre; + position: relative; + } + +.text p.mis { + background: #ffdddd; + border-left: 2px solid #ff0000; + } +.text p.run, .text p.run.hide_par { + background: #ddffdd; + border-left: 2px solid #00ff00; + } +.text p.exc { + background: #eeeeee; + border-left: 2px solid #808080; + } +.text p.par, .text p.par.hide_run { + background: #ffffaa; + border-left: 2px solid #eeee99; + } +.text p.hide_run, .text p.hide_exc, .text p.hide_mis, .text p.hide_par, +.text p.hide_run.hide_par { + background: inherit; + } + +.text span.annotate { + font-family: georgia; + color: #666; + float: right; + padding-right: .5em; + } +.text p.hide_par span.annotate { + display: none; + } +.text span.annotate.long { + display: none; + } +.text p:hover span.annotate.long { + display: block; + max-width: 50%; + white-space: normal; + float: right; + position: absolute; + top: 1.75em; + right: 1em; + width: 30em; + height: auto; + color: #333; + background: #ffffcc; + border: 1px solid #888; + padding: .25em .5em; + z-index: 999; + border-radius: .2em; + box-shadow: #cccccc .2em .2em .2em; + } + +/* Syntax coloring */ +.text .com { + color: green; + font-style: italic; + line-height: 1px; + } +.text .key { + font-weight: bold; + line-height: 1px; + } +.text .str { + color: #000080; + } + +/* index styles */ +#index td, #index th { + text-align: right; + width: 5em; + padding: .25em .5em; + border-bottom: 1px solid #eee; + } +#index th { + font-style: italic; + color: #333; + border-bottom: 1px solid #ccc; + cursor: pointer; + } +#index th:hover { + background: #eee; + border-bottom: 1px solid #999; + } +#index td.left, #index th.left { + padding-left: 0; + } +#index td.right, #index th.right { + padding-right: 0; + } +#index th.headerSortDown, #index th.headerSortUp { + border-bottom: 1px solid #000; + white-space: nowrap; + background: #eee; + } +#index th.headerSortDown:after { + content: " ↓"; +} +#index th.headerSortUp:after { + content: " ↑"; +} +#index td.name, #index th.name { + text-align: left; + width: auto; + } +#index td.name a { + text-decoration: none; + color: #000; + } +#index tr.total, +#index tr.total_dynamic { + } +#index tr.total td, +#index tr.total_dynamic td { + font-weight: bold; + border-top: 1px solid #ccc; + border-bottom: none; + } +#index tr.file:hover { + background: #eeeeee; + } +#index tr.file:hover td.name { + text-decoration: underline; + color: #000; + } + +/* scroll marker styles */ +#scroll_marker { + position: fixed; + right: 0; + top: 0; + width: 16px; + height: 100%; + background: white; + border-left: 1px solid #eee; + will-change: transform; /* for faster scrolling of fixed element in Chrome */ + } + +#scroll_marker .marker { + background: #eedddd; + position: absolute; + min-height: 3px; + width: 100%; + } diff --git a/tests/gold/html/unicode/index.html b/tests/gold/html/unicode/index.html new file mode 100644 index 00000000..35a98a9e --- /dev/null +++ b/tests/gold/html/unicode/index.html @@ -0,0 +1,84 @@ + + + + + Coverage report + + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ n + s + m + x + c   change column sorting +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Modulestatementsmissingexcludedcoverage
Total200100%
unicode.py200100%
+

+ No items found using the specified filter. +

+
+ + + diff --git a/tests/gold/html/unicode/unicode_py.html b/tests/gold/html/unicode/unicode_py.html new file mode 100644 index 00000000..174a9a27 --- /dev/null +++ b/tests/gold/html/unicode/unicode_py.html @@ -0,0 +1,82 @@ + + + + + + Coverage for unicode.py: 100% + + + + + + + + + +
+ Hide keyboard shortcuts +

Hot-keys on this page

+
+

+ r + m + x + p   toggle line displays +

+

+ j + k   next/prev highlighted chunk +

+

+ 0   (zero) top of page +

+

+ 1   (one) first highlighted chunk +

+
+
+
+ + + + + +
+

1

+

2

+

3

+

4

+

5

+
+

# -*- coding: utf-8 -*- 

+

# A Python source file with exotic characters. 

+

 

+

upside_down = "ʎd˙ǝbɐɹǝʌoɔ" 

+

surrogate = "db40,dd00: x󠄀" 

+
+
+ + + diff --git a/tests/gold/xml/x_xml/coverage.xml b/tests/gold/xml/x_xml/coverage.xml new file mode 100644 index 00000000..1030f9f8 --- /dev/null +++ b/tests/gold/xml/x_xml/coverage.xml @@ -0,0 +1,22 @@ + + + + + + /private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hm0000gp/T/coverage_test/tests_test_xml_XmlGoldTest_test_a_xml_1_43316963 + + + + + + + + + + + + + + + + diff --git a/tests/gold/xml/y_xml_branch/coverage.xml b/tests/gold/xml/y_xml_branch/coverage.xml new file mode 100644 index 00000000..71e08bb0 --- /dev/null +++ b/tests/gold/xml/y_xml_branch/coverage.xml @@ -0,0 +1,24 @@ + + + + + + /private/var/folders/j2/gr3cj3jn63s5q8g3bjvw57hm0000gp/T/coverage_test/tests_test_xml_XmlGoldTest_test_y_xml_branch_93378757 + + + + + + + + + + + + + + + + + + diff --git a/tests/goldtest.py b/tests/goldtest.py index 975db615..4c6c3c96 100644 --- a/tests/goldtest.py +++ b/tests/goldtest.py @@ -20,7 +20,7 @@ from tests.coveragetest import TESTS_DIR def gold_path(path): """Get a path to a gold file for comparison.""" - return os.path.join(TESTS_DIR, "farm", path) + return os.path.join(TESTS_DIR, "gold", path) # "rU" was deprecated in 3.4 diff --git a/tests/test_annotate.py b/tests/test_annotate.py index 5b275f93..65054ffd 100644 --- a/tests/test_annotate.py +++ b/tests/test_annotate.py @@ -41,7 +41,7 @@ class AnnotationGoldTest1(CoverageTest): self.start_import_stop(cov, "multi") cov.annotate() - compare(gold_path("annotate/gold_multi"), ".", "*,cover") + compare(gold_path("annotate/multi"), ".", "*,cover") def test_annotate_dir(self): self.make_multi() @@ -49,7 +49,7 @@ class AnnotationGoldTest1(CoverageTest): self.start_import_stop(cov, "multi") cov.annotate(directory="out_anno_dir") - compare(gold_path("annotate/gold_anno_dir"), "out_anno_dir", "*,cover") + compare(gold_path("annotate/anno_dir"), "out_anno_dir", "*,cover") def test_encoding(self): self.make_file("utf8.py", """\ @@ -61,7 +61,7 @@ class AnnotationGoldTest1(CoverageTest): cov = coverage.Coverage() self.start_import_stop(cov, "utf8") cov.annotate() - compare(gold_path("annotate/gold_encodings"), ".", "*,cover") + compare(gold_path("annotate/encodings"), ".", "*,cover") def test_white(self): self.make_file("white.py", """\ @@ -103,4 +103,4 @@ class AnnotationGoldTest1(CoverageTest): cov = coverage.Coverage() self.start_import_stop(cov, "white") cov.annotate() - compare(gold_path("annotate/gold"), ".", "*,cover") + compare(gold_path("annotate/annotate"), ".", "*,cover") diff --git a/tests/test_html.py b/tests/test_html.py index 0b25e91d..bd6f7bd8 100644 --- a/tests/test_html.py +++ b/tests/test_html.py @@ -622,7 +622,7 @@ class HtmlGoldTests(CoverageTest): a = self.start_import_stop(cov, "a") cov.html_report(a, directory='out') - compare_html(gold_path("html/gold_a"), "out") + compare_html(gold_path("html/a"), "out") contains( "out/a_py.html", ('if 1 ' @@ -673,7 +673,7 @@ class HtmlGoldTests(CoverageTest): b = self.start_import_stop(cov, "b") cov.html_report(b, directory="out") - compare_html(gold_path("html/gold_b_branch"), "out") + compare_html(gold_path("html/b_branch"), "out") contains( "out/b_py.html", ('if x ' @@ -730,7 +730,7 @@ else: bom = self.start_import_stop(cov, "bom") cov.html_report(bom, directory="out") - compare_html(gold_path("html/gold_bom"), "out") + compare_html(gold_path("html/bom"), "out") contains( "out/bom_py.html", '"3×4 = 12, ÷2 = 6±0"', @@ -749,7 +749,7 @@ assert len(math) == 18 isolatin1 = self.start_import_stop(cov, "isolatin1") cov.html_report(isolatin1, directory="out") - compare_html(gold_path("html/gold_isolatin1"), "out") + compare_html(gold_path("html/isolatin1"), "out") contains( "out/isolatin1_py.html", '"3×4 = 12, ÷2 = 6±0"', @@ -787,21 +787,21 @@ assert len(math) == 18 cov = coverage.Coverage(include=["./*"]) self.start_import_stop(cov, "main") cov.html_report(directory="out") - compare_html(gold_path("html/gold_omit_1"), "out") + compare_html(gold_path("html/omit_1"), "out") def test_omit_2(self): self.make_main_etc() cov = coverage.Coverage(include=["./*"]) self.start_import_stop(cov, "main") cov.html_report(directory="out", omit=["m1.py"]) - compare_html(gold_path("html/gold_omit_2"), "out") + compare_html(gold_path("html/omit_2"), "out") def test_omit_3(self): self.make_main_etc() cov = coverage.Coverage(include=["./*"]) self.start_import_stop(cov, "main") cov.html_report(directory="out", omit=["m1.py", "m2.py"]) - compare_html(gold_path("html/gold_omit_3"), "out") + compare_html(gold_path("html/omit_3"), "out") def test_omit_4(self): self.make_main_etc() @@ -813,7 +813,7 @@ assert len(math) == 18 cov = coverage.Coverage(config_file="omit4.ini", include=["./*"]) self.start_import_stop(cov, "main") cov.html_report(directory="out") - compare_html(gold_path("html/gold_omit_4"), "out") + compare_html(gold_path("html/omit_4"), "out") def test_omit_5(self): self.make_main_etc() @@ -831,7 +831,7 @@ assert len(math) == 18 cov = coverage.Coverage(config_file="omit5.ini", include=["./*"]) self.start_import_stop(cov, "main") cov.html_report() - compare_html(gold_path("html/gold_omit_5"), "out/omit_5") + compare_html(gold_path("html/omit_5"), "out/omit_5") def test_other(self): self.make_file("src/here.py", """\ @@ -860,7 +860,7 @@ assert len(math) == 18 for p in glob.glob("out/*_other_py.html"): os.rename(p, "out/blah_blah_other_py.html") - compare_html(gold_path("html/gold_other"), "out") + compare_html(gold_path("html/other"), "out") contains( "out/index.html", 'here.py', @@ -900,7 +900,7 @@ assert len(math) == 18 partial = self.start_import_stop(cov, "partial") cov.html_report(partial, directory="out") - compare_html(gold_path("html/gold_partial"), "out") + compare_html(gold_path("html/partial"), "out") contains( "out/partial_py.html", '

', @@ -934,8 +934,8 @@ assert len(math) == 18 a = self.start_import_stop(cov, "a") cov.html_report(a, directory="out", extra_css="extra.css") - compare_html(gold_path("html/gold_styled"), "out") - compare(gold_path("html/gold_styled"), "out", file_pattern="*.css") + compare_html(gold_path("html/styled"), "out") + compare(gold_path("html/styled"), "out", file_pattern="*.css") contains( "out/a_py.html", '', @@ -1000,7 +1000,7 @@ assert len(math) == 18 unicode = self.start_import_stop(cov, "unicode") cov.html_report(unicode, directory="out") - compare_html(gold_path("html/gold_unicode"), "out") + compare_html(gold_path("html/unicode"), "out") contains( "out/unicode_py.html", '"ʎd˙ǝbɐɹǝʌoɔ"', diff --git a/tests/test_xml.py b/tests/test_xml.py index f73728fc..185e6ad1 100644 --- a/tests/test_xml.py +++ b/tests/test_xml.py @@ -337,7 +337,7 @@ class XmlGoldTest(CoverageTest): cov = coverage.Coverage() a = self.start_import_stop(cov, "a") cov.xml_report(a, outfile="coverage.xml") - compare_xml(gold_path("html/gold_x_xml"), ".", actual_extra=True) + compare_xml(gold_path("xml/x_xml"), ".", actual_extra=True) def test_a_xml_2(self): self.make_file("a.py", """\ @@ -357,7 +357,7 @@ class XmlGoldTest(CoverageTest): cov = coverage.Coverage(config_file="run_a_xml_2.ini") a = self.start_import_stop(cov, "a") cov.xml_report(a) - compare_xml(gold_path("html/gold_x_xml"), "xml_2") + compare_xml(gold_path("xml/x_xml"), "xml_2") def test_y_xml_branch(self): self.make_file("y.py", """\ @@ -373,4 +373,4 @@ class XmlGoldTest(CoverageTest): cov = coverage.Coverage(branch=True) y = self.start_import_stop(cov, "y") cov.xml_report(y, outfile="y_xml_branch/coverage.xml") - compare_xml(gold_path("html/gold_y_xml_branch"), "y_xml_branch") + compare_xml(gold_path("xml/y_xml_branch"), "y_xml_branch") -- cgit v1.2.1