MCPcopy
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
63def 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
71def test_getitem():

Callers

nothing calls this directly

Calls 2

SpanClass · 0.90
styledMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…