Condition Coverage

blib/lib/OptArgs.pm
Criterion Covered Total %
condition 58 82 70.7


and 3 conditions

line !l l&&!r l&&r condition
158 31 2 1 $$params{'ishelp'} and $$params{'isa'} ne 'Bool'
231 19 2 1 defined $$params{'default'} and defined $$params{'required'}
234 18 2 1 $$params{'fallback'} and $$params{'isa'} ne 'SubCmd'
237 18 1 1 defined $$params{'fallback'} and ref $$params{'fallback'} ne 'HASH'
271 2 5 0 $COLOUR && $terminal
274 2 5 0 $COLOUR && $terminal
319 5 0 2 $ishelp and $desc{$caller}
322 5 2 0 $ishelp and my $version = $caller->VERSION
326 1 2 4 $last and $$last{'isa'} eq 'SubCmd'
331 4 0 0 exists $$last{'fallback'} and $ishelp || !$$last{'fallback'}{'hidden'}
343 8 2 0 $hidden{$pkg} and not $ishelp
352 18 0 0 $$opt{'hidden'} and not $ishelp
383 1 4 2 @uargs and $$last{'isa'} ne 'SubCmd'
443 14 9 27 not @_ and @ARGV
477 17 2 2 $$try{'required'} and not $ishelp
481 0 0 0 $$source[0] =~ /^-\d/ && ($$try{'isa'} ne 'Num' || $$try{'isa'} ne 'Int')
34 0 0 $$source[0] =~ /^-\S/ and not $$source[0] =~ /^-\d/ && ($$try{'isa'} ne 'Num' || $$try{'isa'} ne 'Int')
490 2 0 0 @config and @$source > @config
526 40 3 10 $$try{'isa'} eq 'SubCmd' and $result
574 140 64 2 $result and $$try{'ishelp'}
646 1 1 14 $method and $class

or 2 conditions

line l !l condition
181 26 6 $args{$package} ||= []
248 14 5 $opts{$package} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
27 32 0 0 shift() || croak('_cmdlist($package)')
144 10 33 0 $caller{$caller} || $caller
214 4 28 0 $caller{$caller} || $caller
331 0 0 0 $ishelp || !$$last{'fallback'}{'hidden'}
457 49 0 1 exists $opts{$package} or exists $args{$package}