Condition Coverage

blib/lib/IO/Handle.pm
Criterion Covered Total %
condition 14 48 29.1


and 3 conditions

line !l l&&!r l&&r condition
326 0 0 0 $] > "5.013" and $class eq "IO::File"
0 0 0 $] > "5.013" and $class eq "IO::File" and not $INC{'IO/File.pm'}
375 3 0 7 ref $fd and "$fd" =~ /GLOB\(/o
458 0 0 0 @_ >= 2 and @_ <= 4
465 0 0 1 @_ >= 2 and @_ <= 4
620 0 0 6 $name =~ /^(SEEK_(SET|CUR|END)|_IO[FLN]BF)$/ && defined &{$name;}

or 2 conditions

line l !l condition
320 71 0 ref $_[0] || $_[0] || 'IO::Handle'
338 3 0 ref $_[0] || $_[0] || 'IO::Handle'
449 0 1 $_[3] || 0
454 0 0 $_[3] || 0
461 0 0 $_[3] || 0
467 0 0 $_[3] || 0

or 3 conditions

line l !l&&r !l&&!r condition
362 0 4 8 $mode =~ /^\+?(<|>>?)$/ or $mode =~ s/^r(\+?)$/$1
4 8 0 $mode =~ /^\+?(<|>>?)$/ or $mode =~ s/^r(\+?)$/$1/
12 0 0 $mode =~ /^\+?(<|>>?)$/ or $mode =~ s/^r(\+?)$/$1/ or $mode =~ s/^a(\+?)$/$1>>/
448 1 0 0 @_ == 3 or @_ == 4
453 0 0 0 @_ == 3 or @_ == 4
644 1 0 0 @_ == 1 or @_ == 2