Condition Coverage

blib/lib/Tree/Nary.pm
Criterion Covered Total %
condition 32 87 36.7


and 3 conditions

line !l l&&!r l&&r condition
183 1 1 1 defined $$descendant{'parent'} and $$descendant{'parent'} == $node
314 0 4 0 defined $$child{'parent'} and not $$child{'parent'} == $node
504 9 1 12 $n-- > 0 and defined $node
652 7 7 0 $flags & $Tree::Nary::TRAVERSE_LEAFS and &$funcref($node, $argref)
656 0 8 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($node, $argref)
684 0 0 0 $flags & $Tree::Nary::TRAVERSE_LEAFS and &$funcref($node, $argref)
688 0 0 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($node, $argref)
722 0 7 0 $flags & $Tree::Nary::TRAVERSE_LEAFS and &$funcref($node, $argref)
740 0 4 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($node, $argref)
755 0 0 0 $flags & $Tree::Nary::TRAVERSE_LEAFS and &$funcref($node, $argref)
776 0 0 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($node, $argref)
791 0 12 1 $flags & $Tree::Nary::TRAVERSE_LEAFS and &$funcref($node, $argref)
803 3 4 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($node, $argref)
826 0 0 0 $flags & $Tree::Nary::TRAVERSE_LEAFS and &$funcref($node, $argref)
829 0 0 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($node, $argref)
841 0 0 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($node, $argref)
878 7 28 0 $flags & $Tree::Nary::TRAVERSE_LEAFS and &$funcref($current, $argref)
879 3 12 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($current, $argref)
896 35 15 0 defined $$current{'children'} and $self->_traverse_children($current, $flags, $funcref, $argref)
918 0 0 0 $flags & $Tree::Nary::TRAVERSE_LEAFS and &$funcref($current, $argref)
920 0 0 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($current, $argref)
943 0 0 0 defined $$current{'children'} and $self->_depth_traverse_children($current, $flags, $depth, $funcref, $argref)
1005 1 4 0 $flags & $Tree::Nary::TRAVERSE_NON_LEAFS and &$funcref($root, $argref)
1208 2 4 0 $self->is_leaf($t1) and not $self->is_leaf($t2)
4 2 0 not $self->is_leaf($t1) and $self->is_leaf($t2)

or 3 conditions

line l !l&&r !l&&!r condition
64 0 4768 0 ref $that || $that
158 0 0 2077 defined $$node{'parent'} || defined $$node{'prev'} || defined $$node{'next'}
969 10 0 0 $depth == -1 or $depth > 0
1208 0 0 6 $self->is_leaf($t1) and not $self->is_leaf($t2) or not $self->is_leaf($t1) and $self->is_leaf($t2)