Branch Coverage

deps/libgit2/deps/zlib/inffast.c
Criterion Covered Total %
branch 38 70 54.2


line true false branch
104 1114 1575 if (bits < 15) {
116 2591 98 if (op == 0) { /* literal */
122 91 7 else if (op & 16) { /* length base */
125 14 77 if (op) {
126 0 14 if (bits < op) {
135 36 55 if (bits < 15) {
147 91 0 if (op & 16) { /* distance base */
150 0 91 if (bits < op) {
153 0 0 if (bits < op) {
170 2 89 if (dist > op) { /* see if copy from window */
172 0 2 if (op > whave) {
173 0 0 if (state->sane) {
200 0 2 if (wnext == 0) { /* very common case */
202 0 0 if (op < len) { /* some from window */
206 0 0 } while (--op);
210 0 2 else if (wnext < op) { /* wrap around window */
213 0 0 if (op < len) { /* some from end of window */
217 0 0 } while (--op);
219 0 0 if (wnext < len) { /* some from start of window */
224 0 0 } while (--op);
231 0 2 if (op < len) { /* some from window */
235 0 0 } while (--op);
239 2 2 while (len > 2) {
245 0 2 if (len) {
247 0 0 if (len > 1)
258 210 89 } while (len > 2);
259 29 60 if (len) {
261 14 15 if (len > 1)
266 0 0 else if ((op & 64) == 0) { /* 2nd level distance code */
276 0 7 else if ((op & 64) == 0) { /* 2nd level length code */
280 7 0 else if (op & 32) { /* end-of-block */
290 2600 82 } while (in < last && out < end);
2596 4 } while (in < last && out < end);
301 55 38 strm->avail_in = (unsigned)(in < last ? 5 + (last - in) : 5 - (in - last));
302 89 4 strm->avail_out = (unsigned)(out < end ?