Branch Coverage

compose.im
Criterion Covered Total %
branch 110 134 82.0


line true false branch
27 28 2 if (out_left >= out->xsize
28 26 2 || out_top >= out->ysize
29 26 0 || src_left >= src->xsize
30 26 0 || src_top >= src->ysize
31 26 0 || width <= 0
32 26 0 || height <= 0
33 24 2 || out_left + width <= 0
34 22 2 || out_top + height <= 0
35 22 0 || src_left + width <= 0
36 22 0 || src_top + height <= 0
37 22 0 || mask_left >= mask->xsize
38 22 0 || mask_top >= mask->ysize
39 22 0 || mask_left + width <= 0
40 0 22 || mask_top + height <= 0)
43 2 20 if (out_left < 0) {
49 2 20 if (out_left + width > out->xsize)
52 2 20 if (out_top < 0) {
58 2 20 if (out_top + height > out->ysize)
61 2 20 if (src_left < 0) {
67 2 20 if (src_left + width > src->xsize)
70 2 20 if (src_top < 0) {
76 2 20 if (src_top + height > src->ysize)
79 2 20 if (mask_left < 0) {
85 2 20 if (mask_left + width > mask->xsize)
88 2 20 if (mask_top < 0) {
94 2 20 if (mask_top + height > mask->ysize)
97 2 20 if (opacity > 1.0)
99 2 18 else if (opacity <= 0) {
112 10 10 #code out->bits <= 8 && src->bits<= 8 && mask->bits <= 8
10 0 #code out->bits <= 8 && src->bits<= 8 && mask->bits <= 8
10 0 #code out->bits <= 8 && src->bits<= 8 && mask->bits <= 8
117 10 0 if (adapt_channels == 1 || adapt_channels == 3)
10 0 if (adapt_channels == 1 || adapt_channels == 3)
120 371 10 for (dy = 0; dy < height; ++dy) {
371 10 for (dy = 0; dy < height; ++dy) {
128 1600 40 for (i = 0; i < width; ++i) {
1600 40 for (i = 0; i < width; ++i) {
163 23 2 if (out_left >= out->xsize
164 21 2 || out_top >= out->ysize
165 21 0 || src_left >= src->xsize
166 21 0 || src_top >= src->ysize
167 21 0 || width <= 0
168 21 0 || height <= 0
169 19 2 || out_left + width <= 0
170 17 2 || out_top + height <= 0
171 17 0 || src_left + width <= 0
172 0 17 || src_top + height <= 0)
175 2 15 if (out_left < 0) {
180 3 14 if (out_left + width > out->xsize)
183 2 15 if (out_top < 0) {
188 2 15 if (out_top + height > out->ysize)
191 2 15 if (src_left < 0) {
196 2 15 if (src_left + width > src->xsize)
199 2 15 if (src_top < 0) {
204 2 15 if (src_top + height > src->ysize)
207 2 15 if (opacity > 1.0)
209 2 13 else if (opacity <= 0) {
217 8 7 #code out->bits <= 8 && src->bits <= 8
8 0 #code out->bits <= 8 && src->bits <= 8
227 40 1 for (i = 0; i < width; ++i)
40 1 for (i = 0; i < width; ++i)
231 8 0 if (adapt_channels == 1 || adapt_channels == 3)
7 1 if (adapt_channels == 1 || adapt_channels == 3)
7 0 if (adapt_channels == 1 || adapt_channels == 3)
7 0 if (adapt_channels == 1 || adapt_channels == 3)
234 256 8 for (dy = 0; dy < height; ++dy) {
255 7 for (dy = 0; dy < height; ++dy) {