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

Function test_truncate_ellipsis

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

Source from the content-addressed store, hash-verified

908 ],
909)
910def test_truncate_ellipsis(input, count, expected):
911 text = Text(input)
912 text.truncate(count, overflow="ellipsis")
913 assert text.plain == expected
914
915
916@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

truncateMethod · 0.95
TextClass · 0.90

Tested by

no test coverage detected