Branch Coverage

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


line true false branch
26 14 807 ref $url eq 'ARRAY' ? :
52 5 403 $url eq '' ? :
62 15 395 $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 403 if ($base->_mode eq "harddisk" and $to->_is_dir)
106 308 97 if ($slash_terminated) { }
108 29 279 if (scalar @this_url == 0 and scalar @other_url == 0) { }
114 1 278 unless ($base->_is_dir)
119 266 13 if ($to->_is_dir and $base->_mode ne "harddisk")
130 72 20 if ($to->_is_dir and $base->_mode ne "harddisk" and scalar @components)