Branch Coverage

deps/libgit2/deps/zlib/adler32.c
Criterion Covered Total %
branch 17 34 50.0


line true false branch
76 3 3490 if (len == 1) {
78 0 3 if (adler >= BASE)
81 3 0 if (sum2 >= BASE)
87 1645 1845 if (buf == Z_NULL)
91 140 1705 if (len < 16) {
92 1353 140 while (len--) {
96 0 140 if (adler >= BASE)
103 0 1705 while (len >= NMAX) {
109 0 0 } while (--n);
115 1705 0 if (len) { /* avoid modulos if none remaining */
116 8064 1705 while (len >= 16) {
121 8974 1705 while (len--) {
153 0 0 if (len2 < 0)
164 0 0 if (sum1 >= BASE) sum1 -= BASE;
165 0 0 if (sum1 >= BASE) sum1 -= BASE;
166 0 0 if (sum2 >= ((unsigned long)BASE << 1)) sum2 -= ((unsigned long)BASE << 1);
167 0 0 if (sum2 >= BASE) sum2 -= BASE;