| 28 | } |
| 29 | |
| 30 | static 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 | |
| 44 | static void test_zero_histogram() { |
| 45 | liq_attr *attr = liq_attr_create(); |
no test coverage detected