MCPcopy Create free account
hub / github.com/mkdocs/mkdocs / test_charref

Method test_charref

mkdocs/tests/structure/toc_tests.py:174–179  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

172 self.assertEqual(len(toc), 1)
173
174 def test_charref(self):
175 md = '# @Header'
176 expected = '@Header - #header'
177 toc = get_toc(get_markdown_toc(md))
178 self.assertEqual(str(toc).strip(), expected)
179 self.assertEqual(len(toc), 1)
180
181 def test_level(self):
182 md = dedent(

Callers

nothing calls this directly

Calls 2

get_tocFunction · 0.90
get_markdown_tocFunction · 0.90

Tested by

no test coverage detected