Branch Coverage

blib/lib/Archive/Zip/ZipFileMember.pm
Criterion Covered Total %
branch 33 96 34.4


line true false branch
56 25 0 unless defined $where
59 0 25 if defined $previousWhere and $where == $previousWhere
66 0 25 unless $status
71 0 25 if $status == 4
74 0 25 if ($status == 3 and $$self{'possibleEocdOffset'})
79 0 0 if ($status == 0)
97 0 2 if ref $self eq $newClass
101 2 0 if (_isSeekable($self->fh))
104 2 0 if $status == 0
106 0 2 unless $status == 0
135 0 23 if ($bytesRead != 26)
153 23 0 if ($fileNameLength)
154 0 23 unless $self->fh->seek($fileNameLength, IO::Seekable::SEEK_CUR())
158 0 23 if ($extraFieldLength)
161 0 0 if ($bytesRead != $extraFieldLength)
168 0 23 if ($bitFlag & 8)
175 0 0 unless $self->fh->seek($$self{'compressedSize'}, IO::Seekable::SEEK_CUR())
184 0 0 unless $status == 0
186 0 0 if $oldCrc32 != $$self{'crc32'} or $oldUncompressedSize != $$self{'uncompressedSize'}
204 0 2 if ($bytesRead != 26)
220 2 0 if ($fileNameLength)
223 0 2 if ($bytesRead != $fileNameLength)
229 0 2 if ($extraFieldLength)
232 0 0 if ($bytesRead != $extraFieldLength)
239 0 2 if ($self->hasDataDescriptor) { }
245 0 0 unless $self->fh->seek($$self{'compressedSize'}, IO::Seekable::SEEK_CUR())
249 0 0 unless $status == 0
252 0 2 if $$self{'crc32'} != $crc32 or $$self{'uncompressedSize'} != $uncompressedSize
276 0 0 if $bytesRead != 4
281 0 0 if ($signature == 134695760 and $signature != $$self{'crc32'}) { }
285 0 0 if $bytesRead != 12
294 0 0 if $bytesRead != 8
302 0 0 unless defined $$self{'eocdCrc32'}
319 0 5 if ($bytesRead != 42)
344 5 0 if ($fileNameLength)
346 0 5 if ($bytesRead != $fileNameLength)
350 0 5 if ($extraFieldLength)
352 0 0 if ($bytesRead != $extraFieldLength)
356 0 5 if ($fileCommentLength)
358 0 0 if ($bytesRead != $fileCommentLength)
364 0 5 if ($$self{'uncompressedSize'} != $$self{'compressedSize'} and $$self{'compressionMethod'} == 0)
379 0 23 unless $status == 0
381 0 23 unless $self->fh
389 0 23 unless $status == 0
393 0 23 unless $status == 0
396 0 23 unless $self->fh->seek($self->dataOffset, IO::Seekable::SEEK_SET())
407 0 23 unless $chunkSize
408 0 23 unless my $bytesRead = $self->fh->read($$dataRef, $chunkSize)