Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
)
924
def
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
930
def
test_pad():
Callers
nothing calls this directly
Calls
2
truncate
Method · 0.95
Text
Class · 0.90
Tested by
no test coverage detected