(ignored_code)
| 121 | |
| 122 | @pytest.mark.parametrize('ignored_code', [Path.CLOSEPOLY, Path.STOP]) |
| 123 | def test_extents_with_ignored_codes(ignored_code): |
| 124 | # Check that STOP and CLOSEPOLY points are ignored when calculating extents |
| 125 | # of a path with only straight lines |
| 126 | path = Path([[0, 0], |
| 127 | [1, 1], |
| 128 | [2, 2]], [Path.MOVETO, Path.MOVETO, ignored_code]) |
| 129 | assert np.all(path.get_extents().extents == (0., 0., 1., 1.)) |
| 130 | |
| 131 | |
| 132 | def test_point_in_path_nan(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…