Condition Coverage

blib/lib/Tree/Simple.pm
Criterion Covered Total %
condition 34 36 94.4


and 3 conditions

line !l l&&!r l&&r condition
57 5 1 3 &blessed($parent) and $parent->isa('Tree::Simple')
75 1 12 250 defined $parent and $parent eq $self->ROOT || &blessed($parent) && $parent->isa('Tree::Simple')
163 8 3 116 &blessed($tree) and $tree->isa('Tree::Simple')
252 1 1 9 &blessed($child_to_remove) and $child_to_remove->isa('Tree::Simple')
490 3 7 1 &blessed($visitor) and $visitor->isa('Tree::Simple::Visitor') || $visitor->can('visit')

or 2 conditions

line l !l condition
469 30 2 ref $post eq 'CODE' or die 'Incorrect Object Type : post traversal function is not a function'
472 173 18 &$func($child) || ''
477 1 189 $child->traverse($func, $post) || ''

or 3 conditions

line l !l&&r !l&&!r condition
32 36 100 0 ref $_class || $_class
75 143 116 3 $parent eq $self->ROOT || &blessed($parent) && $parent->isa('Tree::Simple')
369 0 152 222 !defined($self->{'_parent'}) || $self->{'_parent'} eq $self->ROOT
490 6 1 1 $visitor->isa('Tree::Simple::Visitor') || $visitor->can('visit')
568 2 1 3 ref $node eq 'SCALAR' or ref $node eq 'REF'