Branch Coverage

blib/lib/Getopt/Again.pm
Criterion Covered Total %
branch 70 82 85.3


line true false branch
69 0 1 unless $self->can($i)
107 7 12 if ($seen{$f}++) { }
125 1539 810 if ($key eq $$opt{'name'}) { }
143 148 5 if $config
146 4 5 unless $opt =~ /$$config{'regex'}/
157 0 19 unless defined $name and not ref $name
162 17 2 @params > 1 ? :
166 0 19 unless reftype $alias eq 'ARRAY'
171 3 16 if ($$config{'regex'})
176 0 22 if $self->_named_params->{$name} and $self->_named_params->{$name} != $config
188 2 0 $params{'regex'} || length $params{'name'} > 1 ? :
193 4 15 if ($process)
198 0 4 unless $process
203 1 18 unless ref $alias
204 0 19 unless reftype $alias eq 'ARRAY'
209 0 32 unless $VALID_FIELDS{$field}
231 1 28 if ($item eq '--')
236 24 4 if ($item =~ /^(-{1,2})([^=]+)(?:=(.*))?$/ and not $no_parse) { }
240 3 21 if ($val)
246 22 2 if ($dash > 1) { }
274 24 0 if (ref $set) { }
282 0 24 unless $spec
284 4 20 if ($$spec{'type'} eq 'bool') { }
285 3 1 !$$spec{'default'} ? :
288 5 15 if ($$spec{'type'} eq 'regex' and $name =~ /$$spec{'regex'}/) { }
12 3 elsif (not defined $val) { }
295 9 11 if ($$spec{'list'}) { }
310 16 41 if defined $$out{$$opt{'name'}}
312 9 32 if $$opt{'list'}
322 18 34 unless defined $$out{$opt}
325 3 31 if $$spec{'list'} and defined $$spec{'split_on'}
328 9 25 if ($$spec{'process'})
330 7 2 if ($type eq 'CODE') { }
335 0 2 $$spec{'list'} ? :
337 1 1 if $item =~ /$$spec{'process'}/
347 1 3 if @_
361 85 33 length $alias > 1 ? :
363 12 65 if ($$opt{'regex'})
366 4 73 if $$opt{'description'}
390 0 1 unless $bool
396 2 1 unless $_