MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / test_svg_escape

Function test_svg_escape

lib/matplotlib/tests/test_backend_svg.py:577–583  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

575
576
577def test_svg_escape():
578 fig = plt.figure()
579 fig.text(0.5, 0.5, "<\'\"&>", gid="<\&#x27;\"&>")
580 with BytesIO() as fd:
581 fig.savefig(fd, format='svg')
582 buf = fd.getvalue().decode()
583 assert '&lt;&apos;&quot;&amp;&gt;"' in buf
584
585
586@pytest.mark.parametrize("font_str", [

Callers

nothing calls this directly

Calls 3

figureMethod · 0.80
textMethod · 0.45
savefigMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…