Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
)
910
def
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
truncate
Method · 0.95
Text
Class · 0.90
Tested by
no test coverage detected