Condition Coverage

blib/lib/TreePath.pm
Criterion Covered Total %
condition 31 38 81.5


and 3 conditions

line !l l&&!r l&&r condition
205 13 27 0 $self->_backend and $self->_sync
215 4 11 0 $self->_backend and $self->_sync
227 22 27 0 $self->_backend and $self->_sync
239 35 77 9 defined $self->config && defined $self->config->{'rules'}
287 20 0 23 $$child{$self->_search_field} eq $$node{$self->_search_field} and $$child{'parent'} eq $$node{'parent'}
364 47 0 167 defined $$tree{$id}{$1} and ref $$tree{$id}{$1}
531 4 106 5 not $position and defined $$node{$self->_position_field}
558 7 2 101 defined $parent and $parent
569 0 81 11 defined ${$$parent{$key_children};}[0] and ${$$parent{$key_children};}[0]{$self->_position_field}

or 2 conditions

line l !l condition
466 52 19 $args ||= {}

or 3 conditions

line l !l&&r !l&&!r condition
239 112 1 8 not defined $self->config && defined $self->config->{'rules'} or $$node{'id'} == 1
263 23 18 37 not defined $$child{$self->_position_field} or $$child{$self->_position_field} != $n
395 5 0 20 wantarray or $$results[0]