Branch Coverage

blib/lib/App/Getconf/View.pm
Criterion Covered Total %
branch 10 52 19.2


line true false branch
137 4 4 unless $$self{'options'}{$o}
139 0 4 if defined $type and $$self{'options'}{$o}->type ne $type
141 0 4 if defined $storage and $$self{'options'}{$o}->storage ne $storage
143 4 0 if (exists $$self{'options'}{$o})
148 0 4 unless $$self{'options'}{$optname}
149 0 4 if defined $type and $$self{'options'}{$optname}->type ne $type
150 0 4 if defined $storage and $$self{'options'}{$optname}->storage ne $storage
174 8 0 $key ? :
187 16 0 if (exists $$self{'options'}{$optname})
216 0 0 unless ($opt)
220 0 0 if ($opt->type ne $type)
245 0 0 if ($opt->storage ne 'scalar')
250 0 0 $value ? :
0 0 if $type eq 'bool'
274 0 0 if ($opt->storage ne 'array')
279 0 0 unless $value
301 0 0 if ($opt->storage ne 'hash')
308 0 0 if (wantarray) { }
309 0 0 unless $value
364 0 0 if ($optname =~ /^(get|top)_(flag|bool|int|float|string)(_(array|hash))?$/)
370 0 0 if ($lookup eq 'get')
372 0 0 unless ($real_name)
379 0 0 if (not $storage) { }
0 0 elsif ($storage eq 'array') { }
0 0 elsif ($storage eq 'hash') { }
388 0 0 if ($optname =~ /^(set|get|top)_/)