Branch Coverage

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


line true false branch
98 8 70 unless $param->{'folded'} == 0
99 2 76 if $param->{'personal_toolbar_folder'}
101 12 66 unless (exists $Netscape::Bookmarks::Category::IDS{$param->{'id'}} or $param->{'id'} =~ /\D/)
107 0 78 if (defined $param->{'add_date'} and $param->{'add_date'} =~ /\D/)
128 0 41 if defined $value
146 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'
171 0 0 if $_ ne $thingy
198 0 39 if (defined $_[0])
231 10 39 if (defined $_[0])
250 4 33 $self->{'folded'} ? :
304 44 0 if (wantarray) { }
359 4 33 $self->folded ? :
367 4 33 defined $desc && $desc ne '' ? :
369 4 33 $folded ? :
370 7 30 $add_date ? :
371 14 23 $last_modified ? :
372 1 36 $personal_toolbar_folder ? :
374 33 4 $id =~ /\D/ ? :
379 37 0 if $attr
401 0 0 unless (ref $sub eq 'CODE')
412 0 0 if ($element->isa('Netscape::Bookmarks::Category')) { }
447 0 5 unless ($visitor->can('visit'))
459 4 12 if ($element->isa('Netscape::Bookmarks::Category')) { }
507 0 0 if (defined $sub and not ref $sub eq 'CODE') { }
0 0 elsif (not defined $sub) { }
539 1 1 $self->mozilla ? :
553 1 1 unless $self->mozilla and $desc eq "\n"
576 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') { }
580 33 4 if ($self->mozilla) { }