Branch Coverage

trim.im
Criterion Covered Total %
branch 118 186 63.4


line true false branch
7 163616 346 if (test->c1.channel[0] > testme[0] || test->c2.channel[0] < testme[0])
324 163292 if (test->c1.channel[0] > testme[0] || test->c2.channel[0] < testme[0])
9 163180 112 if (test->c1.channel[1] > testme[1] || test->c2.channel[1] < testme[1])
92 163088 if (test->c1.channel[1] > testme[1] || test->c2.channel[1] < testme[1])
11 163088 0 if (test->c1.channel[2] > testme[2] || test->c2.channel[2] < testme[2])
8 163080 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 163962 54 for (i = 0; i < count; ++i) {
31 163080 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 15 const int color_chans = i_img_color_channels(im);
61 8 7 const int has_alpha = i_img_has_alpha(im);
8 0 const int has_alpha = i_img_has_alpha(im);
62 8 7 const int check_alpha = has_alpha && transp_threshold < 1.0;
65 13 2 #code im->bits <= 8
74 157 0 for (y = 0; y < im->ysize; ++y) {
36 0 for (y = 0; y < im->ysize; ++y) {
77 29495 144 for (x = 0, s = samps; x < im->xsize; ++x, s += chan_count) {
9155 34 for (x = 0, s = samps; x < im->xsize; ++x, s += chan_count) {
78 20340 9155 if (!TEST_COLOR(s))
11 20329 if (!TEST_COLOR(s))
9159 7 if (!TEST_COLOR(s))
9153 6 if (!TEST_COLOR(s))
0 9155 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
9155 0 if (!TEST_COLOR(s))
9153 2 if (!TEST_COLOR(s))
81 13 144 if (x < im->xsize)
2 34 if (x < im->xsize)
85 13 0 if (y < im->ysize) {
2 0 if (y < im->ysize) {
87 405 0 for (y = im->ysize-1; y >= 0; --y) {
182 0 for (y = im->ysize-1; y >= 0; --y) {
90 82725 392 for (x = 0, s = samps; x < im->xsize; ++x, s += chan_count) {
43755 180 for (x = 0, s = samps; x < im->xsize; ++x, s += chan_count) {
91 38970 43755 if (!TEST_COLOR(s))
11 38959 if (!TEST_COLOR(s))
43759 7 if (!TEST_COLOR(s))
43753 6 if (!TEST_COLOR(s))
0 43755 if (!TEST_COLOR(s))
0 0 if (!TEST_COLOR(s))
43755 0 if (!TEST_COLOR(s))
43753 2 if (!TEST_COLOR(s))
94 13 392 if (x < im->xsize)
2 180 if (x < im->xsize)
101 1404 13 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
1404 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
0 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
386 2 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
386 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
0 0 for (y = *top; y < im->ysize - *bottom && (*left || *right); ++y) {
104 45298 1387 for (x = 0, s = samps; x < *left; ++x, s += chan_count) {
24029 384 for (x = 0, s = samps; x < *left; ++x, s += chan_count) {
105 21269 24029 if (!TEST_COLOR(s)) {
15 21254 if (!TEST_COLOR(s)) {
24035 9 if (!TEST_COLOR(s)) {
8 24027 if (!TEST_COLOR(s)) {
0 24029 if (!TEST_COLOR(s)) {
0 0 if (!TEST_COLOR(s)) {
24029 0 if (!TEST_COLOR(s)) {
2 24027 if (!TEST_COLOR(s)) {
111 94960 1385 x >= im->xsize - *right; --x, s -= chan_count) {
12405 384 x >= im->xsize - *right; --x, s -= chan_count) {
112 82555 12405 if (!TEST_COLOR(s-chan_count)) {
17 82538 if (!TEST_COLOR(s-chan_count)) {
12411 11 if (!TEST_COLOR(s-chan_count)) {
8 12403 if (!TEST_COLOR(s-chan_count)) {
0 12405 if (!TEST_COLOR(s-chan_count)) {
0 0 if (!TEST_COLOR(s-chan_count)) {
12405 0 if (!TEST_COLOR(s-chan_count)) {
2 12403 if (!TEST_COLOR(s-chan_count)) {
140 11 4 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 15 if (transp_threshold > 1.0 && tcolor_count == 0) {
0 0 if (transp_threshold > 1.0 && tcolor_count == 0) {