()
| 86 | |
| 87 | |
| 88 | def test_polyline(): |
| 89 | doc = pymupdf.open() |
| 90 | page = doc.new_page() |
| 91 | rect = page.rect + (100, 36, -100, -36) |
| 92 | cell = pymupdf.make_table(rect, rows=10) |
| 93 | for i in range(10): |
| 94 | annot = page.add_polyline_annot((cell[i][0].bl, cell[i][0].br)) |
| 95 | annot.set_line_ends(i, i) |
| 96 | annot.update() |
| 97 | for i, annot in enumerate(page.annots()): |
| 98 | assert annot.line_ends == (i, i) |
| 99 | assert annot.type == (7, "PolyLine") |
| 100 | |
| 101 | |
| 102 | def test_polygon(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…