Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/textual
/ test_styled
Function
test_styled
tests/test_content.py:63–68 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
61
62
63
def
test_styled():
64
text = Content.styled(
"Hello"
,
"red"
)
65
assert text.plain ==
"Hello"
66
assert len(text) == 5
67
assert text.cell_length == 5
68
assert text._spans == [Span(0, 5,
"red"
)]
69
70
71
def
test_getitem():
Callers
nothing calls this directly
Calls
2
Span
Class · 0.90
styled
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…