Branch Coverage

blib/lib/Script/Toolbox/Util/Menues.pm
Criterion Covered Total %
branch 0 76 0.0


line true false branch
43 0 0 if ref $newDef ne 'HASH'
53 0 0 unless defined $k->{'header'}
56 0 0 $s ne '' ? :
64 0 0 unless defined $k->{'footer'}
67 0 0 $s ne '' ? :
78 0 0 unless defined $opt->{'jump'}
79 0 0 if ref \$opt->{'jump'} ne 'SCALAR'
94 0 0 unless defined $k->{'label'}
107 0 0 if ref $newDef ne 'HASH'
135 0 0 if (defined $name)
148 0 0 if defined $ah->{'autohead'}
157 0 0 if (defined $name)
175 0 0 if not defined $h and defined $autoHead
176 0 0 if defined $h
198 0 0 if defined $foot
208 0 0 unless defined $self->{'def'}{$name}{'opts'}
221 0 0 if defined $s
222 0 0 if defined $s
238 0 0 unless defined $$self
239 0 0 if (ref $$self eq 'ARRAY')
240 0 0 if ref $$self->[0] ne 'Script::Toolbox::Util::Menues'
244 0 0 if defined $$self->{'def'}{$$name}
260 0 0 unless &validateParams(\$self, \$name)
261 0 0 unless defined $cnt
262 0 0 unless $cnt =~ /^[-]?\d+$/
263 0 0 if $cnt == 0
270 0 0 if $o == 0
351 0 0 unless defined $pattern
352 0 0 unless defined $search
353 0 0 unless defined $return
354 0 0 unless defined $self->{'def'}{$name}{'opts'}
355 0 0 unless $search =~ /(number|value|label)/
356 0 0 unless $return =~ /(number|value|label)/
370 0 0 if &_invalidParam($self, $name, $pattern, $search, $return)
376 0 0 if ($search eq 'number') { }
377 0 0 if $i =~ /$pattern/
380 0 0 unless defined $l->{$search}
381 0 0 unless $l->{$search} =~ /$pattern/