blib/lib/Tree/Simple.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 27 | 32 | 84.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
57 | 5 | 1 | 3 | &blessed($parent) and $parent->isa('Tree::Simple') |
75 | 1 | 262 | 0 | 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') |
484 | 3 | 8 | 0 | &blessed($visitor) and $visitor->isa('Tree::Simple::Visitor') || $visitor->can('visit') |
line | l | !l | condition |
---|---|---|---|
469 | 21 | 2 | ref $post eq 'CODE' or die 'Incorrect Object Type : post traversal function is not a function' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
32 | 36 | 100 | 0 | ref $_class || $_class |
75 | 143 | 0 | 119 | $parent eq $self->ROOT || &blessed($parent) && $parent->isa('Tree::Simple') |
369 | 0 | 152 | 222 | !defined($self->{'_parent'}) || $self->{'_parent'} eq $self->ROOT |
484 | 6 | 1 | 1 | $visitor->isa('Tree::Simple::Visitor') || $visitor->can('visit') |
562 | 2 | 1 | 3 | ref $node eq 'SCALAR' or ref $node eq 'REF' |