Branch Coverage

blib/lib/Archive/Zip/ZipFileMember.pm
Criterion Covered Total %
branch 69 120 57.5


line true false branch
25 117 0 @_ ? :
26 117 0 @_ ? :
58 172 0 unless defined $where
61 0 172 if defined $previousWhere and $where == $previousWhere
68 0 172 unless $status
73 0 172 if $status == 4
76 0 0 if ($status == 3 and $self->{'possibleEocdOffset'})
81 0 0 if ($status == 0)
99 0 16 if ref $self eq $newClass
103 16 0 if (_isSeekable($self->fh))
106 16 0 if $status == 0
108 0 16 unless $status == 0
139 0 156 if ($bytesRead != 26)
157 156 0 if ($fileNameLength)
158 0 156 unless $self->fh->seek($fileNameLength, 1)
163 50 106 if ($extraFieldLength)
166 0 50 if ($bytesRead != $extraFieldLength)
169 38 12 if ($self->{'archiveZip64'})
173 0 38 if $status != 0
180 134 22 if ($bitFlag & 8)
187 0 134 unless $self->fh->seek($self->{'compressedSize'}, 1)
196 0 134 unless $status == 0
201 2 132 if $self->isEncrypted and $oldUncompressedSize > $self->{'uncompressedSize'}
207 0 134 if $oldCrc32 != $self->{'crc32'} or $oldUncompressedSize != $self->{'uncompressedSize'}
209 66 68 if $self->compressionMethod == 0
227 0 16 if ($bytesRead != 26)
243 16 0 if ($fileNameLength)
246 0 16 if ($bytesRead != $fileNameLength)
253 8 8 if ($extraFieldLength)
256 0 8 if ($bytesRead != $extraFieldLength)
259 2 6 if ($self->{'archiveZip64'})
265 0 2 if $status != 0
272 5 11 if ($self->hasDataDescriptor) { }
278 0 5 unless $self->fh->seek($self->{'compressedSize'}, 1)
282 0 5 unless $status == 0
287 0 11 if $self->{'crc32'} != $crc32 or $self->{'uncompressedSize'} != $uncompressedSize
292 0 16 wantarray ? :
315 0 139 if $bytesRead != 4
323 100 39 if (not $zip64) { }
337 139 0 if ($signature == 134695760 and $signature != $self->{'crc32'}) { }
340 0 139 if $bytesRead != $dataDescriptorLength
347 0 0 if $bytesRead != $dataDescriptorLengthNoSig
356 0 139 unless defined $self->{'eocdCrc32'}
372 0 70 if ($bytesRead != 42)
397 69 1 if ($fileNameLength)
399 0 69 if ($bytesRead != $fileNameLength)
403 21 49 if ($extraFieldLength)
405 0 21 if ($bytesRead != $extraFieldLength)
408 8 13 if ($self->{'archiveZip64'})
415 0 8 if $status != 0
419 0 70 if ($fileCommentLength)
421 0 0 if ($bytesRead != $fileCommentLength)
427 2 68 if ($self->{'uncompressedSize'} != $self->{'compressedSize'} and $self->{'compressionMethod'} == 0)
441 0 156 unless $status == 0
443 0 156 unless $self->fh
451 0 156 unless $status == 0
455 0 156 unless $status == 0
458 0 156 unless $self->fh->seek($self->dataOffset, 0)
469 0 143 unless $chunkSize
470 0 143 unless my $bytesRead = $self->fh->read($$dataRef, $chunkSize)