Branch Coverage

blib/lib/Package/Configure.pm
Criterion Covered Total %
branch 37 100 37.0


line true false branch
184 3 30 if (grep {$_ eq $sub;} $self->ini->Parameters($section))
191 0 3 if ($i == 0) { }
3 0 elsif ($i == 1) { }
198 2 5 if (@val) { }
235 1 0 unless ($arg{'bootstrap'})
237 1 0 if (-f 'pkg_config.cache') { }
0 0 elsif (-f 'pkg_config.in') { }
248 0 1 unless ($ini)
259 0 1 if $self->interactive
265 1 0 if $self->ini
285 0 0 if $val =~ /^-?\d+$/
0 0 if ($type eq 'integer') { }
0 0 elsif ($type eq 'float') { }
0 0 elsif ($type eq 'string') { }
0 0 elsif ($type eq 'dir') { }
0 0 elsif ($type eq 'file') { }
286 0 0 if $val =~ /^-?\d*\.?\d*$/
288 0 0 if -d $val
289 0 0 if -f $val
316 0 0 if (not $section =~ /s$/) { }
320 0 0 unless $self->validate_type($type, $val)
330 0 0 unless $self->validate_type($type, $val)
335 0 0 if ($die)
362 0 0 unless $section =~ /^option/
378 0 0 if ($response eq '')
385 0 0 if (not $type =~ /s$/) { }
386 0 0 if (not $self->validate_type($type, $response)) { }
398 0 0 if (not $self->validate_type($type, $response)) { }
405 0 0 if ($valid == 1)
410 0 0 unless ($valid)
434 0 0 if (not $response =~ /^n/i) { }
471 2 9 if ($section eq 'option integer') { }
1 8 elsif ($section eq 'option float') { }
1 7 elsif ($section eq 'option file') { }
1 6 elsif ($section eq 'option dir') { }
1 5 elsif ($section eq 'option string') { }
1 4 elsif ($section eq 'option integers') { }
1 3 elsif ($section eq 'option floats') { }
1 2 elsif ($section eq 'option files') { }
1 1 elsif ($section eq 'option dirs') { }
1 0 elsif ($section eq 'option strings') { }
489 0 1 if ($slot{'help'})
495 0 1 if ($slot{'interactive'})
501 13 0 unless defined $slot{$k}
502 0 0 if (ref $slot{$k} eq 'ARRAY') { }
530 0 0 unless $section =~ /^option/
531 0 0 unless $self->ini->Parameters($section)
563 1 49 if defined $val
580 0 1 if defined $val
593 1 0 if $self->ini