• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

smythi93 / Tests4Py / 30040549735

23 Jul 2026 08:04PM UTC coverage: 23.663% (-21.5%) from 45.174%
30040549735

push

github

web-flow
Merge pull request #106 from smythi93/dev

Release 1.0.0 — complete benchmark coverage (328/328 reproducible bugs)

11882 of 64778 new or added lines in 1205 files covered. (18.34%)

46 existing lines in 14 files now uncovered.

18085 of 76426 relevant lines covered (23.66%)

0.24 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/tests4py/projects/resources/matplotlib/bug_12/unittests.py
NEW
1
import unittest
×
NEW
2
import matplotlib
×
NEW
3
matplotlib.use('Agg')
×
NEW
4
import matplotlib.pyplot as plt
×
5

NEW
6
class TestsFailing(unittest.TestCase):
×
7

NEW
8
    def test_diversity_1(self):
×
NEW
9
        fig, ax = plt.subplots()
×
NEW
10
        coll = ax.vlines([-4.69, float('nan'), 9.94, -1.1, float('nan')], 0, 1)
×
NEW
11
        self.assertEqual(5, len(coll.get_segments()))
×
NEW
12
        plt.close(fig)
×
13

NEW
14
    def test_diversity_2(self):
×
NEW
15
        fig, ax = plt.subplots()
×
NEW
16
        coll = ax.hlines([-0.65, float('nan'), -9.6, 4.09], 0, 1)
×
NEW
17
        self.assertEqual(4, len(coll.get_segments()))
×
NEW
18
        plt.close(fig)
×
19

NEW
20
    def test_diversity_3(self):
×
NEW
21
        fig, ax = plt.subplots()
×
NEW
22
        coll = ax.hlines([0.18, -5.73, 5.94, 2.26, float('nan')], 0, 1)
×
NEW
23
        self.assertEqual(5, len(coll.get_segments()))
×
NEW
24
        plt.close(fig)
×
25

NEW
26
    def test_diversity_4(self):
×
NEW
27
        fig, ax = plt.subplots()
×
NEW
28
        coll = ax.hlines([-5.25, -1.88, float('nan'), -2.71, 4.22], 0, 1)
×
NEW
29
        self.assertEqual(5, len(coll.get_segments()))
×
NEW
30
        plt.close(fig)
×
31

NEW
32
    def test_diversity_5(self):
×
NEW
33
        fig, ax = plt.subplots()
×
NEW
34
        coll = ax.hlines([float('nan'), 0.9, 8.67, float('nan')], 0, 1)
×
NEW
35
        self.assertEqual(4, len(coll.get_segments()))
×
NEW
36
        plt.close(fig)
×
37

NEW
38
    def test_diversity_6(self):
×
NEW
39
        fig, ax = plt.subplots()
×
NEW
40
        coll = ax.vlines([float('nan'), float('nan'), 8.74, -4.12, 3.48], 0, 1)
×
NEW
41
        self.assertEqual(5, len(coll.get_segments()))
×
NEW
42
        plt.close(fig)
×
43

NEW
44
    def test_diversity_7(self):
×
NEW
45
        fig, ax = plt.subplots()
×
NEW
46
        coll = ax.vlines([-1.68, float('nan'), 3.82, -2.7, 8.12], 0, 1)
×
NEW
47
        self.assertEqual(5, len(coll.get_segments()))
×
NEW
48
        plt.close(fig)
×
49

NEW
50
    def test_diversity_8(self):
×
NEW
51
        fig, ax = plt.subplots()
×
NEW
52
        coll = ax.hlines([-5.13, -0.95, 4.61, float('nan')], 0, 1)
×
NEW
53
        self.assertEqual(4, len(coll.get_segments()))
×
NEW
54
        plt.close(fig)
×
55

NEW
56
    def test_diversity_9(self):
×
NEW
57
        fig, ax = plt.subplots()
×
NEW
58
        coll = ax.vlines([8.75, float('nan'), 7.88, -5.99, -8.38, 3.28], 0, 1)
×
NEW
59
        self.assertEqual(6, len(coll.get_segments()))
×
NEW
60
        plt.close(fig)
×
61

NEW
62
    def test_diversity_10(self):
×
NEW
63
        fig, ax = plt.subplots()
×
NEW
64
        coll = ax.vlines([float('nan'), float('nan'), 0.6, 3.25], 0, 1)
×
NEW
65
        self.assertEqual(4, len(coll.get_segments()))
×
NEW
66
        plt.close(fig)
×
67

NEW
68
class TestsPassing(unittest.TestCase):
×
69

NEW
70
    def test_diversity_1(self):
×
NEW
71
        fig, ax = plt.subplots()
×
NEW
72
        coll = ax.hlines([-6.71, 0.85], 0, 1)
×
NEW
73
        self.assertEqual(2, len(coll.get_segments()))
×
NEW
74
        plt.close(fig)
×
75

NEW
76
    def test_diversity_2(self):
×
NEW
77
        fig, ax = plt.subplots()
×
NEW
78
        coll = ax.hlines([7.02, -9.83, -2.93, -3.2], 0, 1)
×
NEW
79
        self.assertEqual(4, len(coll.get_segments()))
×
NEW
80
        plt.close(fig)
×
81

NEW
82
    def test_diversity_3(self):
×
NEW
83
        fig, ax = plt.subplots()
×
NEW
84
        coll = ax.vlines([0.89, -9.07, -9.48], 0, 1)
×
NEW
85
        self.assertEqual(3, len(coll.get_segments()))
×
NEW
86
        plt.close(fig)
×
87

NEW
88
    def test_diversity_4(self):
×
NEW
89
        fig, ax = plt.subplots()
×
NEW
90
        coll = ax.hlines([-3.89, -1.94, -5.97], 0, 1)
×
NEW
91
        self.assertEqual(3, len(coll.get_segments()))
×
NEW
92
        plt.close(fig)
×
93

NEW
94
    def test_diversity_5(self):
×
NEW
95
        fig, ax = plt.subplots()
×
NEW
96
        coll = ax.hlines([7.85, -4.95, 8.15, -4.75, 5.58, 1.81, 5.49], 0, 1)
×
NEW
97
        self.assertEqual(7, len(coll.get_segments()))
×
NEW
98
        plt.close(fig)
×
99

NEW
100
    def test_diversity_6(self):
×
NEW
101
        fig, ax = plt.subplots()
×
NEW
102
        coll = ax.vlines([5.01, -7.62, -3.02, -4.48, 9.54], 0, 1)
×
NEW
103
        self.assertEqual(5, len(coll.get_segments()))
×
NEW
104
        plt.close(fig)
×
105

NEW
106
    def test_diversity_7(self):
×
NEW
107
        fig, ax = plt.subplots()
×
NEW
108
        coll = ax.vlines([4.46, 4.81, 2.56, -7.39, 2.48], 0, 1)
×
NEW
109
        self.assertEqual(5, len(coll.get_segments()))
×
NEW
110
        plt.close(fig)
×
111

NEW
112
    def test_diversity_8(self):
×
NEW
113
        fig, ax = plt.subplots()
×
NEW
114
        coll = ax.vlines([1.19, -9.59, 3.0, -7.2, -6.75, 4.68], 0, 1)
×
NEW
115
        self.assertEqual(6, len(coll.get_segments()))
×
NEW
116
        plt.close(fig)
×
117

NEW
118
    def test_diversity_9(self):
×
NEW
119
        fig, ax = plt.subplots()
×
NEW
120
        coll = ax.vlines([-6.36, -0.79, 5.7, 1.17, -1.02], 0, 1)
×
NEW
121
        self.assertEqual(5, len(coll.get_segments()))
×
NEW
122
        plt.close(fig)
×
123

NEW
124
    def test_diversity_10(self):
×
NEW
125
        fig, ax = plt.subplots()
×
NEW
126
        coll = ax.hlines([5.78, -4.18, -8.86, -7.6, 7.18, -9.55], 0, 1)
×
NEW
127
        self.assertEqual(6, len(coll.get_segments()))
×
NEW
128
        plt.close(fig)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc