| line |
true |
false |
branch |
|
72
|
368 |
87 |
if ($value == 0) { }
|
|
|
0 |
87 |
elsif ($value == Z_ERRNO() or $value > 2) { }
|
|
99
|
78 |
207 |
if ($test_eof)
|
|
101
|
38 |
40 |
if $gz->eof and $value == 0
|
|
120
|
2 |
76 |
if $mode =~ /(\d)/
|
|
121
|
1 |
77 |
if $mode =~ /f/i
|
|
122
|
1 |
77 |
if $mode =~ /h/i
|
|
123
|
2 |
76 |
if $mode =~ /a/i
|
|
125
|
34 |
44 |
$writing ? :
|
|
128
|
1 |
0 |
unless &isaFilehandle($file) or &isaFilename($file) or ref $file and ref $file eq "SCALAR"
|
|
132
|
1 |
76 |
unless $mode =~ /[rwa]/i
|
|
136
|
34 |
42 |
if ($writing) { }
|
|
137
|
0 |
34 |
unless $gz = "IO::Compress::Gzip"->new($file, "Minimal", 1, "AutoClose", 1, %defOpts)
|
|
142
|
0 |
42 |
unless $gz = "IO::Uncompress::Gunzip"->new($file, "Transparent", 1, "Append", 0, "AutoClose", 1, "MultiStream", 1, "Strict", 0)
|
|
152
|
0 |
76 |
unless defined $gz
|
|
161
|
1 |
41 |
if $self->[1] ne "inflate"
|
|
164
|
19 |
22 |
defined $_[1] ? :
|
|
167
|
13 |
28 |
if ($self->gzeof or $len == 0)
|
|
191
|
32 |
5 |
defined $_[0] ? :
|
|
199
|
1 |
37 |
if $self->[1] ne "deflate"
|
|
202
|
37 |
0 |
if $] >= "5.008"
|
|
228
|
5 |
6 |
if ($@)
|
|
247
|
6 |
1 |
$status ? :
|
|
257
|
66 |
0 |
$status ? :
|
|
265
|
1 |
75 |
if $self->[1] ne "inflate"
|
|
276
|
1 |
2 |
unless @_ eq 2
|
|
283
|
1 |
1 |
if $self->[1] ne "deflate"
|
|
305
|
3 |
7 |
if (ref $_[0]) { }
|
|
307
|
1 |
2 |
unless ref $in eq "SCALAR"
|
|
313
|
9 |
0 |
if $] >= "5.008"
|
|
316
|
2 |
6 |
@_ == 2 ? :
|
|
318
|
1 |
7 |
unless $x = Compress::Raw::Zlib::_deflateInit(1, $level, Z_DEFLATED(), MAX_WBITS(), MAX_MEM_LEVEL(), Z_DEFAULT_STRATEGY(), 4096, "")
|
|
329
|
0 |
7 |
unless $err == Z_OK()
|
|
332
|
0 |
7 |
unless $err == Z_OK()
|
|
341
|
4 |
6 |
if (ref $_[0]) { }
|
|
343
|
1 |
3 |
unless ref $in eq "SCALAR"
|
|
349
|
9 |
0 |
if $] >= "5.008"
|
|
355
|
0 |
8 |
unless $status == Z_OK()
|
|
358
|
1 |
7 |
unless $obj->inflate($in, $output) == Z_STREAM_END()
|
|
377
|
1 |
14 |
unless $got->getValue("bufsize") >= 1
|
|
394
|
14 |
0 |
$status == Z_OK() ? :
|
|
395
|
7 |
7 |
wantarray ? :
|
|
408
|
1 |
12 |
unless $got->getValue("bufsize") >= 1
|
|
419
|
12 |
0 |
$status == Z_OK() ? :
|
|
421
|
6 |
6 |
wantarray ? :
|
|
436
|
90 |
1 |
wantarray ? :
|
|
446
|
16 |
1 |
wantarray ? :
|
|
459
|
150 |
1 |
wantarray ? :
|
|
469
|
0 |
6 |
unless my $x = Compress::Raw::Zlib::_deflateInit(3, Z_BEST_COMPRESSION(), Z_DEFLATED(), -MAX_WBITS(), MAX_MEM_LEVEL(), Z_DEFAULT_STRATEGY(), 4096, "")
|
|
480
|
2 |
4 |
ref $_[0] ? :
|
|
482
|
6 |
0 |
if $] >= "5.008"
|
|
488
|
0 |
5 |
unless $x->deflate($string, $out) == Z_OK()
|
|
491
|
0 |
5 |
unless $x->flush($out) == Z_OK()
|
|
504
|
1 |
53 |
if length $$string < 10
|
|
510
|
4 |
44 |
unless $magic1 == 31 and $magic2 == 139 and $method == Z_DEFLATED() and not $flags & 224
|
|
516
|
4 |
40 |
if ($flags & 4)
|
|
518
|
1 |
3 |
if length $$string < 2
|
|
523
|
2 |
1 |
if length $$string < $extra_len
|
|
530
|
5 |
36 |
if ($flags & 8)
|
|
533
|
4 |
1 |
if $name_end == -1
|
|
539
|
8 |
29 |
if ($flags & 16)
|
|
542
|
7 |
1 |
if $comment_end == -1
|
|
548
|
3 |
27 |
if ($flags & 2)
|
|
550
|
2 |
1 |
if length $$string < 2
|
|
568
|
47 |
8 |
ref $_[0] ? :
|
|
570
|
55 |
0 |
if $] >= "5.008"
|
|
576
|
26 |
28 |
unless $status == Z_OK()
|
|
579
|
1 |
27 |
length $$string > 4096 ? :
|
|
580
|
0 |
28 |
unless my $x = Compress::Raw::Zlib::_inflateInit(10, -MAX_WBITS(), $bufsize, "")
|
|
587
|
1 |
27 |
if ($status == Z_OK())
|
|
593
|
0 |
27 |
if $status != Z_STREAM_END()
|
|
596
|
11 |
16 |
if (length $$string >= 8) { }
|
|
600
|
4 |
7 |
unless $len == length $output and $crc == Compress::Raw::Zlib::crc32($output)
|