Branch Coverage

blib/lib/Archive/Zip.pm
Criterion Covered Total %
branch 36 80 45.0


line true false branch
330 434 0 if ref $_[0]
335 563 0 if ref $_[0]
349 0 386 if (ref $_[0] eq 'HASH') { }
354 358 28 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 0 ref $_[0] eq 'HASH' ? :
377 0 0 unless defined $errorHandler
396 0 7 if ref $_[0]
403 0 2 if ref $_[0]
410 0 3 if ref $_[0]
418 0 0 if ref $_[0]
432 563 0 &_CAN($fh, 'binmode') ? :
440 0 103 unless ref $fh
441 0 103 if &_ISA($fh, 'IO::Scalar')
443 0 103 if &_ISA($fh, 'IO::String')
445 103 0 if (&_ISA($fh, 'IO::Seekable'))
449 40 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 523 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 359 if ($bytesRead != 4)
524 56 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 56 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 387 if ref $volReturn
597 349 33 unless $dirs[-1]
382 5 if (@dirs > 0)
598 387 0 defined $file ? :
622 121 0 unless defined $volume
626 0 121 unless defined $filename
627 121 0 @paths ? :
629 121 0 unless ($volume)