()
| 185 | |
| 186 | |
| 187 | def test_highlight_json_string_only(): |
| 188 | json_string = '"abc"' |
| 189 | text = Text(json_string) |
| 190 | highlighter = JSONHighlighter() |
| 191 | highlighter.highlight(text) |
| 192 | assert text.spans == [Span(0, 5, "json.str")] |
| 193 | |
| 194 | |
| 195 | def test_highlight_json_empty_string_only(): |
nothing calls this directly
no test coverage detected