Condition Coverage

blib/lib/Tree/BPTree.pm
Criterion Covered Total %
condition 33 42 78.5


and 3 conditions

line !l l&&!r l&&r condition
260 24696 1632 660 (@$self + 1) / 2 == $n and defined $result
363 125 39 28 $v > 0 and (@{$$self[($v - 1) * 2];} + 1) / 2 + (@{$$self[$v * 2];} + 1) / 2 <= $n
24 58 82 $v < (@$self + 1) / 2 - 1 and (@{$$self[$v * 2];} + 1) / 2 + (@{$$self[($v + 1) * 2];} + 1) / 2 <= $n
598 0 126384 111241 defined $current and not $current->isa('Tree::BPTree::Leaf')
654 5940 31500 25344 defined $$leaf[$k * 2 + 1] and &$cmp($$leaf[$k * 2 + 1], $key) == 0
699 0 0 5232 defined $$leaf[$i * 2 + 1] and &$cmp($$leaf[$i * 2 + 1], $key) == 0
724 139 2921 60 not $$self{-'root'}->isa('Tree::BPTree::Leaf') and $values == 1
876 0 0 2112 defined $$self{-'node'} and $$self{-'last'}{-'node'} == $$self{-'node'}
887 875 2185 60 not $$self{-'tree'}{-'root'}->isa('Tree::BPTree::Leaf') and $values == 1
892 48 268 2804 defined $$self{-'node'} and $$self{-'last'}{-'node'} == $$self{-'node'}
944 12288 97 784800 defined $$cursor{-'node'} and @{$$cursor{-'node'};} > 1
968 12288 49257 257 defined $next_node and @$next_node == 1

or 3 conditions

line l !l&&r !l&&!r condition
179 0 8329 0 ref $class || $class
590 0 577 0 ref $class || $class