Condition Coverage

/root/.cpan/build/App-zipdetails-4.005-0/bin/zipdetails
Criterion Covered Total %
condition 106 496 21.3


and 3 conditions

line !l l&&!r l&&r condition
1062 4 2 0 $opt_walk and $opt_scan
1133 0 0 0 not $output_encryptedCD and $CentralDirectory->isEncryptedCD
0 0 0 $lastSignature == 67324752 and $lastHeader->{'streamed'}
0 0 0 Signatures::isCentralHeader($s) and $foundCentralHeader == 0
1155 0 0 0 defined $lastHeader->{'payloadOutput'} and $lastEndsAt = BadlyFormedDataDescriptor($lastHeader, $delta)
1236 0 2 0 $s and $FH->tell != 0
1288 8 2 0 $here == 0 and $signature == 808471376
1322 0 10 0 defined $expectedOffset and $here != $expectedOffset
10 0 0 defined $expectedOffset and $here != $expectedOffset and $CentralDirectory->exists || $EOCD_Present
1341 0 0 0 $signature != 134695760 and Signatures::isCentralHeader($expectedSignature)
0 0 0 $signature != 134695760 and Signatures::isCentralHeader($expectedSignature) and $START_APK
0 0 0 $signature != 134695760 and Signatures::isCentralHeader($expectedSignature) and $START_APK and not $processedAPK
1362 0 0 0 $signature != 134695760 and $delta >= 0
1365 0 0 0 $lastHeader->{'streamed'} and BadlyFormedDataDescriptor($lastHeader, $delta)
1456 0 0 6 $CentralDirectory->exists and $LocalDirectory->exists
1498 12 0 12 $_->entryType == 67324752 and not $_->encapsulated
1521 12 12 0 $_->entryType == 33639248 and not $_->ldEntry
1553 0 0 0 $_->entryType == 33639248 and not $_->encapsulated
0 0 0 $_->entryType == 33639248 and not $_->encapsulated and $_->ldEntry
0 0 0 $_->entryType == 33639248 and not $_->encapsulated and $_->ldEntry and $_->ldEntry->childrenCount
1580 0 0 0 $_->entryType == 67324752 and $_->streamed
1601 12 0 12 $_->entryType == 67324752 and not $_->encapsulated
1976 0 0 0 $cdEntry and not $cdEntry->zip64
0 0 0 not $localEntry->zip64 and ($cdEntry and not $cdEntry->zip64)
2026 8 0 4 not $opt_scan || $opt_walk and $CentralEntryExists
2041 4 0 0 $cdIndex and $cdIndex != $LocalHeaderCount
2071 12 0 0 ($gpFlag & 8257) == 1 && $compressedMethod != 99
2075 12 0 0 $streaming and $crc != 0
12 0 0 $streaming and $crc != 0 and not $weakEncryption
2157 12 0 0 $gpFlag & 64 && $compressedMethod != 99 && !$minizip_encrypted
2166 12 0 0 ($gpFlag & 8257) == 8257 and $extractVer >= 50
2180 8 4 0 defined $cdl and $gpFlag & 8
2188 8 4 0 defined $cdu and $gpFlag & 8
2216 12 0 0 $compressedMethod == 99 and $localEntry->aesValid
2237 12 0 0 $compressedMethod == 92 and $CDcompressedSize == 20
12 0 0 $compressedMethod == 99 and $localEntry->aesValid
2470 0 12 0 $versionMadeBy == 3 and $otherAttributes & 16384
2481 0 0 0 not $filenameOK and $uncompressedSize == 0
2486 0 0 0 $filenameOK and not $dosDirectoryAttributeSet
2490 0 0 0 $filenameOK and $versionMadeBy == 3
0 0 0 $filenameOK and $versionMadeBy == 3 and not $unixDirectoryAttributeSet
2644 0 24 0 not $opt_Redact and TextEncoding::debugEncoding()
2675 0 0 24 $message eq "Filename" and $opt_want_warning_messages
3123 0 0 0 $diskNumber == 0 && $cdDiskNumber == 0 && $entriesOnThisDisk == 0 && $totalEntries == 0 && $centralDirSize == 0 && $centralDirOffset == 0
3156 6 0 0 $PREFIX_DELTA and $centralDirOffset != 4294967295
3252 0 0 0 $localEntry && $localEntry->getCdEntry
3274 0 0 0 $deltaToNext == 16 and $cl64 == $payloadLength
0 0 0 $deltaToNext == 8 and $cl32 == $payloadLength
3276 0 0 0 $centralEntry and not $centralEntry->zip64
0 0 0 not $localEntry->zip64 and ($centralEntry and not $centralEntry->zip64)
3310 0 0 0 $centralEntry and not $centralEntry->zip64
0 0 0 not $localEntry->zip64 and ($centralEntry and not $centralEntry->zip64)
3324 0 0 0 $centralEntry and not $centralEntry->zip64
0 0 0 not $localEntry->zip64 and ($centralEntry and not $centralEntry->zip64)
3651 0 24 0 $must_point_back and $offset >= $headerStart
3660 16 8 0 $centralDirSize and not $cdSizeOK
24 0 0 $centralDirSize and not $cdSizeOK and $possibleDelta > 0
8 0 0 $centralDirSize and not $cdSizeOK and $possibleDelta > 0 and readSignatureFromOffset($possibleDelta) == 67324752
4093 0 0 0 defined $min and defined $max
4198 0 0 0 $display and not $entry->streamed
0 0 0 $display and not $entry->streamed and not full32($entry->std_uncompressedSize)
4223 0 0 0 $display and not $entry->streamed
0 0 0 $display and not $entry->streamed and not full32($entry->std_compressedSize)
4243 0 0 0 $display and not $entry->streamed
0 0 0 $display and not $entry->streamed and not full32($entry->std_localHeaderOffset)
4259 0 0 0 $display and not $entry->streamed
0 0 0 $display and not $entry->streamed and not full16($entry->std_diskNumber)
4318 0 0 0 $display and not $entry->streamed
0 0 0 $display and not $entry->streamed and not full32($entry->std_uncompressedSize)
4343 0 0 0 $display and not $entry->streamed
0 0 0 $display and not $entry->streamed and not full32($entry->std_compressedSize)
4372 0 0 0 $display and not $entry->streamed
0 0 0 $display and not $entry->streamed and not full32($entry->std_localHeaderOffset)
4397 0 0 0 $display and not $entry->streamed
0 0 0 $display and not $entry->streamed and not full16($entry->std_diskNumber)
4758 0 0 0 $remaining == 0 and $entry->inCentralDir
4786 0 0 0 $remaining == 0 and $entry->inCentralDir
5040 0 0 0 not $inCentralHdr and $len - 2 > 0
5815 2 0 4 $fh->read($buffer, 46) == 46 and unpack("V", $buffer) == 33639248
5904 0 2 0 $fh->read($buffer, 4) == 4 and unpack("V", $buffer) == 84233040
6070 0 0 0 $pos >= 0 and $want - $pos > 22
6103 2 0 0 needZip64EOCDLocator($diskNumber, $cdDiskNumber, $entriesOnThisDisk, $totalEntries, $centralDirOffset, $centralDirSize) and not emptyArchive($here, $diskNumber, $cdDiskNumber, $entriesOnThisDisk, $totalEntries, $centralDirOffset, $centralDirSize)
6128 2 0 0 $totalEntries == 0 and $entriesOnThisDisk == 0
6543 4 8 4 defined $offset and defined $CentralDirectory->{'byCentralOffset'}{$offset}
6612 4 0 12 $self->{'alreadyScanned'} and not $entry->encapsulated
6615 8 4 0 $existing and $existing->centralHeaderOffset != $entry->centralHeaderOffset
6732 0 0 0 $self->{'encryptedCD'} && !$self->{'minizip_secure'}
7008 12 0 0 $lookup and $lookup ne $filename
7165 0 6 0 $opt_Encoding_Enabled and $opt_Debug_Encoding
7194 24 0 0 $LanguageEncodingFlag and $opt_use_LanguageEncodingFlag
7223 24 0 0 $LanguageEncodingFlag and $opt_use_LanguageEncodingFlag
7293 28 0 20 @nestingStack and $entry->offsetStart > $nestingStack[-1]->offsetEnd
7297 28 0 0 @nestingStack and $entry->offsetStart >= $nestingStack[-1]->offsetStart
28 0 0 @nestingStack and $entry->offsetStart >= $nestingStack[-1]->offsetStart and $entry->offsetEnd <= $nestingStack[-1]->offsetEnd
0 0 0 @nestingStack and $entry->offsetStart >= $nestingStack[-1]->offsetStart and $entry->offsetEnd <= $nestingStack[-1]->offsetEnd and $entry->index != $nestingStack[-1]->index
7343 6 0 6 @copy and $offsetStart > $copy[-1]->offsetEnd
7345 6 0 0 @copy && $offsetStart >= $copy[-1]->offsetStart && $offsetEnd <= $copy[-1]->offsetEnd
7423 4 0 12 $entry and $entry->entryType == 67324752

or 2 conditions

line l !l condition
375 0 0 $Extras{$id}[0] // "Unknown"
620 420 0 $_[1] // 0
625 0 0 $_[1] // 0
865 48 0 $_[0] // 0
948 24 2 shift() // 0
1218 20 0 &$handler($signature, $buffer, $FH->tell - 4) // {"streamed", 0}
1753 96 0 $localValue // -1
96 0 $centralValue // -2
1825 0 0 shift() // 0
1994 24 0 $ZIP_CompressionMethods{$id} || 'Unknown Method'
2360 0 0 $AlgIdLookup{$_[0]} // "Unknown algorithm"
2362 0 0 $FlagsLookup{$_[0]} // "Reserved for certificate processing"
2387 0 0 $HashAlgLookup{$_[0]} // "Unknown algorithm"
2605 0 24 shift() // "Filename"
2638 0 24 shift() // "Filename"
2830 12 0 $masks->{$not_rwx} // "Unknown Unix attrib"
3020 0 0 $AlgIdLookup{$_[0]} // "Unknown algorithm"
3022 0 0 $FlagsLookup{$_[0]} // "reserved for certificate processing"
3023 0 0 $HashIDLookup{$_[0]} // "Unknown ID"
3559 24 32 shift() // ""
3696 6 18 shift() // 0
3697 0 24 shift() // 1
4007 0 0 $Extras{$lookID} // ["", undef, undef, undef, undef, undef]
4084 0 0 $Extras{$lookID} // ["", undef, undef, undef, undef, undef]
4132 20 0 $_[0] // 0
4137 32 0 $_[0] // 0
4163 0 0 shift() // 1
4281 0 0 shift() // 1
4627 24 0 scalar gmtime $time // "Unknown"
4629 0 0 scalar localtime $time // "Unknown"
4857 0 0 $Algorithm->{$alg} // "Unknown"
5255 0 0 $masks->{$not_rwx} // "Unknown Unix attrib"
5465 0 0 $ZIP_CompressionMethods{$_[0]} || 'Unknown Method'
5504 0 0 $AlgIdLookup{$_[0]} // "Unknown algorithm"
5506 0 0 $FlagsLookup{$_[0]} // "reserved for certificate processing"
5522 0 0 $HashAlgLookup{$_[0]} // "Unknown algorithm"
5571 0 0 $saltSize{$entry->aesStrength} // 0
5755 0 0 $IDs->{$id} // "Unknown ID"
6080 0 0 unpack("v", substr($buffer, $pos + 20, 2)) // 0
6300 10 0 ${$$self{"offsetIndex"};}[$self->{'currentIndex'}] // undef
6353 0 72 shift() // {}
6872 12 0 $localEntry->compressedSize // 0
7266 0 0 shift() // 0
7359 0 0 $index2entry{$outerIndex} // undef

or 3 conditions

line l !l&&r !l&&!r condition
1097 2 2 2 $opt_scan or $opt_walk
1245 2 0 0 $CentralDirectory->exists or $EOCD_Present
1322 0 0 0 $CentralDirectory->exists || $EOCD_Present
1782 0 0 0 $opt_scan or $opt_walk
1799 0 0 6 $ErrorCount or $WarningCount
0 0 6 $ErrorCount or $WarningCount or $InfoCount
1835 0 0 0 $opt_scan or $opt_walk
1880 0 0 0 $opt_scan or $opt_walk
2026 4 4 4 $opt_scan || $opt_walk
2497 0 0 0 $dosAttributes & 1024 or $otherAttributes & Deparse error: Can't locate object method "object_2svref" via package "B::SPECIAL" at /usr/local/lib/perl5/5.42.0/B/Deparse.pm line 5762.
2551 0 0 24 $filename =~ m[^\.\./] or $filename =~ m[/\.\./]
0 0 24 $filename =~ m[^\.\./] or $filename =~ m[/\.\./] or $filename =~ m[/\.\.]
2787 12 0 0 $made_by == 3 or $made_by == 0
3103 0 0 8 full16($diskNumber) || full16($cdDiskNumber) || full16($entriesOnThisDisk) || full16($totalEntries) || full32($centralDirSize) || full32($centralDirOffset)
3185 0 0 6 needZip64EOCDLocator($diskNumber, $cdDiskNumber, $entriesOnThisDisk, $totalEntries, $centralDirSize, $centralDirOffset) or emptyArchive($startRecordOffset, $diskNumber, $cdDiskNumber, $entriesOnThisDisk, $totalEntries, $centralDirSize, $centralDirOffset)
3580 0 0 0 $opt_scan or $opt_walk
3610 0 18 0 $offset + 4 > $FILELEN or not $POSSIBLE_PREFIX_DELTA
18 0 0 $offset + 4 > $FILELEN or not $POSSIBLE_PREFIX_DELTA or $PREFIX_DELTA
3899 0 0 4 shift() // $PREFIX_DELTA
3901 0 4 0 $reported or $delta == 0
4090 0 0 0 defined $min or defined $max
4107 0 0 0 $size < $min or $size > $max
4180 0 0 0 $assumeLengthsPresent or $assumeAllFieldsPresent
0 0 0 $assumeLengthsPresent or $assumeAllFieldsPresent or full32($entry->std_uncompressedSize)
4206 0 0 0 $assumeLengthsPresent or $assumeAllFieldsPresent
0 0 0 $assumeLengthsPresent or $assumeAllFieldsPresent or full32($entry->std_compressedSize)
4301 0 0 0 $assumeAllFieldsPresent or full32($entry->std_uncompressedSize)
4326 0 0 0 $assumeAllFieldsPresent or full32($entry->std_compressedSize)
4351 0 0 0 $assumeAllFieldsPresent or full32($entry->std_localHeaderOffset)
4380 0 0 0 $assumeAllFieldsPresent or full16($entry->std_diskNumber)
4724 0 0 0 $flags & 1 or $full
4756 0 0 0 $flags & 2 or $full
4764 0 0 0 not $flags & 2 or $entry->inCentralDir
4784 0 0 0 $flags & 4 or $full
4792 0 0 0 not $flags & 4 or $entry->inCentralDir
5693 0 0 2 $cdOffset < 44 or $FILELEN - $cdSize < 44
5708 0 0 0 $len2 == 0 or $len2 > $FILELEN
6806 0 4 12 $entry->encapsulated or $self->{'cdEntryIndex'}{$entry->index}++ >= 1