blib/lib/LibZip/MyArchZip.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 12 | 35 | 34.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
233 | 4 | 0 | 2 | $signature != CENTRAL_DIRECTORY_FILE_HEADER_SIGNATURE() and $signature != LOCAL_FILE_HEADER_SIGNATURE() |
4 | 2 | 0 | $signature != CENTRAL_DIRECTORY_FILE_HEADER_SIGNATURE() and $signature != LOCAL_FILE_HEADER_SIGNATURE() and $signature != END_CENTDIR_SIGN() | |
503 | 0 | 0 | 0 | substr($$self{'fileName'}, -1) eq '/' && $$self{'uncompressedSize'} == 0 |
568 | 1 | 0 | 0 | $$self{'compressionMethod'} == COMPRESSION_DEFLATED() and $self->desiredCompressionMethod == COMPRESSION_STORED() |
675 | 1 | 0 | 0 | $status != 0 and $status != 1 |
line | l | !l | condition |
---|---|---|---|
161 | 0 | 0 | shift() || '' |
162 | 0 | 0 | shift() || '.' |
678 | 1 | 0 | $$outRef || (return _error('write error during copy')) |
733 | 1 | 0 | read($fh, $$dataRef, $chunkSize) || (return 0, _error('reading data')) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
303 | 2 | 0 | 0 | $pos >= 0 or $seekOffset == $fileLength |
2 | 0 | 0 | $pos >= 0 or $seekOffset == $fileLength or $seekOffset >= $CHUNKSIZE | |
767 | 0 | 1 | 1 | $$self{'dataEnded'} || !$$self{'readDataRemaining'} |
780 | 0 | 0 | 0 | $status == Z_OK() or $status == Z_STREAM_END() |