• 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_5/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
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='2', s=100, linewidths=5.2)
×
NEW
11
        self.assertEqual(5.2, float(pc.get_linewidths()[0]))
×
NEW
12
        plt.close(fig)
×
13

NEW
14
    def test_diversity_2(self):
×
NEW
15
        fig, ax = plt.subplots()
×
NEW
16
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='1', s=100, linewidths=5.6)
×
NEW
17
        self.assertEqual(5.6, float(pc.get_linewidths()[0]))
×
NEW
18
        plt.close(fig)
×
19

NEW
20
    def test_diversity_3(self):
×
NEW
21
        fig, ax = plt.subplots()
×
NEW
22
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='1', s=100, linewidths=6.2)
×
NEW
23
        self.assertEqual(6.2, float(pc.get_linewidths()[0]))
×
NEW
24
        plt.close(fig)
×
25

NEW
26
    def test_diversity_4(self):
×
NEW
27
        fig, ax = plt.subplots()
×
NEW
28
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='x', s=100, linewidths=4.6)
×
NEW
29
        self.assertEqual(4.6, float(pc.get_linewidths()[0]))
×
NEW
30
        plt.close(fig)
×
31

NEW
32
    def test_diversity_5(self):
×
NEW
33
        fig, ax = plt.subplots()
×
NEW
34
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='2', s=100, linewidths=4.0)
×
NEW
35
        self.assertEqual(4.0, float(pc.get_linewidths()[0]))
×
NEW
36
        plt.close(fig)
×
37

NEW
38
    def test_diversity_6(self):
×
NEW
39
        fig, ax = plt.subplots()
×
NEW
40
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='1', s=100, linewidths=7.7)
×
NEW
41
        self.assertEqual(7.7, float(pc.get_linewidths()[0]))
×
NEW
42
        plt.close(fig)
×
43

NEW
44
    def test_diversity_7(self):
×
NEW
45
        fig, ax = plt.subplots()
×
NEW
46
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='+', s=100, linewidths=6.3)
×
NEW
47
        self.assertEqual(6.3, float(pc.get_linewidths()[0]))
×
NEW
48
        plt.close(fig)
×
49

NEW
50
    def test_diversity_8(self):
×
NEW
51
        fig, ax = plt.subplots()
×
NEW
52
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='2', s=100, linewidths=5.8)
×
NEW
53
        self.assertEqual(5.8, float(pc.get_linewidths()[0]))
×
NEW
54
        plt.close(fig)
×
55

NEW
56
    def test_diversity_9(self):
×
NEW
57
        fig, ax = plt.subplots()
×
NEW
58
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='4', s=100, linewidths=6.4)
×
NEW
59
        self.assertEqual(6.4, float(pc.get_linewidths()[0]))
×
NEW
60
        plt.close(fig)
×
61

NEW
62
    def test_diversity_10(self):
×
NEW
63
        fig, ax = plt.subplots()
×
NEW
64
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='+', s=100, linewidths=2.2)
×
NEW
65
        self.assertEqual(2.2, float(pc.get_linewidths()[0]))
×
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
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='o', s=100, linewidths=5.2)
×
NEW
73
        self.assertEqual(5.2, float(pc.get_linewidths()[0]))
×
NEW
74
        plt.close(fig)
×
75

NEW
76
    def test_diversity_2(self):
×
NEW
77
        fig, ax = plt.subplots()
×
NEW
78
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='o', s=100, linewidths=3.5)
×
NEW
79
        self.assertEqual(3.5, float(pc.get_linewidths()[0]))
×
NEW
80
        plt.close(fig)
×
81

NEW
82
    def test_diversity_3(self):
×
NEW
83
        fig, ax = plt.subplots()
×
NEW
84
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='D', s=100, linewidths=2.5)
×
NEW
85
        self.assertEqual(2.5, float(pc.get_linewidths()[0]))
×
NEW
86
        plt.close(fig)
×
87

NEW
88
    def test_diversity_4(self):
×
NEW
89
        fig, ax = plt.subplots()
×
NEW
90
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='D', s=100, linewidths=5.3)
×
NEW
91
        self.assertEqual(5.3, float(pc.get_linewidths()[0]))
×
NEW
92
        plt.close(fig)
×
93

NEW
94
    def test_diversity_5(self):
×
NEW
95
        fig, ax = plt.subplots()
×
NEW
96
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='s', s=100, linewidths=8.7)
×
NEW
97
        self.assertEqual(8.7, float(pc.get_linewidths()[0]))
×
NEW
98
        plt.close(fig)
×
99

NEW
100
    def test_diversity_6(self):
×
NEW
101
        fig, ax = plt.subplots()
×
NEW
102
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='s', s=100, linewidths=3.6)
×
NEW
103
        self.assertEqual(3.6, float(pc.get_linewidths()[0]))
×
NEW
104
        plt.close(fig)
×
105

NEW
106
    def test_diversity_7(self):
×
NEW
107
        fig, ax = plt.subplots()
×
NEW
108
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='^', s=100, linewidths=6.5)
×
NEW
109
        self.assertEqual(6.5, float(pc.get_linewidths()[0]))
×
NEW
110
        plt.close(fig)
×
111

NEW
112
    def test_diversity_8(self):
×
NEW
113
        fig, ax = plt.subplots()
×
NEW
114
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='p', s=100, linewidths=5.2)
×
NEW
115
        self.assertEqual(5.2, float(pc.get_linewidths()[0]))
×
NEW
116
        plt.close(fig)
×
117

NEW
118
    def test_diversity_9(self):
×
NEW
119
        fig, ax = plt.subplots()
×
NEW
120
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='D', s=100, linewidths=7.0)
×
NEW
121
        self.assertEqual(7.0, float(pc.get_linewidths()[0]))
×
NEW
122
        plt.close(fig)
×
123

NEW
124
    def test_diversity_10(self):
×
NEW
125
        fig, ax = plt.subplots()
×
NEW
126
        pc = ax.scatter(range(5), [0] * 5, c='C0', marker='v', s=100, linewidths=2.2)
×
NEW
127
        self.assertEqual(2.2, float(pc.get_linewidths()[0]))
×
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