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 3433 1835 4311 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 1097 790 5 $outType eq "buffer" and &Scalar::Util::readonly(${$_[0];})
346 0 695 0 $haveOut and $x->{'Hash'}
422 208 0 230 &isaFilename($input) and $inputIsFilename
483 470 97 248 ref $input and ref $input eq "SCALAR"
513 127 0 440 !$isFilehandle || *$self->{'AutoClose'} and $input ne "-"
619 1922 0 175 !defined($$buffer) || length $$buffer == 0 and not *$self->{'FlushPending'}
840 66 0 1018 !*$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 1897 0 shift() || IO::Compress::Base::Parameters::new()
190 1917 0 5 @_ or $got
220 237 81 1569 $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 42 isaScalar($input) or &isaFilename($input) and $inputIsFilename
452 0 75 0 isaScalar($element) or $isFilename
488 470 97 0 not ref $input or &isaFilehandle($input)
513 410 30 127 !$isFilehandle || *$self->{'AutoClose'}
534 0 60 0 isaScalar($input) or &isaFilename($input)
619 85 90 1922 !defined($$buffer) || length $$buffer == 0
634 1902 5 0 utf8::downgrade($$buffer, 1) or Carp::croak('Wide character in ' . *$self->{'ClassName'} . '::write:')
822 1969 0 1835 *$self->{'Closed'} or not *$self->{'Compress'}
840 858 160 66 !*$self->{'Handle'} || *$self->{'AutoClose'}
916 32 11 11 $whence == 1 or $whence == 2