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

Function test_3820

tests/test_toc.py:279–284  ·  view source on GitHub ↗

Ensure all extended TOC items point to pages.

()

Source from the content-addressed store, hash-verified

277
278
279def test_3820():
280 """Ensure all extended TOC items point to pages."""
281 doc = pymupdf.open(file_3820)
282 toc = doc.get_toc(simple=False)
283 for _, _, epage, dest in toc:
284 assert epage == dest["page"] + 1
285
286

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…