Branch Coverage

trim.im
Criterion Covered Total %
branch 83 186 44.6


line true false branch
7 2822 346 if (test->c1.channel[0] > testme[0] || test->c2.channel[0] < testme[0])
324 2498 if (test->c1.channel[0] > testme[0] || test->c2.channel[0] < testme[0])
9 2386 112 if (test->c1.channel[1] > testme[1] || test->c2.channel[1] < testme[1])
92 2294 if (test->c1.channel[1] > testme[1] || test->c2.channel[1] < testme[1])
11 2294 0 if (test->c1.channel[2] > testme[2] || test->c2.channel[2] < testme[2])
8 2286 if (test->c1.channel[2] > testme[2] || test->c2.channel[2] < testme[2])
18 0 0 if (test->cf1.channel[0] > testme[0] || test->cf2.channel[0] < testme[0])
0 0 if (test->cf1.channel[0] > testme[0] || test->cf2.channel[0] < testme[0])
20 0 0 if (test->cf1.channel[1] > testme[1] || test->cf2.channel[1] < testme[1])
0 0 if (test->cf1.channel[1] > testme[1] || test->cf2.channel[1] < testme[1])
22 0 0 if (test->cf1.channel[2] > testme[2] || test->cf2.channel[2] < testme[2])
0 0 if (test->cf1.channel[2] > testme[2] || test->cf2.channel[2] < testme[2])
30 3168 54 for (i = 0; i < count; ++i) {
31 2286 882 if (match_one_color(testme, tests+i))
40 0 0 for (i = 0; i < count; ++i) {
41 0 0 if (match_one_fcolor(testme, tests+i))
59 0 12 const int color_chans = i_img_color_channels(im);
61 5 7 const int has_alpha = i_img_has_alpha(im);
5 0 const int has_alpha = i_img_has_alpha(im);
62 5 7 const int check_alpha = has_alpha && transp_threshold < 1.0;
65 12 0 #code im->bits <= 8
74 32 0 for (y = 0; y < im->ysize; ++y) {
0 0 for (y = 0; y < im->ysize; ++y) {
77 452 20 for (x = 0, s = samps; x < im->xsize; ++x, s += chan_count) {
0 0 for (x = 0, s = samps; x < im->xsize; ++x, s += chan_count) {
78 410 42 if (!TEST_COLOR(s))
11 399 if (!TEST_COLOR(s))
46 7 if (!TEST_COLOR(s))
41 5 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
81 12 20 if (x < im->xsize)
0 0 if (x < im->xsize)
85 12 0 if (y < im->ysize) {
0 0 if (y < im->ysize) {
87 52 0 for (y = im->ysize-1; y >= 0; --y) {
0 0 for (y = im->ysize-1; y >= 0; --y) {
90 852 40 for (x = 0, s = samps; x < im->xsize; ++x, s += chan_count) {
0 0 for (x = 0, s = samps; x < im->xsize; ++x, s += chan_count) {
91 770 82 if (!TEST_COLOR(s))
11 759 if (!TEST_COLOR(s))
86 7 if (!TEST_COLOR(s))
81 5 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
94 12 40 if (x < im->xsize)
0 0 if (x < im->xsize)
101 180 12 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
180 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
0 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
0 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
0 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
0 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
104 512 164 for (x = 0, s = samps; x < *left; ++x, s += chan_count) {
0 0 for (x = 0, s = samps; x < *left; ++x, s += chan_count) {
105 497 15 if (!TEST_COLOR(s)) {
15 482 if (!TEST_COLOR(s)) {
21 9 if (!TEST_COLOR(s)) {
7 14 if (!TEST_COLOR(s)) {
0 0 if (!TEST_COLOR(s)) {
0 0 if (!TEST_COLOR(s)) {
0 0 if (!TEST_COLOR(s)) {
0 0 if (!TEST_COLOR(s)) {
110 706 162 for (x = im->xsize - 1, s = samps + chan_count * im->xsize;
0 0 for (x = im->xsize - 1, s = samps + chan_count * im->xsize;
112 663 43 if (!TEST_COLOR(s-chan_count)) {
17 646 if (!TEST_COLOR(s-chan_count)) {
49 11 if (!TEST_COLOR(s-chan_count)) {
7 42 if (!TEST_COLOR(s-chan_count)) {
0 0 if (!TEST_COLOR(s-chan_count)) {
0 0 if (!TEST_COLOR(s-chan_count)) {
0 0 if (!TEST_COLOR(s-chan_count)) {
0 0 if (!TEST_COLOR(s-chan_count)) {
140 11 1 if (color_count) {
146 11 0 if (im->bits <= 8) {
148 30 11 for (i = 0, colorp = colors; i < color_count; ++i, ++colorp) {
149 0 30 if (colorp->is_float) {
150 0 0 for (ch = 0; ch < 3; ++ch) {
158 90 30 for (ch = 0; ch < 3; ++ch) {
159 0 90 if (tcolorp->c1.channel[ch] > tcolorp->c2.channel[ch])
162 30 0 if (ch == 3) {
172 0 0 for (i = 0, colorp = colors; i < color_count; ++i, ++colorp) {
173 0 0 if (!colorp->is_float) {
174 0 0 for (ch = 0; ch < 3; ++ch) {
182 0 0 for (ch = 0; ch < 3; ++ch) {
183 0 0 if (tcolorp->cf1.channel[ch] > tcolorp->cf2.channel[ch])
186 0 0 if (ch == 3) {
198 0 12 if (transp_threshold > 1.0 && tcolor_count == 0) {
0 0 if (transp_threshold > 1.0 && tcolor_count == 0) {