MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / test_simple_toc

Function test_simple_toc

tests/test_toc.py:23–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21
22
23def test_simple_toc():
24 simple_lines = open(simple_toc, "rb").read()
25 toc = b"".join([str(t).encode() for t in doc.get_toc(True)])
26 assert toc == simple_lines
27
28
29def test_full_toc():

Callers

nothing calls this directly

Calls 1

get_tocMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…