Branch Coverage

blib/lib/HTML/Widgets/NavMenu/Url.pm
Criterion Covered Total %
branch 26 26 100.0


line true false branch
26 14 777 ref $url eq 'ARRAY' ? :
52 5 388 $url eq '' ? :
62 15 380 $no_leading_dot ? :
80 38 24 unless (@this_url or @other_url)
82 1 37 if (!$base->_is_dir ne !$to->_is_dir)
86 4 33 unless ($base->_is_dir)
88 3 1 if (scalar @this_url_bak) { }
99 2 388 if ($base->_mode eq "harddisk" and $to->_is_dir)
106 299 91 if ($slash_terminated) { }
108 29 270 if (scalar @this_url == 0 and scalar @other_url == 0) { }
114 1 269 unless ($base->_is_dir)
119 257 13 if ($to->_is_dir and $base->_mode ne "harddisk")
130 66 20 if ($to->_is_dir and $base->_mode ne "harddisk" and scalar @components)