MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_empty_closed_path

Function test_empty_closed_path

lib/matplotlib/tests/test_path.py:18–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_empty_closed_path():
19 path = Path(np.zeros((0, 2)), closed=True)
20 assert path.vertices.shape == (0, 2)
21 assert path.codes is None
22 assert_array_equal(path.get_extents().extents,
23 transforms.Bbox.null().extents)
24
25
26def test_readonly_path():

Callers

nothing calls this directly

Calls 3

get_extentsMethod · 0.95
PathClass · 0.90
nullMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…