Branch Coverage

compress.c
Criterion Covered Total %
branch 0 28 0.0


line true false branch
31 0 0 if ((sourceLen > 0 && source == NULL) ||
0 0 if ((sourceLen > 0 && source == NULL) ||
0 0 if ((sourceLen > 0 && source == NULL) ||
32 0 0 destLen == NULL || (*destLen > 0 && dest == NULL))
0 0 destLen == NULL || (*destLen > 0 && dest == NULL))
43 0 0 if (err != Z_OK) return err;
51 0 0 if (stream.avail_out == 0) {
52 0 0 stream.avail_out = left > (z_size_t)max ? max : (uInt)left;
55 0 0 if (stream.avail_in == 0) {
56 0 0 stream.avail_in = sourceLen > (z_size_t)max ? max :
60 0 0 err = deflate(&stream, sourceLen ? Z_NO_FLUSH : Z_FINISH);
61 0 0 } while (err == Z_OK);
65 0 0 return err == Z_STREAM_END ? Z_OK : err;
94 0 0 return bound < sourceLen ? (z_size_t)-1 : bound;