Condition Coverage

blib/lib/Smart/Options.pm
Criterion Covered Total %
condition 33 54 61.1


and 3 conditions

line !l l&&!r l&&r condition
310 4 3 1 not scalar @args and keys %{$$self{'subcmd'};}
349 6 0 1 ref $val and ref $val eq 'CODE'
359 28 2 0 $argv->{$key} and -f $argv->{$key}
407 28 0 0 $argv->{$opt} and not -f $argv->{$opt}
419 54 1 0 $argv->{'help'} and $self->{'add_help'}

or 2 conditions

line l !l condition
33 3 59 $opt{'add_help'} // 1
151 3 3 scalar keys %$demand or scalar keys %$describe
189 2 3 $argv->{$key} //= {}
268 0 0 $argv->{$option} //= {}
327 0 0 $argv->{$key} //= {}
334 1 63 $argv->{'command'} or ''
381 0 0 $argv->{$opt} //= 0
398 10 0 $argv->{$opt} //= []
404 2 0 $argv->{$opt} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
124 1 4 2 $desc ||= $self->{'describe'}{$opt}
135 0 2 6 $value ||= $self->{'default'}{$opt}
179 0 4 0 $fh //= *STDERR
258 29 0 8 $2 // $3
343 1 1 0 $argv->{$option} //= $ENV{uc $self->{'env_prefix'} . "_$env"}
350 0 1 0 $argv->{$opt} //= &$val()
353 2 4 0 $argv->{$opt} //= $val