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

Function test_polygon

tests/test_annots.py:102–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

100
101
102def test_polygon():
103 doc = pymupdf.open()
104 page = doc.new_page()
105 annot = page.add_polygon_annot([rect.bl, rect.tr, rect.br, rect.tl])
106 assert annot.type == (6, "Polygon")
107
108
109def test_line():

Callers

nothing calls this directly

Calls 2

new_pageMethod · 0.80
add_polygon_annotMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…