()
| 614 | |
| 615 | |
| 616 | def test_interpolated_moveto(): |
| 617 | # Initial path has two subpaths with two LINETOs each |
| 618 | vertices = np.array([[0, 0], |
| 619 | [0, 1], |
| 620 | [1, 2], |
| 621 | [4, 4], |
| 622 | [4, 5], |
| 623 | [5, 5]]) |
| 624 | codes = [Path.MOVETO, Path.LINETO, Path.LINETO] * 2 |
| 625 | |
| 626 | path = Path(vertices, codes) |
| 627 | result = path.interpolated(3) |
| 628 | |
| 629 | # Result should have two subpaths with six LINETOs each |
| 630 | expected_subpath_codes = [Path.MOVETO] + [Path.LINETO] * 6 |
| 631 | np.testing.assert_array_equal(result.codes, expected_subpath_codes * 2) |
| 632 | |
| 633 | |
| 634 | def test_interpolated_closepoly(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…