MCPcopy Index your code
hub / github.com/ImageOptim/libimagequant / test_zero_histogram

Function test_zero_histogram

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

Source from the content-addressed store, hash-verified

42}
43
44static void test_zero_histogram() {
45 liq_attr *attr = liq_attr_create();
46 liq_histogram *hist = liq_histogram_create(attr);
47 assert(hist);
48
49 liq_result *res;
50 liq_error err = liq_histogram_quantize(hist, attr, &res);
51 assert(!res);
52 assert(err);
53
54 liq_attr_destroy(attr);
55 liq_histogram_destroy(hist);
56}
57
58static void test_histogram() {
59 liq_attr *attr = liq_attr_create();

Callers 1

run_liq_testsFunction · 0.85

Calls 5

liq_attr_createFunction · 0.85
liq_histogram_createFunction · 0.85
liq_histogram_quantizeFunction · 0.85
liq_attr_destroyFunction · 0.85
liq_histogram_destroyFunction · 0.85

Tested by

no test coverage detected