Branch Coverage

gzip-faster-perl.c
Criterion Covered Total %
branch 98 134 73.1


line true false branch
70 43 0 gf->in_char = SvPV (gf->in, gf->in_length);
76 23 20 if (! gf->user_object) {
96 0 21 UO;
97 10 11 if (gf->file_name) {
108 0 22 UO;
109 2 20 if (gf->mod_time) {
118 0 4 UO;
119 0 4 if (gf->file_name) {
129 0 5 UO;
130 5 0 if (gf->file_name) {
139 0 1 UO;
140 0 1 if (gf->mod_time) {
150 0 3 UO;
151 1 2 if (gf->mod_time) {
160 0 36 if (gf->strm.avail_in != 0) {
169 0 36 if (zlib_status != Z_STREAM_END) {
183 0 20 if (! SvOK (gf->in)) {
0 0 if (! SvOK (gf->in)) {
0 0 if (! SvOK (gf->in)) {
188 3 17 if (gf->in_length == 0) {
193 13 4 if (gf->is_gzip) {
194 0 13 if (gf->is_raw) {
200 3 1 if (gf->is_raw) {
204 0 17 CALL_ZLIB (deflateInit2 (& gf->strm, gf->level, Z_DEFLATED,
208 10 7 if (gf->user_object) {
209 9 1 if (gf->is_gzip) {
215 2 7 if (gf->copy_perl_flags) {
218 1 1 if (SvUTF8 (gf->in)) {
225 4 5 if (gf->file_name) {
227 4 0 fn = SvPV_nolen (gf->file_name);
231 1 8 if (gf->mod_time) {
232 0 1 header.time = (uLong) SvUV (gf->mod_time);
235 6 3 if (set_header) {
236 0 6 CALL_ZLIB (deflateSetHeader (& gf->strm, & header));
240 0 1 if (gf->copy_perl_flags) {
243 1 0 if (gf->file_name || gf->mod_time) {
0 1 if (gf->file_name || gf->mod_time) {
275 17 0 if (! zipped) {
282 0 17 while (gf->strm.avail_out == 0);
286 10 7 if (gf->user_object) {
287 4 6 if (gf->file_name) {
310 1 23 if (! SvOK (gf->in)) {
1 0 if (! SvOK (gf->in)) {
1 0 if (! SvOK (gf->in)) {
315 3 20 if (gf->in_length == 0) {
320 16 4 if (gf->is_gzip) {
321 0 16 if (gf->is_raw) {
327 3 1 if (gf->is_raw) {
331 0 20 CALL_ZLIB (inflateInit2 (& gf->strm, gf->wb));
332 10 10 if (gf->user_object) {
333 9 1 if (gf->is_gzip) {
334 2 7 if (gf->copy_perl_flags) {
340 0 9 if (gf->file_name) {
343 0 9 if (gf->mod_time) {
387 19 2 if (! plain) {
399 2 19 while (gf->strm.avail_out == 0);
403 10 9 if (gf->user_object && gf->is_gzip && header.done == 1) {
9 1 if (gf->user_object && gf->is_gzip && header.done == 1) {
9 0 if (gf->user_object && gf->is_gzip && header.done == 1) {
404 2 7 if (gf->copy_perl_flags) {
405 2 0 if (strncmp ((const char *) header.extra, GZIP_PERL_ID,
409 1 1 if (is_utf8) {
414 6 3 if (header.name && header.name_max > 0) {
6 0 if (header.name && header.name_max > 0) {
425 1 8 if (header.time) {
453 1 2 if (level < Z_NO_COMPRESSION) {
458 1 1 else if (level > Z_BEST_COMPRESSION) {