Condition Coverage

blib/lib/Archive/Zip/Archive.pm
Criterion Covered Total %
condition 47 105 44.7


and 3 conditions

line !l l&&!r l&&r condition
230 0 44 6 $dirName and not -d $dirName
272 0 226 7 $newMember and $newMember->{'bitFlag'} & 2048
226 5 2 $newMember and $newMember->{'bitFlag'} & 2048 and not utf8::is_utf8($newMember->{'fileName'})
291 163 0 0 $^O eq 'MSWin32' and $Archive::Zip::UNICODE
297 163 0 0 $self->{'storeSymbolicLink'} and -l $fileName
340 11 0 0 $^O eq 'MSWin32' and $Archive::Zip::UNICODE
345 11 0 0 $self->{'storeSymbolicLink'} and -l $name
374 2 0 0 $^O eq 'MSWin32' and $Archive::Zip::UNICODE
408 0 3 0 $status == 0 and not ref $member
560 0 0 0 -f $zipName and not rename($zipName, $backupName)
576 0 0 0 -f $backupName and not unlink($backupName)
804 60 0 10 $newMember->{'bitFlag'} & 2048 and not utf8::is_utf8($newMember->{'fileName'})
1102 650 0 0 $^O eq 'MSWin32' and $Archive::Zip::UNICODE
1111 7 0 0 $^O eq 'MSWin32' and $Archive::Zip::UNICODE
1124 156 0 0 $^O eq 'MSWin32' and $Archive::Zip::UNICODE
1280 40 6 111 defined $oldMember and $oldMember->lastModTime == $newStat[9]
46 0 111 defined $oldMember and $oldMember->lastModTime == $newStat[9] and $oldMember->isDirectory == $isDir
6 0 111 defined $oldMember and $oldMember->lastModTime == $newStat[9] and $oldMember->isDirectory == $isDir and $isDir || $oldMember->uncompressedSize == $newStat[7]

or 3 conditions

line l !l&&r !l&&!r condition
567 0 0 0 File::Copy::move($tempName, $zipName) or File::Copy::copy($tempName, $zipName)
611 0 0 116 $eocdDataZip64 ||= $numberOfCentralDirectoriesOnThisDisk > 65535
612 0 0 116 $eocdDataZip64 ||= $numberOfCentralDirectories > 65535
613 0 0 116 $eocdDataZip64 ||= $centralDirectorySize > 4294967295
614 0 0 116 $eocdDataZip64 ||= $centralDirectoryOffsetWRTStartingDiskNumber > 4294967295
616 24 0 92 $membersZip64 or $eocdDataZip64
24 25 67 $membersZip64 or $eocdDataZip64 or $self->desiredZip64Mode == 1
714 96 24 289 $membersZip64 ||= $member->zip64
970 0 0 40 $self->{'diskNumber'} == 65535 or $self->{'diskNumberWithStartOfCentralDirectory'} == 65535
0 0 40 $self->{'diskNumber'} == 65535 or $self->{'diskNumberWithStartOfCentralDirectory'} == 65535 or $self->{'numberOfCentralDirectoriesOnThisDisk'} == 65535
0 0 40 $self->{'diskNumber'} == 65535 or $self->{'diskNumberWithStartOfCentralDirectory'} == 65535 or $self->{'numberOfCentralDirectoriesOnThisDisk'} == 65535 or $self->{'numberOfCentralDirectories'} == 65535
0 0 40 $self->{'diskNumber'} == 65535 or $self->{'diskNumberWithStartOfCentralDirectory'} == 65535 or $self->{'numberOfCentralDirectoriesOnThisDisk'} == 65535 or $self->{'numberOfCentralDirectories'} == 65535 or $self->{'centralDirectorySize'} == 4294967295
0 0 40 $self->{'diskNumber'} == 65535 or $self->{'diskNumberWithStartOfCentralDirectory'} == 65535 or $self->{'numberOfCentralDirectoriesOnThisDisk'} == 65535 or $self->{'numberOfCentralDirectories'} == 65535 or $self->{'centralDirectorySize'} == 4294967295 or $self->{'centralDirectoryOffsetWRTStartingDiskNumber'} == 4294967295
1047 47 0 0 $pos >= 0 or $seekOffset == $fileLength
47 0 0 $pos >= 0 or $seekOffset == $fileLength or $seekOffset >= $Archive::Zip::ChunkSize
1275 117 0 40 $self->memberNamed($memberName = $oldMember) || $self->memberNamed($memberName = _asZipDirName($oldMember, $isDir))
1280 0 111 0 $isDir || $oldMember->uncompressedSize == $newStat[7]