Condition Coverage

blib/lib/Test2/Tools/LoadModule.pm
Criterion Covered Total %
condition 27 30 90.0


and 3 conditions

line !l l&&!r l&&r condition
198 2 1 1 defined $num and $num =~ / [^0-9] /msx
276 1 0 33 $opt->{'load_error'} =~ / ( %+ ) [ #0+-]* [0-9]* s /msx and length($1) % 2
316 3 2 1 defined $arg[0] && $arg[0] =~ /(?x: (?x: v (?-x:[0-9]+) (?-x: (?-x:\.[0-9]+)+ (?-x:_[0-9]+)? )? | (?-x:[0-9]+)? (?-x:\.[0-9]+){2,} (?-x:_[0-9]+)? ) | (?x: (?-x:[0-9]+) (?-x: (?-x:\.[0-9]+) | \. )? (?-x:_[0-9]+)? | (?-x:\.[0-9]+) (?-x:_[0-9]+)? ) )/
371 44 10 19 $import and @{$import;}
386 15 17 2 $max_arg and @ARGV > $max_arg

or 2 conditions

line l !l condition
203 1 2 $num ||= 1
249 50 0 $opt ||= {}
333 4 0 $lvl || 1
347 37 5 $level ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
401 17 6 3 not defined $import or "ARRAY" eq ref $import

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
371 5 5 37 7 defined $import xor not $opt->{'require'}