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

Function test_search1

tests/test_textsearch.py:21–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19
20
21def test_search1():
22 doc = pymupdf.open(filename1)
23 page = doc[0]
24 needle = "mupdf"
25 rlist = page.search_for(needle)
26 assert rlist != []
27 for rect in rlist:
28 assert needle in page.get_textbox(rect).lower()
29
30
31def test_search2():

Callers

nothing calls this directly

Calls 2

search_forMethod · 0.80
get_textboxMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…