Condition Coverage

blib/lib/OptArgs.pm
Criterion Covered Total %
condition 61 94 64.8


and 3 conditions

line !l l&&!r l&&r condition
138 31 2 1 $params->{'ishelp'} and $params->{'isa'} ne "Bool"
211 19 2 1 defined $params->{'default'} and defined $params->{'required'}
214 18 2 1 $params->{'fallback'} and $params->{'isa'} ne "SubCmd"
217 18 1 1 defined $params->{'fallback'} and ref $params->{'fallback'} ne "HASH"
250 2 5 0 $COLOUR && $terminal
253 2 5 0 $COLOUR && $terminal
299 5 0 2 $ishelp and $desc{$caller}
301 5 2 0 $ishelp and my $version = $caller->VERSION
305 1 2 4 $last and $last->{'isa'} eq "SubCmd"
315 4 0 0 exists $last->{'fallback'} and $ishelp || !$last->{'fallback'}{'hidden'}
322 8 2 0 $hidden{$pkg} and not $ishelp
331 18 0 0 $opt->{'hidden'} and not $ishelp
335 2 16 0 $opt->{'isa'} eq "Bool" and $opt->{'default'}
340 18 0 0 $PRINT_DEFAULT and defined $opt->{'default'}
18 0 0 $PRINT_DEFAULT and defined $opt->{'default'} and not $opt->{'ishelp'}
397 1 4 2 @uargs and $last->{'isa'} ne "SubCmd"
458 14 9 27 not @_ and @ARGV
501 17 2 2 $try->{'required'} and not $ishelp
509 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')
514 2 0 0 @config and @$source > @config
553 40 3 10 $try->{'isa'} eq "SubCmd" and $result
601 140 64 2 $result and $try->{'ishelp'}
656 1 1 14 $method and $class

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
123 10 33 0 $caller{$caller} || $caller
193 4 28 0 $caller{$caller} || $caller
315 0 0 0 $ishelp || !$last->{'fallback'}{'hidden'}
352 0 0 0 $opt->{'isa'} eq "Str" or $opt->{'isa'} eq "HashRef"
0 0 0 $opt->{'isa'} eq "Str" or $opt->{'isa'} eq "HashRef" or $opt->{'isa'} eq "ArrayRef"
478 49 0 1 exists $opts{$package} or exists $args{$package}