MCPcopy
hub / github.com/Textualize/rich / test_highlight_json_empty_string_only

Function test_highlight_json_empty_string_only

tests/test_highlighter.py:195–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

193
194
195def test_highlight_json_empty_string_only():
196 json_string = '""'
197 text = Text(json_string)
198 highlighter = JSONHighlighter()
199 highlighter.highlight(text)
200 assert text.spans == [Span(0, 2, "json.str")]
201
202
203def test_highlight_json_no_indent():

Callers

nothing calls this directly

Calls 4

highlightMethod · 0.95
TextClass · 0.90
JSONHighlighterClass · 0.90
SpanClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…