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
199 2 1 1 defined $num and $num =~ / [^0-9] /msx
277 1 0 33 $opt->{'load_error'} =~ / ( %+ ) [ #0+-]* [0-9]* s /msx and length($1) % 2
317 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]+)? ) )/
372 44 10 19 $import and @{$import;}
387 15 17 2 $max_arg and @ARGV > $max_arg

or 2 conditions

line l !l condition
204 1 2 $num ||= 1
250 50 0 $opt ||= {}
334 4 0 $lvl || 1
348 37 5 $level ||= 0

or 3 conditions

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

xor 4 conditions

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