Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_stylize_negative_index
Function
test_stylize_negative_index
tests/test_text.py:156–159 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
154
155
156
def
test_stylize_negative_index():
157
text = Text(
"Hello, World!"
)
158
text.stylize(
"bold"
, -6, -1)
159
assert text._spans == [Span(7, 12,
"bold"
)]
160
161
162
def
test_highlight_regex():
Callers
nothing calls this directly
Calls
3
stylize
Method · 0.95
Text
Class · 0.90
Span
Class · 0.90
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…