Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_strip_control_codes
Function
test_strip_control_codes
tests/test_text.py:885–889 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
883
884
885
def
test_strip_control_codes():
886
text = Text(
"foo\rbar"
)
887
assert str(text) ==
"foobar"
888
text.append(
"\x08"
)
889
assert str(text) ==
"foobar"
890
891
892
def
test_get_style_at_offset():
Callers
nothing calls this directly
Calls
2
append
Method · 0.95
Text
Class · 0.90
Tested by
no test coverage detected