Branch Coverage

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


line true false branch
126 0 4 unless ($file)
131 0 4 unless -e $file or ref $file
147 2 4 if defined $value
179 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') { }
201 4 1258 if ($Netscape::Bookmarks::text_flag) { }
202 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') { }
215 0 0 if ($Netscape::Bookmarks::state eq 'category') { }
0 0 elsif ($Netscape::Bookmarks::state eq 'anchor') { }
225 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') { }
276 0 456 unless (ref $item)
277 0 0 if $Netscape::Bookmarks::DEBUG
281 2 454 if (defined $Netscape::Bookmarks::link_data{'aliasid'})
291 0 2 unless (ref $item)
299 10 2 if ($Netscape::Bookmarks::state eq 'category') { }
2 0 elsif ($Netscape::Bookmarks::state eq 'anchor') { }
315 78 540 if $tag eq 'dl'