Condition Coverage

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


and 3 conditions

line !l l&&!r l&&r condition
135 31 2 1 $params->{'ishelp'} and $params->{'isa'} ne 'Bool'
208 19 2 1 defined $params->{'default'} and defined $params->{'required'}
211 18 2 1 $params->{'fallback'} and $params->{'isa'} ne 'SubCmd'
214 18 1 1 defined $params->{'fallback'} and ref $params->{'fallback'} ne 'HASH'
247 2 5 0 $COLOUR && $terminal
250 2 5 0 $COLOUR && $terminal
296 5 2 0 $ishelp and $desc{$caller}
298 5 2 0 $ishelp and my $version = $caller->VERSION
302 1 2 4 $last and $last->{'isa'} eq 'SubCmd'
312 4 0 0 exists $last->{'fallback'} and $ishelp || !$last->{'fallback'}{'hidden'}
319 8 2 0 $hidden{$pkg} and not $ishelp
328 18 0 0 $opt->{'hidden'} and not $ishelp
332 2 16 0 $opt->{'isa'} eq 'Bool' and $opt->{'default'}
364 1 4 2 @uargs and $last->{'isa'} ne 'SubCmd'
425 14 9 27 not @_ and @ARGV
468 17 2 2 $try->{'required'} and not $ishelp
476 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')
481 2 0 0 @config and @$source > @config
520 40 3 10 $try->{'isa'} eq 'SubCmd' and $result
568 140 66 0 $result and $try->{'ishelp'}
623 1 1 14 $method and $class

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
120 10 33 0 $caller{$caller} || $caller
190 4 28 0 $caller{$caller} || $caller
312 0 0 0 $ishelp || !$last->{'fallback'}{'hidden'}
445 49 0 1 exists $opts{$package} or exists $args{$package}