Condition Coverage

blib/lib/App/Rad/Command.pm
Criterion Covered Total %
condition 9 48 18.7


and 3 conditions

line !l l&&!r l&&r condition
84 1 0 0 $value eq 'condition' and !$opt_ref || $opt_ref ne 'CODE'
0 1 0 $value eq 'help' and $opt_ref
0 0 0 $opt_ref and $opt_ref ne 'ARRAY'
1 0 0 $value eq 'aliases' and ($opt_ref and $opt_ref ne 'ARRAY')
0 0 0 $opt_ref and $opt_ref ne 'ARRAY'
1 0 0 $value eq 'to_stash' and ($opt_ref and $opt_ref ne 'ARRAY')
1 0 0 $value eq 'error_msg' and $opt_ref
0 0 0 $opt_ref and $opt_ref ne 'ARRAY'
1 0 0 $value eq 'conflicts_with' and ($opt_ref and $opt_ref ne 'ARRAY')
174 0 0 0 $opt->{'type'} and not $TYPES{$opt->{'type'}}($opt_val)
179 0 0 0 $opt->{'condition'} and not $opt->{'condition'}->($opt_val)
218 0 0 0 $alias and $opt eq $alias

or 2 conditions

line l !l condition
23 0 2 $options->{'name'} || ''
0 2 $options->{'code'} || sub { }
146 0 0 $self->_get_option_name($opt_name) || die("invalid option '${opt_name}'\n")

or 3 conditions

line l !l&&r !l&&!r condition
84 0 0 0 !$opt_ref || $opt_ref ne 'CODE'
86 0 2 0 $opt_ref or $TYPES{lc $options->{$value}}