Branch Coverage

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


line true false branch
104 1104 1599 if (bits < 15) {
116 2609 94 if (op == 0) { /* literal */
122 87 7 else if (op & 16) { /* length base */
125 14 73 if (op) {
126 0 14 if (bits < op) {
135 46 41 if (bits < 15) {
147 87 0 if (op & 16) { /* distance base */
150 0 87 if (bits < op) {
153 0 0 if (bits < op) {
170 0 87 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 87 } while (len > 2);
259 31 56 if (len) {
261 14 17 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 2612 84 } while (in < last && out < end);
2608 4 } while (in < last && out < end);
301 57 38 strm->avail_in = (unsigned)(in < last ? 5 + (last - in) : 5 - (in - last));
302 91 4 strm->avail_out = (unsigned)(out < end ?