Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/Textualize/rich
/ test_adjoint
Function
test_adjoint
tests/test_markup.py:131–134 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
129
130
131
def
test_adjoint():
132
result = render(
"[red][blue]B[/blue]R[/red]"
)
133
print(repr(result))
134
assert result.spans == [Span(0, 2,
"red"
), Span(0, 1,
"blue"
)]
135
136
137
def
test_render_close():
Callers
nothing calls this directly
Calls
3
render
Function · 0.90
Span
Class · 0.90
print
Function · 0.50
Tested by
no test coverage detected