Branch Coverage

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


line true false branch
76 3 3460 if (len == 1) {
78 0 3 if (adler >= BASE)
81 3 0 if (sum2 >= BASE)
87 1633 1827 if (buf == Z_NULL)
91 134 1693 if (len < 16) {
92 1317 134 while (len--) {
96 0 134 if (adler >= BASE)
103 0 1693 while (len >= NMAX) {
109 0 0 } while (--n);
115 1693 0 if (len) { /* avoid modulos if none remaining */
116 8033 1693 while (len >= 16) {
121 8897 1693 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;