Branch Coverage

lib/HTML/Template/Menu.pm
Criterion Covered Total %
branch 21 30 70.0


line true false branch
28 0 4 unless defined $val
35 0 4 unless defined $val
61 0 21 unless defined $arg1
65 6 15 if (__is_runmode_name($arg1)) { }
15 0 elsif (__is_url($arg1)) { }
68 6 0 unless defined $label
71 14 1 unless defined $label
77 0 21 unless defined $label
83 1 20 unless $self->_add_menu_item($arg1, $url, $label, $icon)
93 1 20 if (exists $$hash{$arg1})
159 30 6 unless $val =~ /^[a-z0-9_]+$/i
165 0 15 if __is_runmode_name($val)
172 2 12 if ($val eq '/')
186 0 2 unless my $tmpl = 'HTML::Template'->new('die_on_bad_params', 0, 'scalarref', \$HTML::Template::Menu::DEFAULT_TMPL)
206 0 2 unless defined $val