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

Function test_circular

tests/test_toc.py:75–83  ·  view source on GitHub ↗

The test file contains circular bookmarks.

()

Source from the content-addressed store, hash-verified

73
74
75def test_circular():
76 """The test file contains circular bookmarks."""
77 doc = pymupdf.open(circular)
78 toc = doc.get_toc(False) # this must not loop
79 if pymupdf.mupdf_version_tuple < (1, 27):
80 # Expect warning.
81 wt = pymupdf.TOOLS.mupdf_warnings()
82 assert wt == 'Bad or missing prev pointer in outline tree, repairing', \
83 f'{wt=}'
84
85def test_2355():
86

Callers

nothing calls this directly

Calls 2

get_tocMethod · 0.80
mupdf_warningsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…