Branch Coverage

blib/lib/Archive/Zip/Crypt.pm
Criterion Covered Total %
branch 23 44 52.2


line true false branch
181 2 0 if defined $pw
189 2 2 if ($self->readIsDone)
195 0 2 unless defined $chunkSize
196 0 2 if $chunkSize > $self->_readDataRemaining
202 0 2 unless $status == 0
205 2 0 if ($self->isEncrypted)
206 2 0 unless ($$self{'readOffset'})
207 0 2 unless defined $$self{'password'}
211 2 0 unless $$self{'readOffset'}
218 2 0 if ($self->compressionMethod == 0)
225 2 0 if $self->readIsDone
234 0 4 if (caller 1)[3] =~ /::(?:extractToFile(?:Handle|Named))$/
245 0 2 if ($bytesRead != 26)
263 2 0 if ($fileNameLength)
264 0 2 unless $self->fh->seek($fileNameLength, 1)
268 2 0 if ($extraFieldLength)
271 0 2 if ($bytesRead != $extraFieldLength)
278 2 0 if ($bitFlag & 8)
285 0 2 unless $self->fh->seek($$self{'compressedSize'}, 1)
294 0 2 unless $status == 0
299 2 0 if $self->isEncrypted and $oldUncompressedSize != $$self{'uncompressedSize'}
302 0 2 if $oldCrc32 != $$self{'crc32'} or $oldUncompressedSize != $$self{'uncompressedSize'}