Condition Coverage

lib/DBIx/Class/Tree/NestedSet.pm
Criterion Covered Total %
condition 21 29 72.4


and 3 conditions

line !l l&&!r l&&r condition
300 0 8 5 $self->$root == $node->$root and $self->$left >= $node->$left
8 3 2 $self->$root == $node->$root and $self->$left >= $node->$left and $self->$right <= $node->$right
355 1 9 3 $self->$root == $node->$root and $self->is_root
10 1 2 $self->$root == $node->$root and $self->is_root and $self->$left + $arg_left > $node_root->$right
900 0 0 0 $descendant->$left > $self->$left and $descendant->$right < $self->$right
919 0 0 0 $self->$left > $ancestor->$left and $self->$right < $ancestor->$right

or 2 conditions

line l !l condition
230 24 551 $cond ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
231 284 96 195 $rel eq 'descendants' or $rel eq 'children'
26 14 155 $rel eq 'ancestors' or $rel eq 'parent'
425 0 4 12 $self->is_root or $old_right + 1 == $root_node->$right