MCPcopy
hub / github.com/Textualize/rich / test_truncate_ellipsis_pad

Function test_truncate_ellipsis_pad

tests/test_text.py:924–927  ·  view source on GitHub ↗
(input, count, expected)

Source from the content-addressed store, hash-verified

922 ],
923)
924def test_truncate_ellipsis_pad(input, count, expected):
925 text = Text(input)
926 text.truncate(count, overflow="ellipsis", pad=True)
927 assert text.plain == expected
928
929
930def test_pad():

Callers

nothing calls this directly

Calls 2

truncateMethod · 0.95
TextClass · 0.90

Tested by

no test coverage detected