Branch Coverage

deps/libgit2/deps/zlib/inffast.c
Criterion Covered Total %
branch 30 70 42.8


line true false branch
104 1100 1597 if (bits < 15) {
116 2599 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 46 45 if (bits < 15) {
147 91 0 if (op & 16) { /* distance base */
150 0 91 if (bits < op) {
153 0 0 if (bits < op) {
170 0 91 if (dist > op) { /* see if copy from window */
172 0 0 if (op > whave) {
173 0 0 if (state->sane) {
200 0 0 if (wnext == 0) { /* very common case */
202 0 0 if (op < len) { /* some from window */
206 0 0 } while (--op);
210 0 0 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 0 if (op < len) { /* some from window */
235 0 0 } while (--op);
239 0 0 while (len > 2) {
245 0 0 if (len) {
247 0 0 if (len > 1)
258 210 91 } while (len > 2);
259 29 62 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 2610 80 } while (in < last && out < end);
2606 4 } while (in < last && out < end);
301 53 38 strm->avail_in = (unsigned)(in < last ? 5 + (last - in) : 5 - (in - last));
302 87 4 strm->avail_out = (unsigned)(out < end ?