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
308 4 3 1 not scalar @args and keys %{$$self{'subcmd'};}
347 6 0 1 ref $val and ref $val eq 'CODE'
357 28 2 0 $argv->{$key} and -f $argv->{$key}
405 27 0 0 $argv->{$opt} and not -f $argv->{$opt}
417 54 1 0 $argv->{'help'} and $self->{'add_help'}

or 2 conditions

line l !l condition
33 3 59 $opt{'add_help'} // 1
149 3 3 scalar keys %$demand or scalar keys %$describe
187 2 3 $argv->{$key} //= {}
266 0 0 $argv->{$option} //= {}
325 0 0 $argv->{$key} //= {}
332 1 63 $argv->{'command'} or ''
379 0 0 $argv->{$opt} //= 0
396 10 0 $argv->{$opt} //= []
402 2 0 $argv->{$opt} //= {}

or 3 conditions

line l !l&&r !l&&!r condition
122 1 4 2 $desc ||= $self->{'describe'}{$opt}
133 0 2 6 $value ||= $self->{'default'}{$opt}
177 0 4 0 $fh //= *STDERR
256 29 0 8 $2 // $3
341 1 1 0 $argv->{$option} //= $ENV{uc $self->{'env_prefix'} . "_$env"}
348 0 1 0 $argv->{$opt} //= &$val()
351 2 4 0 $argv->{$opt} //= $val