MCPcopy Create free account
hub / github.com/ImageOptim/libimagequant / test_abort

Function test_abort

imagequant-sys/c_test/test.c:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30static void test_abort() {
31 liq_attr *attr = liq_attr_create();
32
33 unsigned char dummy[4] = {0};
34 liq_image *img = liq_image_create_rgba(attr, dummy, 1, 1, 0);
35
36 liq_attr_set_progress_callback(attr, test_abort_callback, magic);
37
38 liq_result *res = liq_quantize_image(attr, img);
39 assert(!res);
40
41 liq_attr_destroy(attr);
42}
43
44static void test_zero_histogram() {
45 liq_attr *attr = liq_attr_create();

Callers 1

run_liq_testsFunction · 0.85

Calls 5

liq_attr_createFunction · 0.85
liq_image_create_rgbaFunction · 0.85
liq_quantize_imageFunction · 0.85
liq_attr_destroyFunction · 0.85

Tested by

no test coverage detected