Branch Coverage

blib/lib/Script/Toolbox/Util/Menus.pm
Criterion Covered Total %
branch 0 98 0.0


line true false branch
40 0 0 if ref $newDef ne 'HASH'
50 0 0 unless defined $k->{'header'}
53 0 0 $s ne '' ? :
61 0 0 unless defined $k->{'footer'}
64 0 0 $s ne '' ? :
75 0 0 unless defined $opt->{'jump'}
76 0 0 if ref \$opt->{'jump'} ne 'SCALAR'
91 0 0 unless defined $k->{'label'}
104 0 0 if ref $newDef ne 'HASH'
132 0 0 if (defined $name)
145 0 0 if defined $ah->{'autohead'}
154 0 0 if (defined $name)
172 0 0 if not defined $h and defined $autoHead
173 0 0 if defined $h
195 0 0 if defined $foot
205 0 0 unless defined $self->{'def'}{$name}{'opts'}
218 0 0 if defined $s
219 0 0 if defined $s
235 0 0 unless defined $$self
236 0 0 if (ref $$self eq 'ARRAY')
237 0 0 if ref $$self->[0] ne 'Script::Toolbox::Util::Menus'
241 0 0 if defined $$self->{'def'}{$$name}
255 0 0 unless $opt->{'readOnly'}
260 0 0 if ($d and $v) { }
0 0 elsif ($d) { }
0 0 elsif ($v) { }
276 0 0 unless &validateParams(\$self, \$name)
277 0 0 unless defined $cnt
278 0 0 unless $cnt =~ /^[-]?\d+$/
279 0 0 if $cnt == 0
287 0 0 if $self->{'_cnt'} < 0
288 0 0 if $o == 0
309 0 0 unless defined $self->{'def'}{$name}
360 0 0 if (not defined $newRo) { }
0 0 elsif ($newRo =~ /(0|false)/i) { }
409 0 0 unless defined $pattern
410 0 0 unless defined $search
411 0 0 unless defined $return
412 0 0 unless defined $self->{'def'}{$name}{'opts'}
413 0 0 unless $search =~ /(number|value|label)/
414 0 0 unless $return =~ /(number|value|label)/
428 0 0 if &_invalidParam($self, $name, $pattern, $search, $return)
434 0 0 if ($search eq 'number') { }
435 0 0 if $i =~ /$pattern/
438 0 0 unless defined $l->{$search}
439 0 0 unless $l->{$search} =~ /$pattern/
458 0 0 unless defined $v
477 0 0 unless defined $v
495 0 0 unless defined $v