MCPcopy
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
156def 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
162def test_highlight_regex():

Callers

nothing calls this directly

Calls 3

stylizeMethod · 0.95
TextClass · 0.90
SpanClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…