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

Function test_parse_link

tests/test_markup.py:85–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

83
84
85def test_parse_link():
86 result = list(_parse("[link=foo]bar[/link]"))
87 expected = [
88 (0, None, Tag(name="link", parameters="foo")),
89 (13, "bar", None),
90 (13, None, Tag(name="/link", parameters=None)),
91 ]
92 assert result == expected
93
94
95def test_render():

Callers

nothing calls this directly

Calls 2

_parseFunction · 0.90
TagClass · 0.90

Tested by

no test coverage detected