Branch Coverage

blib/lib/IO/Zlib.pm
Criterion Covered Total %
branch 31 78 39.7


line true false branch
307 0 9 $@ || $Compress::Zlib::VERSION < 2 ? :
337 0 0 unless $has_Compress_Zlib
346 0 1 if ($_[0] eq ':gzip_external') { }
0 1 elsif ($_[0] eq ':gzip_read_open') { }
0 1 elsif ($_[0] eq ':gzip_write_open') { }
350 0 0 if (@_) { }
363 0 0 if (@_) { }
367 0 0 unless $gzip_read_open =~ /^.+%s.+\|\s*$/
379 0 0 if (@_) { }
383 0 0 unless $gzip_write_open =~ /^\s*\|.+%s.*$/
404 0 8 if ($gzip_external or not $has_Compress_Zlib || defined $gzip_external) { }
8 0 elsif ($has_Compress_Zlib) { }
440 1 7 if (@_)
442 1 0 if (_import($import, @_))
458 14 3 @args ? :
471 0 17 unless defined $filename
475 14 3 defined $self->{'file'} ? :
482 0 12 unless defined $self->{'file'}
488 12 0 $status == 0 ? :
498 0 11 unless defined $nbytes
500 10 1 unless defined $$bufref
504 0 11 if $bytesread < 0
515 1 6 if $self->{'file'}->gzreadline($line) <= 0
517 5 1 unless wantarray
536 0 6 unless $offset + $length <= length $buf
558 1 14 unless $aliased
564 12 3 tied ${$self;} ? :
578 1 1 unless wantarray
607 0 0 if ($mode =~ /r/) { }
0 0 elsif ($mode =~ /w/) { }
616 0 0 if (-e $filename and open $fh, $filename) { }
623 0 0 if ($rdb == 2 and $sig eq "\37\213")
627 0 0 if (open $fh, $ropen) { }
639 0 0 unless seek $fh, 0, 0
651 0 0 $mode =~ /([1-9])/ ? :
661 0 0 if (open $fh, $wopen) { }
693 0 0 defined $nread ? :
706 0 0 defined $nwrote ? :
717 0 0 defined $$bufref ? :