Branch Coverage

blib/lib/HTML/Widgets/NavMenu.pm
Criterion Covered Total %
branch 83 88 94.3


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 796 366 $string =~ m[/$]u ? :
330 15 432 if ($url_is_abs) { }
39 393 elsif ($host ne $self->current_host or $url_type eq 'full_abs') { }
386 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 577 unless ($self->_traversed_tree)
697 135 0 unless ($coords_stop)
699 10 125 unless (@$coords)
722 219 0 defined $node->url ? :
725 7 212 $node->url_is_abs ? :
743 0 219 $coords_stop ? :
135 84 if ($coords_stop ? scalar @$coords == 0 : scalar @$coords == 1 && $coords->[0] == 0)
758 0 135 if ($coords_stop)
788 97 24 @$coords == 1 ? :
80 121 @$coords == 0 ? :
201 59 defined $coords ? :
827 82 94 if ($self->_is_top_coords($self->_current_coords) and $self->_is_top_coords($coords))
832 91 85 if (defined $coords)