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 16603 0 defined $_[0] && (UNIVERSAL::isa($_[0], 'GLOB') || UNIVERSAL::isa($_[0], 'IO::Handle') || UNIVERSAL::isa(\$_[0], 'GLOB'))
124 701 51 296 defined $_[0] && ref $_[0] eq 'SCALAR' && defined ${$_[0];}
129 480 61 954 defined $_[0] && !ref($_[0]) && UNIVERSAL::isa(\$_[0], 'SCALAR')
136 15 797 195 defined $_[0] && $_[0] =~ /^<.*>$/
158 0 4984 4125 defined $got and $got eq "filename"
4984 20 4105 defined $got and $got eq "filename" and defined $_[0]
5004 4005 100 defined $got and $got eq "filename" and defined $_[0] and $_[0] eq "-"
173 0 3232 2111 defined $got and $got eq "filename"
3232 0 2111 defined $got and $got eq "filename" and defined $_[0]
3232 2087 24 defined $got and $got eq "filename" and defined $_[0] and $_[0] eq "-"
187 3606 2649 6369 defined $_[1] && $_[1] & 1
188 3606 6369 2649 defined $_[1] && $_[1] & 2
189 3606 9018 0 defined $_[1] && $_[1] & 4
190 3606 9018 0 defined $_[1] && $_[1] & 0
192 12604 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 5424 812 195 $extended and isaFileGlobString($_[0])
256 145 1323 15 $inType ne "fileglob" and $outType eq "fileglob"
266 1323 110 35 $inType eq "fileglob" and $outType eq "fileglob"
280 954 434 45 $inType eq $outType and $_[0] eq $_[1]
1388 0 45 $inType eq $outType and $_[0] eq $_[1] and $_[0] ne "-"
322 676 582 15 $outType eq "buffer" and &readonly(${$_[1];})
509 47 1 10 @_ == 2 and defined $_[1]
48 9 1 @_ == 2 and defined $_[1] and UNIVERSAL::isa($_[1], "IO::Compress::Base::Parameters")
607 1 13 6 defined $href && ref $href
751 0 9528 3 defined $value and not $value =~ /^\d*$/
754 0 1202 8326 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 36 shift() || 0

or 3 conditions

line l !l&&r !l&&!r condition
326 0 0 335 not defined $_[1] or $_[1] eq ""
364 20 20 781 not defined $filename or $filename eq ""
446 4874 1558 0 shift() || (caller)[0]
449 0 6432 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 822 $_[0][1] > 0 || $_[0][0] == 4294967295