Condition Coverage

blib/lib/IO/Compress/Base/Common.pm
Criterion Covered Total %
condition 93 119 78.1


and 3 conditions

line !l l&&!r l&&r condition
115 20 16404 0 defined $_[0] && (UNIVERSAL::isa($_[0], 'GLOB') || UNIVERSAL::isa($_[0], 'IO::Handle') || UNIVERSAL::isa(\$_[0], 'GLOB'))
124 671 51 296 defined $_[0] && ref $_[0] eq 'SCALAR' && defined ${$_[0];}
129 480 31 947 defined $_[0] && !ref($_[0]) && UNIVERSAL::isa(\$_[0], 'SCALAR')
136 15 737 195 defined $_[0] && $_[0] =~ /^<.*>$/
158 0 4981 4058 defined $got and $got eq "filename"
4981 20 4038 defined $got and $got eq "filename" and defined $_[0]
5001 3971 67 defined $got and $got eq "filename" and defined $_[0] and $_[0] eq "-"
173 0 3199 2052 defined $got and $got eq "filename"
3199 0 2052 defined $got and $got eq "filename" and defined $_[0]
3199 2045 7 defined $got and $got eq "filename" and defined $_[0] and $_[0] eq "-"
187 3577 2589 6332 defined $_[1] && $_[1] & 1
188 3577 6332 2589 defined $_[1] && $_[1] & 2
189 3577 8921 0 defined $_[1] && $_[1] & 4
190 3577 8921 0 defined $_[1] && $_[1] & 0
192 12478 20 0 not defined $_[0] and $undef
198 9 35 290 UNIVERSAL::isa($_[0], "ARRAY") and $extended
199 44 0 0 UNIVERSAL::isa($_[0], "HASH") and $hash
200 35 7 2 UNIVERSAL::isa($_[0], "CODE") and $wantCode
204 5358 752 195 $extended and isaFileGlobString($_[0])
256 145 1293 15 $inType ne "fileglob" and $outType eq "fileglob"
266 1293 110 35 $inType eq "fileglob" and $outType eq "fileglob"
280 940 418 45 $inType eq $outType and $_[0] eq $_[1]
1358 0 45 $inType eq $outType and $_[0] eq $_[1] and $_[0] ne "-"
322 646 582 15 $outType eq "buffer" and &readonly(${$_[1];})
509 44 1 10 @_ == 2 and defined $_[1]
45 9 1 @_ == 2 and defined $_[1] and UNIVERSAL::isa($_[1], "IO::Compress::Base::Parameters")
607 1 13 6 defined $href && ref $href
751 0 9445 3 defined $value and not $value =~ /^\d*$/
754 0 1148 8297 defined $value && $value != 0
976 1 0 1029 $self->[0] == $other->[0] && $self->[1] == $other->[1]
984 0 0 0 $self->[0] == 0 && $self->[1] == 0

or 2 conditions

line l !l condition
504 22 33 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
326 0 0 321 not defined $_[1] or $_[1] eq ""
364 20 20 781 not defined $filename or $filename eq ""
446 4853 1528 0 shift() || (caller)[0]
449 0 6381 0 ref $class || $class
607 14 1 5 not defined $href && ref $href or ref $href ne "HASH"
765 0 1 3 not defined $value or ref $value ne "CODE"
952 0 0 2 $self->[1] == 0 or $value->[1] > $self->[1]
1017 0 0 766 $_[0][1] > 0 || $_[0][0] == 4294967295