Branch Coverage

blib/lib/Netscape/Bookmarks/Category.pm
Criterion Covered Total %
branch 44 62 70.9


line true false branch
95 8 70 unless $param->{'folded'} == 0
96 2 76 if $param->{'personal_toolbar_folder'}
98 12 66 unless (exists $Netscape::Bookmarks::Category::IDS{$param->{'id'}} or $param->{'id'} =~ /\D/)
104 0 78 if (defined $param->{'add_date'} and $param->{'add_date'} =~ /\D/)
125 0 41 if defined $value
143 0 6 unless ref $thingy eq 'Netscape::Bookmarks::Link' or ref $thingy eq 'Netscape::Bookmarks::Category' or ref $thingy eq 'Netscape::Bookmarks::Separator' or ref $thingy eq 'Netscape::Bookmarks::Alias'
168 0 0 if $_ ne $thingy
195 0 39 if (defined $_[0])
228 10 39 if (defined $_[0])
247 4 33 $self->{'folded'} ? :
301 44 0 if (wantarray) { }
356 4 33 $self->folded ? :
364 4 33 defined $desc && $desc ne '' ? :
366 4 33 $folded ? :
367 7 30 $add_date ? :
368 14 23 $last_modified ? :
369 1 36 $personal_toolbar_folder ? :
371 33 4 $id =~ /\D/ ? :
376 37 0 if $attr
398 0 0 unless (ref $sub eq 'CODE')
409 0 0 if ($element->isa('Netscape::Bookmarks::Category')) { }
444 0 5 unless ($visitor->can('visit'))
456 4 12 if ($element->isa('Netscape::Bookmarks::Category')) { }
504 0 0 if (defined $sub and not ref $sub eq 'CODE') { }
0 0 elsif (not defined $sub) { }
536 1 1 $self->mozilla ? :
550 1 1 unless $self->mozilla and $desc eq "\n"
573 37 231 if (ref $obj eq 'Netscape::Bookmarks::Category') { }
229 2 elsif (ref $obj eq 'Netscape::Bookmarks::Link' or ref $obj eq 'Netscape::Bookmarks::Alias') { }
2 0 elsif (ref $obj eq 'Netscape::Bookmarks::Separator') { }
577 33 4 if ($self->mozilla) { }