Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_render_overlap
Function
test_render_overlap
tests/test_markup.py:122–128 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
120
121
122
def
test_render_overlap():
123
result = render(
"[green]X[bold]Y[/green]Z[/bold]"
)
124
assert str(result) ==
"XYZ"
125
assert result.spans == [
126
Span(0, 2,
"green"
),
127
Span(1, 3,
"bold"
),
128
]
129
130
131
def
test_adjoint():
Callers
nothing calls this directly
Calls
2
render
Function · 0.90
Span
Class · 0.90
Tested by
no test coverage detected