• 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_18/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
        plt.figure(figsize=(6.18, 6.42))
×
NEW
10
        plt.polar()
×
NEW
11
        ax = plt.gca()
×
NEW
12
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
13
        plt.close('all')
×
14

NEW
15
    def test_diversity_2(self):
×
NEW
16
        plt.figure(figsize=(5.25, 6.43))
×
NEW
17
        plt.polar()
×
NEW
18
        ax = plt.gca()
×
NEW
19
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
20
        plt.close('all')
×
21

NEW
22
    def test_diversity_3(self):
×
NEW
23
        fig = plt.figure(figsize=(7.06, 5.91))
×
NEW
24
        ax = fig.add_subplot(projection='polar')
×
NEW
25
        ax.relim()
×
NEW
26
        ax.autoscale_view()
×
NEW
27
        fig.canvas.draw()
×
NEW
28
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
29
        plt.close('all')
×
30

NEW
31
    def test_diversity_4(self):
×
NEW
32
        plt.figure(figsize=(4.06, 7.46))
×
NEW
33
        plt.polar()
×
NEW
34
        ax = plt.gca()
×
NEW
35
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
36
        plt.close('all')
×
37

NEW
38
    def test_diversity_5(self):
×
NEW
39
        fig = plt.figure(figsize=(4.63, 5.06))
×
NEW
40
        ax = fig.add_subplot(projection='polar')
×
NEW
41
        ax.autoscale()
×
NEW
42
        fig.canvas.draw()
×
NEW
43
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
44
        plt.close('all')
×
45

NEW
46
    def test_diversity_6(self):
×
NEW
47
        fig = plt.figure(figsize=(7.83, 5.58))
×
NEW
48
        ax = fig.add_subplot(projection='polar')
×
NEW
49
        ax.relim()
×
NEW
50
        ax.autoscale_view()
×
NEW
51
        fig.canvas.draw()
×
NEW
52
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
53
        plt.close('all')
×
54

NEW
55
    def test_diversity_7(self):
×
NEW
56
        fig = plt.figure(figsize=(3.49, 3.34))
×
NEW
57
        ax = fig.add_subplot(projection='polar')
×
NEW
58
        ax.relim()
×
NEW
59
        ax.autoscale_view()
×
NEW
60
        fig.canvas.draw()
×
NEW
61
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
62
        plt.close('all')
×
63

NEW
64
    def test_diversity_8(self):
×
NEW
65
        fig = plt.figure(figsize=(4.19, 6.31))
×
NEW
66
        ax = fig.add_subplot(projection='polar')
×
NEW
67
        ax.relim()
×
NEW
68
        ax.autoscale_view()
×
NEW
69
        fig.canvas.draw()
×
NEW
70
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
71
        plt.close('all')
×
72

NEW
73
    def test_diversity_9(self):
×
NEW
74
        fig = plt.figure(figsize=(6.79, 7.42))
×
NEW
75
        ax = fig.add_subplot(projection='polar')
×
NEW
76
        ax.autoscale()
×
NEW
77
        fig.canvas.draw()
×
NEW
78
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
79
        plt.close('all')
×
80

NEW
81
    def test_diversity_10(self):
×
NEW
82
        plt.figure(figsize=(3.48, 4.44))
×
NEW
83
        plt.polar()
×
NEW
84
        ax = plt.gca()
×
NEW
85
        self.assertEqual([0.0, 1.05], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
86
        plt.close('all')
×
87

NEW
88
class TestsPassing(unittest.TestCase):
×
89

NEW
90
    def test_diversity_1(self):
×
NEW
91
        fig = plt.figure(figsize=(4.9, 5.51))
×
NEW
92
        ax = fig.add_subplot(projection='polar')
×
NEW
93
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
94
        plt.close('all')
×
95

NEW
96
    def test_diversity_2(self):
×
NEW
97
        fig = plt.figure(figsize=(5.22, 7.3))
×
NEW
98
        ax = fig.add_subplot(projection='polar')
×
NEW
99
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
100
        plt.close('all')
×
101

NEW
102
    def test_diversity_3(self):
×
NEW
103
        fig = plt.figure(figsize=(7.27, 4.22))
×
NEW
104
        ax = fig.add_subplot(projection='polar')
×
NEW
105
        fig.canvas.draw()
×
NEW
106
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
107
        plt.close('all')
×
108

NEW
109
    def test_diversity_4(self):
×
NEW
110
        fig = plt.figure(figsize=(4.9, 4.31))
×
NEW
111
        ax = fig.add_subplot(projection='polar')
×
NEW
112
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
113
        plt.close('all')
×
114

NEW
115
    def test_diversity_5(self):
×
NEW
116
        fig = plt.figure(figsize=(4.3, 7.63))
×
NEW
117
        ax = fig.add_subplot(projection='polar')
×
NEW
118
        fig.canvas.draw()
×
NEW
119
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
120
        plt.close('all')
×
121

NEW
122
    def test_diversity_6(self):
×
NEW
123
        fig = plt.figure(figsize=(6.6, 6.51))
×
NEW
124
        ax = fig.add_subplot(projection='polar')
×
NEW
125
        fig.canvas.draw()
×
NEW
126
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
127
        plt.close('all')
×
128

NEW
129
    def test_diversity_7(self):
×
NEW
130
        fig = plt.figure(figsize=(3.42, 5.75))
×
NEW
131
        ax = fig.add_subplot(projection='polar')
×
NEW
132
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
133
        plt.close('all')
×
134

NEW
135
    def test_diversity_8(self):
×
NEW
136
        fig = plt.figure(figsize=(5.65, 5.38))
×
NEW
137
        ax = fig.add_subplot(projection='polar')
×
NEW
138
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
139
        plt.close('all')
×
140

NEW
141
    def test_diversity_9(self):
×
NEW
142
        fig = plt.figure(figsize=(5.72, 5.26))
×
NEW
143
        ax = fig.add_subplot(projection='polar')
×
NEW
144
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
145
        plt.close('all')
×
146

NEW
147
    def test_diversity_10(self):
×
NEW
148
        fig = plt.figure(figsize=(7.5, 4.22))
×
NEW
149
        ax = fig.add_subplot(projection='polar')
×
NEW
150
        self.assertEqual([0.0, 1.0], [round(float(ax.get_rmin()), 4), round(float(ax.get_rmax()), 4)])
×
NEW
151
        plt.close('all')
×
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