Branch Coverage

blib/lib/Archive/Zip.pm
Criterion Covered Total %
branch 38 80 47.5


line true false branch
330 285 0 if ref $_[0]
335 372 0 if ref $_[0]
349 0 285 if (ref $_[0] eq 'HASH') { }
354 213 72 if ref $data
364 0 0 if ref $_[0] eq 'Archive::Zip::Archive'
365 0 0 ref $_[0] eq 'HASH' ? :
367 0 0 if $chunkSize
376 0 1 ref $_[0] eq 'HASH' ? :
377 0 1 unless defined $errorHandler
396 0 7 if ref $_[0]
403 0 2 if ref $_[0]
410 0 8 if ref $_[0]
418 0 0 if ref $_[0]
432 372 0 &_CAN($fh, 'binmode') ? :
440 0 66 unless ref $fh
441 0 66 if &_ISA($fh, 'IO::Scalar')
443 0 66 if &_ISA($fh, 'IO::String')
445 66 0 if (&_ISA($fh, 'IO::Seekable'))
449 3 63 if &_ISA($fh, 'FileHandle')
455 0 0 if ref $fh eq 'GLOB' and eval { do { seek $fh, 0, 1 } }
456 0 0 if &_CAN($fh, 'stat')
458 0 0 &_CAN($fh, 'seek') && &_CAN($fh, 'tell') ? :
481 1 369 if (ref $fd) { }
482 0 1 if (&_ISA($fd, 'IO::Scalar') or &_ISA($fd, 'IO::String')) { }
1 0 elsif (&_ISA($fd, 'IO::Handle') or ref $fd eq 'GLOB') { }
517 0 319 if ($bytesRead != 4)
524 57 7 if (defined $expectedSignature and $signature != $expectedSignature or not defined $expectedSignature and $signature != 33639248 and $signature != 67324752 and $signature != 101010256 and $signature != 134695760 and $signature != 101075792 and $signature != 117853008)
535 0 57 if (not $noFormatError) { }
537 0 0 if (_isSeekable($fh))
560 0 1 ref $_[0] eq 'HASH' ? :
561 0 1 $dir ? :
565 0 1 unless $fh
595 0 442 if ref $volReturn
597 376 28 unless $dirs[-1]
404 38 if (@dirs > 0)
598 442 0 defined $file ? :
622 88 0 unless defined $volume
626 0 88 unless defined $filename
627 88 0 @paths ? :
629 88 0 unless ($volume)