Condition Coverage

blib/lib/IO/Compress/Base.pm
Criterion Covered Total %
condition 64 80 80.0


and 3 conditions

line !l l&&!r l&&r condition
123 3343 1804 4271 length $data == 0 and not $last
227 51 27 3 $outType eq "buffer" and length $$outValue == 0
27 45 6 $outType ne "buffer" and !(-e $outValue) || -w _ && -z _
323 1066 790 5 $outType eq "buffer" and &Scalar::Util::readonly(${$_[0];})
346 0 665 0 $haveOut and $x->{'Hash'}
422 178 0 230 &isaFilename($input) and $inputIsFilename
483 440 97 248 ref $input and ref $input eq "SCALAR"
513 97 0 440 !$isFilehandle || *$self->{'AutoClose'} and $input ne "-"
619 1885 0 175 !defined($$buffer) || length $$buffer == 0 and not *$self->{'FlushPending'}
840 50 0 1003 !*$self->{'Handle'} || *$self->{'AutoClose'} and not *$self->{'StdIO'}

or 2 conditions

line l !l condition
605 40 0 $_[2] || 0

or 3 conditions

line l !l&&r !l&&!r condition
166 174 1866 0 shift() || IO::Compress::Base::Parameters::new()
190 1886 0 5 @_ or $got
220 237 81 1538 $got->getValue('append') || $merge
227 3 6 42 !(-e $outValue) || -w _ && -z _
3 6 72 $outType eq "buffer" and length $$outValue == 0 or $outType ne "buffer" and !(-e $outValue) || -w _ && -z _
385 40 5 30 $x->{'inType'} eq 'filenames' || $x->{'inType'} eq 'filename'
422 202 396 12 isaScalar($input) or &isaFilename($input) and $inputIsFilename
452 0 75 0 isaScalar($element) or $isFilename
488 440 97 0 not ref $input or &isaFilehandle($input)
513 410 30 97 !$isFilehandle || *$self->{'AutoClose'}
534 0 60 0 isaScalar($input) or &isaFilename($input)
619 85 90 1885 !defined($$buffer) || length $$buffer == 0
634 1865 5 0 utf8::downgrade($$buffer, 1) or Carp::croak("Wide character in " . *$self->{'ClassName'} . "::write:")
822 1938 0 1804 *$self->{'Closed'} or not *$self->{'Compress'}
840 844 159 50 !*$self->{'Handle'} || *$self->{'AutoClose'}
916 32 11 11 $whence == 1 or $whence == 2