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

Function test_color_count

tests/test_pixmap.py:102–108  ·  view source on GitHub ↗

This is known to fail if MuPDF is built without PyMuPDF's custom config.h, e.g. in Linux system installs.

()

Source from the content-addressed store, hash-verified

100 assert t == alphas
101
102def test_color_count():
103 '''
104 This is known to fail if MuPDF is built without PyMuPDF's custom config.h,
105 e.g. in Linux system installs.
106 '''
107 pm = pymupdf.Pixmap(imgfile)
108 assert pm.color_count() == 40624
109
110def test_memoryview():
111 pm = pymupdf.Pixmap(imgfile)

Callers

nothing calls this directly

Calls 1

color_countMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…