Branch Coverage

blib/lib/Archive/Zip.pm
Criterion Covered Total %
branch 38 78 48.7


line true false branch
325 281 0 if ref $_[0]
330 369 0 if ref $_[0]
344 0 279 if (ref $_[0] eq 'HASH') { }
349 213 66 if ref $data
359 0 0 if ref $_[0] eq 'Archive::Zip::Archive'
360 0 0 ref $_[0] eq 'HASH' ? :
362 0 0 if $chunkSize
371 0 1 ref $_[0] eq 'HASH' ? :
372 0 1 unless defined $errorHandler
391 0 7 if ref $_[0]
398 0 2 if ref $_[0]
405 0 8 if ref $_[0]
419 369 0 &_CAN($fh, 'binmode') ? :
427 0 65 unless ref $fh
428 0 65 if &_ISA($fh, 'IO::Scalar')
430 0 65 if &_ISA($fh, 'IO::String')
432 65 0 if (&_ISA($fh, 'IO::Seekable'))
436 3 62 if &_ISA($fh, 'FileHandle')
442 0 0 if ref $fh eq 'GLOB' and eval { do { seek $fh, 0, 1 } }
443 0 0 if &_CAN($fh, 'stat')
445 0 0 &_CAN($fh, 'seek') && &_CAN($fh, 'tell') ? :
468 1 366 if (ref $fd) { }
469 0 1 if (&_ISA($fd, 'IO::Scalar') or &_ISA($fd, 'IO::String')) { }
1 0 elsif (&_ISA($fd, 'IO::Handle') or ref $fd eq 'GLOB') { }
504 0 315 if ($bytesRead != 4)
511 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)
522 0 56 if (not $noFormatError) { }
524 0 0 if (_isSeekable($fh))
547 0 1 ref $_[0] eq 'HASH' ? :
548 0 1 $dir ? :
552 0 1 unless $fh
582 0 426 if ref $volReturn
584 362 28 unless $dirs[-1]
390 36 if (@dirs > 0)
585 426 0 defined $file ? :
609 88 0 unless defined $volume
613 0 88 unless defined $filename
614 88 0 @paths ? :
616 88 0 unless ($volume)