Condition Coverage

blib/lib/Getopt/Again.pm
Criterion Covered Total %
condition 35 54 64.8


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
195 0 4 0 $type && ($type eq 'REGEXP' || $type eq 'CODE')
236 3 1 24 $item =~ /^(-{1,2})([^=]+)(?:=(.*))?$/ and not $no_parse
288 14 1 5 $$spec{'type'} eq 'regex' and $name =~ /$$spec{'regex'}/
325 23 8 3 $$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)'
202 2 17 delete $params{'alias'} || []
296 6 3 $$out{$$spec{'name'}} ||= []
312 0 9 $$out{$$opt{'name'}} ||= []
348 3 1 $$self{'usage_string'} ||= q[[-short_flags] [--long_flag] [--option '...'] [--option=...] arg1, arg2]
358 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 152 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'
196 4 0 0 $ok ||= $process =~ /^\(\?/
289 4 0 1 $1 || $'