Branch Coverage

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


line true false branch
125 0 4 unless ($file)
130 0 4 unless -e $file or ref $file
146 2 4 if defined $value
178 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') { }
200 4 1258 if ($Netscape::Bookmarks::text_flag) { }
201 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') { }
214 0 0 if ($Netscape::Bookmarks::state eq 'category') { }
0 0 elsif ($Netscape::Bookmarks::state eq 'anchor') { }
224 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') { }
275 0 456 unless (ref $item)
276 0 0 if $Netscape::Bookmarks::DEBUG
280 2 454 if (defined $Netscape::Bookmarks::link_data{'aliasid'})
290 0 2 unless (ref $item)
298 10 2 if ($Netscape::Bookmarks::state eq 'category') { }
2 0 elsif ($Netscape::Bookmarks::state eq 'anchor') { }
314 78 540 if $tag eq 'dl'