Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_wrap_overflow_long
Function
test_wrap_overflow_long
tests/test_text.py:547–551 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
545
546
547
def
test_wrap_overflow_long():
548
text = Text(
"bigword"
* 10)
549
lines = text.wrap(Console(), 4, overflow=
"ellipsis"
)
550
assert len(lines) == 1
551
assert lines[0] == Text(
"big…"
)
552
553
554
def
test_wrap_long_words():
Callers
nothing calls this directly
Calls
3
wrap
Method · 0.95
Text
Class · 0.90
Console
Class · 0.90
Tested by
no test coverage detected