line |
true |
false |
branch |
12
|
0 |
28 |
if ($^O eq 'MSWin32')
|
55
|
0 |
15 |
if (ref $_[0] eq 'HASH') { }
|
71
|
0 |
334 |
if (ref $_[0] eq 'HASH') { }
|
87
|
0 |
17 |
if (ref $_[0] eq 'HASH') { }
|
112
|
19 |
467 |
$Archive::Zip::UNICODE ? :
|
149
|
0 |
243 |
if (@_) { }
|
151
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
164
|
1 |
349 |
if (@_)
|
166
|
0 |
1 |
ref $_[0] eq 'HASH' ? :
|
183
|
0 |
243 |
if ($self->desiredCompressionLevel == 1 or $self->desiredCompressionLevel == 2) { }
|
|
0 |
243 |
elsif ($self->desiredCompressionLevel == 3 or $self->desiredCompressionLevel == 4 or $self->desiredCompressionLevel == 5 or $self->desiredCompressionLevel == 6 or $self->desiredCompressionLevel == 7) { }
|
|
0 |
243 |
elsif ($self->desiredCompressionLevel == 8 or $self->desiredCompressionLevel == 9) { }
|
197
|
5 |
238 |
if ($Archive::Zip::UNICODE)
|
205
|
3 |
5 |
if @_
|
216
|
0 |
1769 |
ref $_[0] eq 'HASH' ? :
|
218
|
635 |
1134 |
if (defined $newDesiredCompressionMethod)
|
220
|
229 |
406 |
if ($newDesiredCompressionMethod == 0) { }
|
|
401 |
5 |
elsif ($oldDesiredCompressionMethod == 0) { }
|
222
|
93 |
136 |
if $self->uncompressedSize == 0
|
234
|
0 |
2701 |
ref $_[0] eq 'HASH' ? :
|
236
|
0 |
2701 |
if (defined $newDesiredCompressionLevel)
|
238
|
0 |
0 |
$newDesiredCompressionLevel ? :
|
250
|
60 |
10953 |
if (defined $newName)
|
260
|
35 |
1047 |
if ($self->{'bitFlag'} & 2048)
|
299
|
34 |
818 |
if ($mode & 16384)
|
327
|
0 |
913 |
if ($format == 1)
|
333
|
0 |
913 |
if ($format == 18)
|
335
|
0 |
0 |
if (($attribs & 4026531840) != 1073741824) { }
|
342
|
0 |
4 |
if ($format == 3 or $format == 2 or $format == 13 or $format == 5 or $format == 16 or $format == 12 or $format == 17)
|
350
|
909 |
0 |
if $mode != 0 or not $self->localExtraField
|
377
|
4 |
0 |
if ($format == 0)
|
386
|
0 |
4 |
if ($mode & 448) == (256 | $attribs << 6)
|
396
|
852 |
61 |
if (@_)
|
397
|
0 |
852 |
ref $_[0] eq 'HASH' ? :
|
399
|
34 |
818 |
if ($self->isDirectory) { }
|
416
|
6 |
826 |
if (@_) { }
|
418
|
0 |
6 |
ref $_[0] eq 'HASH' ? :
|
421
|
2 |
4 |
if ($status != 0) { }
|
|
1 |
3 |
elsif ($zip64) { }
|
439
|
6 |
255 |
if (@_) { }
|
441
|
0 |
6 |
ref $_[0] eq 'HASH' ? :
|
444
|
2 |
4 |
if ($status != 0) { }
|
|
1 |
3 |
elsif ($zip64) { }
|
467
|
0 |
243 |
if (@_) { }
|
471
|
0 |
0 |
ref $_[0] eq 'HASH' ? :
|
479
|
24 |
586 |
if (@_)
|
481
|
24 |
0 |
if ($shouldHave) { }
|
513
|
334 |
27 |
if (@_)
|
514
|
0 |
334 |
ref $_[0] eq 'HASH' ? :
|
516
|
214 |
120 |
$flag ? :
|
525
|
0 |
27 |
if (@_)
|
528
|
0 |
0 |
$flag ? :
|
538
|
0 |
54 |
ref $_[0] eq 'HASH' ? :
|
542
|
0 |
54 |
if ($^O eq 'MSWin32' and $Archive::Zip::UNICODE) { }
|
556
|
5 |
49 |
if ($self->isSymbolicLink and 1) { }
|
560
|
0 |
49 |
if ($^O eq 'MSWin32' and $Archive::Zip::UNICODE) { }
|
566
|
0 |
49 |
unless $status
|
569
|
0 |
49 |
unless chmod $self->unixFileAttributes, $name
|
624
|
2 |
40 |
if (length $extraField < 4 + $dataSize) { }
|
|
4 |
36 |
elsif ($headerId != 1) { }
|
636
|
2 |
47 |
if (length $extraField != 0)
|
641
|
36 |
11 |
if (defined $zip64Data)
|
660
|
25 |
11 |
if (@_ == 3 and $dataLength == 16) { }
|
|
0 |
11 |
elsif (@_ == 3 and $dataLength == 24) { }
|
|
0 |
11 |
elsif (@_ == 3 and $dataLength == 28) { }
|
|
0 |
11 |
elsif (@_ == 5 and $dataLength == 24) { }
|
|
1 |
10 |
elsif (@_ == 5 and $dataLength == 28) { }
|
678
|
39 |
5 |
defined $_ ? :
|
684
|
28 |
8 |
if ($fields[1] == 4294967295)
|
689
|
27 |
9 |
if ($fields[2] == 4294967295)
|
694
|
7 |
29 |
if (@fields > 3 and $fields[3] == 4294967295)
|
699
|
1 |
35 |
if (@fields > 3 and $fields[4] == 65535)
|
705
|
35 |
1 |
if ($dataLength == $expDataLength) { }
|
763
|
0 |
343 |
unless defined $dt
|
776
|
0 |
343 |
if $@
|
788
|
1 |
398 |
unless ($time_t)
|
792
|
0 |
399 |
if ($time_t < $safe_epoch)
|
812
|
85 |
243 |
@_ ? :
|
823
|
233 |
95 |
if (not $zip64) { }
|
824
|
60 |
173 |
if ($refresh) { }
|
|
67 |
106 |
elsif ($hasDataDescriptor) { }
|
833
|
0 |
60 |
if ($compressedSize > 4294967295)
|
851
|
11 |
84 |
if $versionNeededToExtract < 45
|
855
|
25 |
70 |
if ($refresh) { }
|
|
31 |
39 |
elsif ($hasDataDescriptor) { }
|
887
|
0 |
328 |
unless $self->_print($fh, $signatureData)
|
901
|
0 |
328 |
unless $self->_print($fh, $header)
|
905
|
268 |
60 |
if (not $refresh or $zip64)
|
906
|
268 |
0 |
if ($fileNameLength)
|
907
|
0 |
268 |
unless $self->_print($fh, $self->fileNameAsBytes)
|
910
|
97 |
171 |
if ($localFieldLength)
|
911
|
0 |
97 |
unless $self->_print($fh, $localExtraField)
|
932
|
0 |
85 |
unless $fh->seek($self->writeLocalHeaderRelativeOffset, 0)
|
936
|
0 |
85 |
if $status != 0
|
938
|
0 |
85 |
unless $fh->seek($here, 0)
|
968
|
173 |
70 |
if (not $zip64) { }
|
974
|
6 |
64 |
if $versionNeededToExtract < 45
|
979
|
0 |
70 |
if ($uncompressedSize > 4294967295)
|
985
|
0 |
70 |
if ($compressedSize > 4294967295)
|
992
|
70 |
0 |
if ($localHeaderRelativeOffset > 4294967295 or @extraFieldValues == 0)
|
1012
|
0 |
243 |
unless $self->_print($fh, $sigData)
|
1034
|
0 |
243 |
unless $self->_print($fh, $header)
|
1037
|
243 |
0 |
if ($fileNameLength)
|
1038
|
0 |
243 |
unless $self->_print($fh, $self->fileNameAsBytes)
|
1041
|
72 |
171 |
if ($extraFieldLength)
|
1042
|
0 |
72 |
unless $self->_print($fh, $cdExtraField)
|
1045
|
0 |
243 |
if ($fileCommentLength)
|
1046
|
0 |
0 |
unless $self->_print($fh, $self->fileComment)
|
1077
|
67 |
31 |
if (not $self->zip64) { }
|
1096
|
0 |
98 |
unless $self->_print($fh, $descriptor)
|
1104
|
0 |
273 |
ref $_[0] eq 'HASH' ? :
|
1106
|
12 |
261 |
if ($self->readIsDone)
|
1112
|
0 |
261 |
unless defined $chunkSize
|
1113
|
242 |
19 |
if $chunkSize > $self->_readDataRemaining
|
1119
|
0 |
261 |
unless $status == 0
|
1121
|
3 |
258 |
if $buffer and $self->isEncrypted
|
1125
|
213 |
48 |
if ($self->compressionMethod == 0)
|
1132
|
254 |
7 |
if $self->readIsDone
|
1164
|
61 |
2 |
if ($self->_readDataRemaining == 0) { }
|
|
2 |
0 |
elsif ($status == Z_OK()) { }
|
1185
|
13 |
2 |
unless $status == Z_OK()
|
1186
|
15 |
0 |
if ($status == Z_OK() or $status == Z_STREAM_END()) { }
|
1187
|
13 |
2 |
$status == Z_STREAM_END() ? :
|
1204
|
63 |
258 |
if $self->uncompressedSize == 0
|
1208
|
268 |
53 |
if $self->compressionMethod == 0
|
1212
|
61 |
260 |
if ($self->compressionMethod == 0 and $self->desiredCompressionMethod == 8) { }
|
|
20 |
240 |
elsif ($self->compressionMethod == 8 and $self->desiredCompressionMethod == 0) { }
|
|
240 |
0 |
elsif ($self->compressionMethod == $self->desiredCompressionMethod) { }
|
1220
|
0 |
61 |
unless $status == Z_OK()
|
1230
|
0 |
20 |
unless $status == Z_OK()
|
1243
|
268 |
53 |
$self->compressionMethod == 0 ? :
|
1271
|
6 |
12 |
if (defined $newContents) { }
|
1276
|
0 |
0 |
wantarray ? :
|
|
0 |
6 |
unless $self->_ISA('Archive::Zip::StringMember')
|
1286
|
6 |
0 |
wantarray ? :
|
1291
|
0 |
12 |
if ($status != 0)
|
1293
|
0 |
0 |
wantarray ? :
|
1301
|
11 |
12 |
if (length $$ref == $self->uncompressedSize) { }
|
1309
|
12 |
0 |
if $status == 1
|
1310
|
0 |
12 |
unless $status == 0
|
1311
|
3 |
9 |
wantarray ? :
|
1318
|
0 |
56 |
ref $_[0] eq 'HASH' ? :
|
1319
|
49 |
7 |
if ref $fhOrName
|
1322
|
56 |
0 |
if $status == 0
|
1339
|
0 |
243 |
if $self->fileName eq ''
|
1359
|
24 |
219 |
if $shouldWriteDataDescriptor
|
1372
|
0 |
243 |
if $status != 0
|
1376
|
0 |
243 |
if $status != 0
|
1379
|
0 |
243 |
if $status != 0
|
1382
|
98 |
145 |
if ($self->hasDataDescriptor) { }
|
|
85 |
60 |
elsif ($headerFieldsUnknown) { }
|
1389
|
0 |
243 |
if $status != 0
|
1400
|
7 |
292 |
if ($self->isSymbolicLink and 1) { }
|
1403
|
2 |
5 |
unless symlink $$outRef, $fhOrName
|
1406
|
63 |
229 |
if $self->uncompressedSize == 0
|
1412
|
0 |
235 |
if $status != 0 and $status != 1
|
1414
|
233 |
2 |
if (length $$outRef > 0)
|
1415
|
0 |
233 |
unless $self->_print($fhOrName, $$outRef)
|
1419
|
73 |
162 |
if $status == 1
|
1536
|
0 |
3 |
unless $self->isEncrypted
|
1539
|
0 |
3 |
unless defined $pass
|
1551
|
3 |
0 |
$self->{'externalFileAttributes'} ? :
|
1552
|
1 |
2 |
unless $head[-1] == $x
|