Condition Coverage

blib/lib/Getopt/Again.pm
Criterion Covered Total %
condition 36 54 66.6


and 3 conditions

line !l l&&!r l&&r condition
157 0 0 19 defined $name and not ref $name
176 22 0 0 $self->_named_params->{$name} and $self->_named_params->{$name} != $config
193 0 0 4 ref $process && reftype($process) =~ /^(REGEXP|CODE)$/
15 4 0 $process and not ref $process && reftype($process) =~ /^(REGEXP|CODE)$/
230 3 1 24 $item =~ /^(-{1,2})([^=]+)(?:=(.*))?$/ and not $no_parse
282 14 1 5 $$spec{'type'} eq 'regex' and $name =~ /$$spec{'regex'}/
319 21 7 2 $$spec{'list'} and defined $$spec{'split_on'}

or 2 conditions

line l !l condition
78 44 1 $$self{'_named_params'} ||= {}
84 7 1 $$self{'_pattern_params'} ||= []
90 22 1 $$self{'_all_params'} ||= []
157 0 0 $name || '(UNDEF)'
196 2 17 delete $params{'alias'} || []
290 6 3 $$out{$$spec{'name'}} ||= []
306 0 9 $$out{$$opt{'name'}} ||= []
342 3 1 $$self{'usage_string'} ||= q[[-short_flags] [--long_flag] [--option '...'] [--option=...] arg1, arg2]
352 77 0 $self->opt_spec($name) || die("Invalid option: $name")

or 3 conditions

line l !l&&r !l&&!r condition
122 81 0 0 $$self{'opt_cache'} ||= $self->_gen_opt_cache
140 147 1 0 $$self{'opt_cache'} ||= $self->_gen_opt_cache
188 0 2 0 $params{'regex'} || length $params{'name'} > 1
17 2 0 $type ||= $params{'regex'} || length $params{'name'} > 1 ? 'string' : 'bool'
283 4 0 1 $1 || $'