Branch Coverage

blib/lib/Netscape/Bookmarks.pm
Criterion Covered Total %
branch 36 54 66.6


line true false branch
129 0 4 unless ($file)
134 0 4 unless -e $file or ref $file
150 2 4 if defined $value
182 458 866 if ($tag eq 'a') { }
78 788 elsif ($tag eq 'h3' or $tag eq 'h1') { }
4 784 elsif ($tag eq 'hr') { }
2 782 elsif ($tag eq 'meta') { }
204 4 1258 if ($Netscape::Bookmarks::text_flag) { }
205 4 0 if (not defined $Netscape::Bookmarks::flag) { }
0 0 elsif ($Netscape::Bookmarks::flag eq 'h1' or $Netscape::Bookmarks::flag eq 'h3') { }
0 0 elsif ($Netscape::Bookmarks::flag eq 'a' and not exists $Netscape::Bookmarks::link_data{'aliasof'}) { }
0 0 elsif ($Netscape::Bookmarks::flag eq 'dd') { }
218 0 0 if ($Netscape::Bookmarks::state eq 'category') { }
0 0 elsif ($Netscape::Bookmarks::state eq 'anchor') { }
228 544 714 if (not defined $Netscape::Bookmarks::flag) { }
4 710 elsif ($Netscape::Bookmarks::flag eq 'h1') { }
74 636 elsif ($Netscape::Bookmarks::flag eq 'h3') { }
456 180 elsif ($Netscape::Bookmarks::flag eq 'a' and not exists $Netscape::Bookmarks::link_data{'aliasof'}) { }
2 178 elsif ($Netscape::Bookmarks::flag eq 'a' and defined $Netscape::Bookmarks::link_data{'aliasof'}) { }
12 166 elsif ($Netscape::Bookmarks::flag eq 'dd') { }
279 0 456 unless (ref $item)
280 0 0 if $Netscape::Bookmarks::DEBUG
284 2 454 if (defined $Netscape::Bookmarks::link_data{'aliasid'})
294 0 2 unless (ref $item)
302 10 2 if ($Netscape::Bookmarks::state eq 'category') { }
2 0 elsif ($Netscape::Bookmarks::state eq 'anchor') { }
318 78 540 if $tag eq 'dl'