Branch Coverage

blib/lib/HTML/Widgets/NavMenu.pm
Criterion Covered Total %
branch 83 90 92.2


line true false branch
114 27 243 if ($self->item_matches) { }
23 220 elsif ($self->does_item_expand) { }
132 61 209 if ($self->_item_found)
137 34 27 if ($idx >= 0)
205 1 53 unless $self->current_host($args{"current_host"})
210 1 52 exists $args{'no_leading_dot'} ? :
254 1 55 if ($path_info eq '') { }
1 54 elsif ($path_info =~ m[//$]u) { }
265 2 54 if (defined $redir_path)
285 814 393 $string =~ m[/$]u ? :
330 15 451 if ($url_is_abs) { }
43 408 elsif ($host ne $self->current_host or $url_type eq 'full_abs') { }
401 7 elsif ($url_type eq 'rel') { }
6 1 elsif ($url_type eq 'site_abs') { }
400 38 315 if (exists $sub_contents->{'expand'})
410 18 20 if ($expand_val)
429 127 226 if (exists $sub_contents->{'subs'})
459 2 50 unless shift()
472 30 22 if ($branches[$i]->_num_subs) { }
480 19 10 if ($branches[$i]->_num_subs > $coords[$i] + 1)
486 3 19 if ($i == -1)
499 2 47 unless shift()
501 19 30 if (scalar @coords == 0) { }
23 7 elsif ($coords[$#coords] > 0) { }
526 45 85 unless shift()
528 19 111 if (scalar @coords == 0) { }
534 81 30 if (@coords == 1 and $coords[0] > 0)
538 0 81 if ($coords_stop)
553 45 1 unless shift()
555 21 25 if (not @coords or @coords == 1 and $coords[0] == 0) { }
585 92 1 unless ($coords)
646 52 596 unless ($self->_traversed_tree)
697 154 0 unless ($coords_stop)
699 10 144 unless (@$coords)
722 238 0 defined $node->url ? :
725 7 231 $node->url_is_abs ? :
743 0 238 $coords_stop ? :
154 84 if ($coords_stop ? scalar @$coords == 0 : scalar @$coords == 1 && $coords->[0] == 0)
758 0 154 if ($coords_stop)
788 19 6 @$coords == 1 ? :
0 25 $only_empty ? :
19 25 @$coords == 0 ? :
44 0 defined $coords ? :
831 63 113 if ($IS_TOP and $link_rel =~ /\A(?:prev|top|up)\z/msu)
837 110 66 if (defined $coords)