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

Function test_get_packed_offsets

lib/matplotlib/tests/test_offsetbox.py:131–137  ·  view source on GitHub ↗
(widths, total, sep, mode)

Source from the content-addressed store, hash-verified

129@pytest.mark.parametrize('sep', (250, 1, 0, -1))
130@pytest.mark.parametrize('mode', ("expand", "fixed", "equal"))
131def test_get_packed_offsets(widths, total, sep, mode):
132 # Check a (rather arbitrary) set of parameters due to successive similar
133 # issue tickets (at least #10476 and #10784) related to corner cases
134 # triggered inside this function when calling higher-level functions
135 # (e.g. `Axes.legend`).
136 # These are just some additional smoke tests. The output is untested.
137 _get_packed_offsets(widths, total, sep, mode=mode)
138
139
140_Params = namedtuple('_Params', 'wd_list, total, sep, expected')

Callers

nothing calls this directly

Calls 1

_get_packed_offsetsFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…