• 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_17/unittests.py
NEW
1
import unittest
×
NEW
2
import matplotlib
×
NEW
3
matplotlib.use('Agg')
×
NEW
4
import numpy as np
×
NEW
5
import matplotlib.transforms as mtransforms
×
NEW
6
_DT = {'int8': np.int8, 'int16': np.int16, 'int32': np.int32, 'int64': np.int64, 'float64': np.float64}
×
NEW
7
def run_nonsingular(dtype, vmin, vmax):
×
NEW
8
    cast = int if 'int' in dtype else float
×
NEW
9
    out = mtransforms.nonsingular(_DT[dtype](cast(vmin)), _DT[dtype](cast(vmax)))
×
NEW
10
    return [round(float(v), 9) for v in out]
×
11

12

NEW
13
class TestsFailing(unittest.TestCase):
×
14

NEW
15
    def test_diversity_1(self):
×
NEW
16
        self.assertEqual([-128.128, -127.872], run_nonsingular('int8', -128, -128))
×
17

NEW
18
    def test_diversity_2(self):
×
NEW
19
        self.assertEqual([-128.0, 0.0], run_nonsingular('int8', -128, 0))
×
20

NEW
21
    def test_diversity_3(self):
×
NEW
22
        self.assertEqual([-128.0, 1.0], run_nonsingular('int8', -128, 1))
×
23

NEW
24
    def test_diversity_4(self):
×
NEW
25
        self.assertEqual([-32800.768, -32735.232], run_nonsingular('int16', -32768, -32768))
×
26

NEW
27
    def test_diversity_5(self):
×
NEW
28
        self.assertEqual([-32768.0, 0.0], run_nonsingular('int16', -32768, 0))
×
29

NEW
30
    def test_diversity_6(self):
×
NEW
31
        self.assertEqual([-32768.0, 2.0], run_nonsingular('int16', -32768, 2))
×
32

NEW
33
    def test_diversity_7(self):
×
NEW
34
        self.assertEqual([-2149631131.648, -2145336164.352], run_nonsingular('int32', -2147483648, -2147483648))
×
35

NEW
36
    def test_diversity_8(self):
×
NEW
37
        self.assertEqual([-2147483648.0, 0.0], run_nonsingular('int32', -2147483648, 0))
×
38

NEW
39
    def test_diversity_9(self):
×
NEW
40
        self.assertEqual([-9.23259540889163e+18, -9.214148664817921e+18], run_nonsingular('int64', -9223372036854775808, -9223372036854775808))
×
41

NEW
42
    def test_diversity_10(self):
×
NEW
43
        self.assertEqual([-9.223372036854776e+18, 0.0], run_nonsingular('int64', -9223372036854775808, 0))
×
44

NEW
45
class TestsPassing(unittest.TestCase):
×
46

NEW
47
    def test_diversity_1(self):
×
NEW
48
        self.assertEqual([1.0, 5.0], run_nonsingular('float64', 1.0, 5.0))
×
49

NEW
50
    def test_diversity_2(self):
×
NEW
51
        self.assertEqual([-10.0, 10.0], run_nonsingular('float64', -10.0, 10.0))
×
52

NEW
53
    def test_diversity_3(self):
×
NEW
54
        self.assertEqual([0.5, 3.5], run_nonsingular('float64', 0.5, 3.5))
×
55

NEW
56
    def test_diversity_4(self):
×
NEW
57
        self.assertEqual([-2.5, 7.5], run_nonsingular('float64', -2.5, 7.5))
×
58

NEW
59
    def test_diversity_5(self):
×
NEW
60
        self.assertEqual([2.0, 8.0], run_nonsingular('float64', 2.0, 8.0))
×
61

NEW
62
    def test_diversity_6(self):
×
NEW
63
        self.assertEqual([-100.0, -50.0], run_nonsingular('float64', -100.0, -50.0))
×
64

NEW
65
    def test_diversity_7(self):
×
NEW
66
        self.assertEqual([3.14, 9.42], run_nonsingular('float64', 3.14, 9.42))
×
67

NEW
68
    def test_diversity_8(self):
×
NEW
69
        self.assertEqual([-1.0, 1.0], run_nonsingular('float64', -1.0, 1.0))
×
70

NEW
71
    def test_diversity_9(self):
×
NEW
72
        self.assertEqual([10.5, 20.5], run_nonsingular('float64', 10.5, 20.5))
×
73

NEW
74
    def test_diversity_10(self):
×
NEW
75
        self.assertEqual([-7.0, -3.0], run_nonsingular('float64', -7.0, -3.0))
×
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