• 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_28/unittests.py
NEW
1
import unittest
×
NEW
2
import warnings
×
NEW
3
import matplotlib
×
NEW
4
matplotlib.use('Agg')
×
NEW
5
import matplotlib.pyplot as plt
×
6

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

NEW
9
    def test_diversity_1(self):
×
NEW
10
        fig, ax = plt.subplots()
×
NEW
11
        ax.set_xscale('log')
×
NEW
12
        ok = 'FAIL'
×
NEW
13
        with warnings.catch_warnings():
×
NEW
14
            warnings.simplefilter('ignore')
×
NEW
15
            ax.set_xlim(-8.2, 6.26)
×
NEW
16
            ok = 'OK'
×
NEW
17
        self.assertEqual('OK', ok)
×
NEW
18
        plt.close(fig)
×
19

NEW
20
    def test_diversity_2(self):
×
NEW
21
        fig, ax = plt.subplots()
×
NEW
22
        ax.set_xscale('log')
×
NEW
23
        ok = 'FAIL'
×
NEW
24
        with warnings.catch_warnings():
×
NEW
25
            warnings.simplefilter('ignore')
×
NEW
26
            ax.set_xlim(-0.41, 11.74)
×
NEW
27
            ok = 'OK'
×
NEW
28
        self.assertEqual('OK', ok)
×
NEW
29
        plt.close(fig)
×
30

NEW
31
    def test_diversity_3(self):
×
NEW
32
        fig, ax = plt.subplots()
×
NEW
33
        ax.set_xscale('log')
×
NEW
34
        ok = 'FAIL'
×
NEW
35
        with warnings.catch_warnings():
×
NEW
36
            warnings.simplefilter('ignore')
×
NEW
37
            ax.set_xlim(-9.8, 11.09)
×
NEW
38
            ok = 'OK'
×
NEW
39
        self.assertEqual('OK', ok)
×
NEW
40
        plt.close(fig)
×
41

NEW
42
    def test_diversity_4(self):
×
NEW
43
        fig, ax = plt.subplots()
×
NEW
44
        ax.set_xscale('log')
×
NEW
45
        ok = 'FAIL'
×
NEW
46
        with warnings.catch_warnings():
×
NEW
47
            warnings.simplefilter('ignore')
×
NEW
48
            ax.set_xlim(-2.84, 21.05)
×
NEW
49
            ok = 'OK'
×
NEW
50
        self.assertEqual('OK', ok)
×
NEW
51
        plt.close(fig)
×
52

NEW
53
    def test_diversity_5(self):
×
NEW
54
        fig, ax = plt.subplots()
×
NEW
55
        ax.set_xscale('log')
×
NEW
56
        ok = 'FAIL'
×
NEW
57
        with warnings.catch_warnings():
×
NEW
58
            warnings.simplefilter('ignore')
×
NEW
59
            ax.set_xlim(-7.36, 31.1)
×
NEW
60
            ok = 'OK'
×
NEW
61
        self.assertEqual('OK', ok)
×
NEW
62
        plt.close(fig)
×
63

NEW
64
    def test_diversity_6(self):
×
NEW
65
        fig, ax = plt.subplots()
×
NEW
66
        ax.set_xscale('log')
×
NEW
67
        ok = 'FAIL'
×
NEW
68
        with warnings.catch_warnings():
×
NEW
69
            warnings.simplefilter('ignore')
×
NEW
70
            ax.set_xlim(-5.24, 91.86)
×
NEW
71
            ok = 'OK'
×
NEW
72
        self.assertEqual('OK', ok)
×
NEW
73
        plt.close(fig)
×
74

NEW
75
    def test_diversity_7(self):
×
NEW
76
        fig, ax = plt.subplots()
×
NEW
77
        ax.set_xscale('log')
×
NEW
78
        ok = 'FAIL'
×
NEW
79
        with warnings.catch_warnings():
×
NEW
80
            warnings.simplefilter('ignore')
×
NEW
81
            ax.set_xlim(-9.25, 25.27)
×
NEW
82
            ok = 'OK'
×
NEW
83
        self.assertEqual('OK', ok)
×
NEW
84
        plt.close(fig)
×
85

NEW
86
    def test_diversity_8(self):
×
NEW
87
        fig, ax = plt.subplots()
×
NEW
88
        ax.set_xscale('log')
×
NEW
89
        ok = 'FAIL'
×
NEW
90
        with warnings.catch_warnings():
×
NEW
91
            warnings.simplefilter('ignore')
×
NEW
92
            ax.set_xlim(-5.59, 13.6)
×
NEW
93
            ok = 'OK'
×
NEW
94
        self.assertEqual('OK', ok)
×
NEW
95
        plt.close(fig)
×
96

NEW
97
    def test_diversity_9(self):
×
NEW
98
        fig, ax = plt.subplots()
×
NEW
99
        ax.set_xscale('log')
×
NEW
100
        ok = 'FAIL'
×
NEW
101
        with warnings.catch_warnings():
×
NEW
102
            warnings.simplefilter('ignore')
×
NEW
103
            ax.set_xlim(-6.94, 35.77)
×
NEW
104
            ok = 'OK'
×
NEW
105
        self.assertEqual('OK', ok)
×
NEW
106
        plt.close(fig)
×
107

NEW
108
    def test_diversity_10(self):
×
NEW
109
        fig, ax = plt.subplots()
×
NEW
110
        ax.set_xscale('log')
×
NEW
111
        ok = 'FAIL'
×
NEW
112
        with warnings.catch_warnings():
×
NEW
113
            warnings.simplefilter('ignore')
×
NEW
114
            ax.set_xlim(-2.78, 43.79)
×
NEW
115
            ok = 'OK'
×
NEW
116
        self.assertEqual('OK', ok)
×
NEW
117
        plt.close(fig)
×
118

NEW
119
class TestsPassing(unittest.TestCase):
×
120

NEW
121
    def test_diversity_1(self):
×
NEW
122
        fig, ax = plt.subplots()
×
NEW
123
        ax.set_xscale('log')
×
NEW
124
        ok = 'FAIL'
×
NEW
125
        with warnings.catch_warnings():
×
NEW
126
            warnings.simplefilter('ignore')
×
NEW
127
            ax.set_xlim(4.76, 42.27)
×
NEW
128
            ok = 'OK'
×
NEW
129
        self.assertEqual('OK', ok)
×
NEW
130
        plt.close(fig)
×
131

NEW
132
    def test_diversity_2(self):
×
NEW
133
        fig, ax = plt.subplots()
×
NEW
134
        ax.set_xscale('log')
×
NEW
135
        ok = 'FAIL'
×
NEW
136
        with warnings.catch_warnings():
×
NEW
137
            warnings.simplefilter('ignore')
×
NEW
138
            ax.set_xlim(0.42, 45.15)
×
NEW
139
            ok = 'OK'
×
NEW
140
        self.assertEqual('OK', ok)
×
NEW
141
        plt.close(fig)
×
142

NEW
143
    def test_diversity_3(self):
×
NEW
144
        fig, ax = plt.subplots()
×
NEW
145
        ax.set_xscale('log')
×
NEW
146
        ok = 'FAIL'
×
NEW
147
        with warnings.catch_warnings():
×
NEW
148
            warnings.simplefilter('ignore')
×
NEW
149
            ax.set_xlim(0.67, 49.32)
×
NEW
150
            ok = 'OK'
×
NEW
151
        self.assertEqual('OK', ok)
×
NEW
152
        plt.close(fig)
×
153

NEW
154
    def test_diversity_4(self):
×
NEW
155
        fig, ax = plt.subplots()
×
NEW
156
        ax.set_xscale('log')
×
NEW
157
        ok = 'FAIL'
×
NEW
158
        with warnings.catch_warnings():
×
NEW
159
            warnings.simplefilter('ignore')
×
NEW
160
            ax.set_xlim(4.41, 45.49)
×
NEW
161
            ok = 'OK'
×
NEW
162
        self.assertEqual('OK', ok)
×
NEW
163
        plt.close(fig)
×
164

NEW
165
    def test_diversity_5(self):
×
NEW
166
        fig, ax = plt.subplots()
×
NEW
167
        ax.set_xscale('log')
×
NEW
168
        ok = 'FAIL'
×
NEW
169
        with warnings.catch_warnings():
×
NEW
170
            warnings.simplefilter('ignore')
×
NEW
171
            ax.set_xlim(0.81, 29.49)
×
NEW
172
            ok = 'OK'
×
NEW
173
        self.assertEqual('OK', ok)
×
NEW
174
        plt.close(fig)
×
175

NEW
176
    def test_diversity_6(self):
×
NEW
177
        fig, ax = plt.subplots()
×
NEW
178
        ax.set_xscale('log')
×
NEW
179
        ok = 'FAIL'
×
NEW
180
        with warnings.catch_warnings():
×
NEW
181
            warnings.simplefilter('ignore')
×
NEW
182
            ax.set_xlim(2.29, 36.93)
×
NEW
183
            ok = 'OK'
×
NEW
184
        self.assertEqual('OK', ok)
×
NEW
185
        plt.close(fig)
×
186

NEW
187
    def test_diversity_7(self):
×
NEW
188
        fig, ax = plt.subplots()
×
NEW
189
        ax.set_xscale('log')
×
NEW
190
        ok = 'FAIL'
×
NEW
191
        with warnings.catch_warnings():
×
NEW
192
            warnings.simplefilter('ignore')
×
NEW
193
            ax.set_xlim(4.76, 38.06)
×
NEW
194
            ok = 'OK'
×
NEW
195
        self.assertEqual('OK', ok)
×
NEW
196
        plt.close(fig)
×
197

NEW
198
    def test_diversity_8(self):
×
NEW
199
        fig, ax = plt.subplots()
×
NEW
200
        ax.set_xscale('log')
×
NEW
201
        ok = 'FAIL'
×
NEW
202
        with warnings.catch_warnings():
×
NEW
203
            warnings.simplefilter('ignore')
×
NEW
204
            ax.set_xlim(4.75, 6.96)
×
NEW
205
            ok = 'OK'
×
NEW
206
        self.assertEqual('OK', ok)
×
NEW
207
        plt.close(fig)
×
208

NEW
209
    def test_diversity_9(self):
×
NEW
210
        fig, ax = plt.subplots()
×
NEW
211
        ax.set_xscale('log')
×
NEW
212
        ok = 'FAIL'
×
NEW
213
        with warnings.catch_warnings():
×
NEW
214
            warnings.simplefilter('ignore')
×
NEW
215
            ax.set_xlim(0.79, 18.61)
×
NEW
216
            ok = 'OK'
×
NEW
217
        self.assertEqual('OK', ok)
×
NEW
218
        plt.close(fig)
×
219

NEW
220
    def test_diversity_10(self):
×
NEW
221
        fig, ax = plt.subplots()
×
NEW
222
        ax.set_xscale('log')
×
NEW
223
        ok = 'FAIL'
×
NEW
224
        with warnings.catch_warnings():
×
NEW
225
            warnings.simplefilter('ignore')
×
NEW
226
            ax.set_xlim(4.51, 20.88)
×
NEW
227
            ok = 'OK'
×
NEW
228
        self.assertEqual('OK', ok)
×
NEW
229
        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