Condition Coverage

blib/lib/RapidApp/Module/Tree.pm
Criterion Covered Total %
condition 14 58 24.1


and 3 conditions

line !l l&&!r l&&r condition
248 1 0 0 $n->{'expand'} and not exists $n->{'expanded'}
250 1 0 0 exists $n->{'allowChildren'} and not jstrue($n->{'allowChildren'})
252 1 0 0 jstrue($n->{'leaf'}) and not exists $n->{'loaded'}
297 0 1 0 $n->{'id'} and $seen_id{$n->{'id'}}++
312 12 0 0 $self->role_checker && $node->{'require_role'} && !$self->role_checker->($self->c, $_->{'require_role'})
339 1 0 0 exists $n->{'allowChildren'} and not jstrue($n->{'allowChildren'})
355 0 1 0 $self->fetch_nodes_deep || jstrue($n->{'expanded'}) and not exists $n->{'children'}
1 0 0 $self->fetch_nodes_deep || jstrue($n->{'expanded'}) and not exists $n->{'children'} and not jstrue($n->{'loaded'})
1 0 0 $self->fetch_nodes_deep || jstrue($n->{'expanded'}) and not exists $n->{'children'} and not jstrue($n->{'loaded'}) and $DEEP_FETCH_DEPTH < $self->max_recursive_fetch_depth
362 0 0 0 $self->default_expanded and not exists $n->{'expanded'}
430 0 0 0 ref $node eq 'ARRAY' and ref $expanded eq 'ARRAY'
0 0 0 ref $node eq 'ARRAY' and ref $expanded eq 'ARRAY' and scalar @$node == scalar @$expanded
480 0 0 0 ref $data eq 'HASH' and $data->{'child'}

or 2 conditions

line l !l condition
318 25 0 ref $nodes || ''
13 0 ref $nodes || ''

or 3 conditions

line l !l&&r !l&&!r condition
268 0 1 0 shift() || $self->c->req->params->{'node'}
339 0 0 1 jstrue($n->{'leaf'}) or exists $n->{'allowChildren'} and not jstrue($n->{'allowChildren'})
355 1 0 0 $self->fetch_nodes_deep || jstrue($n->{'expanded'})
429 0 0 0 ref $node eq 'ARRAY' or ref $expanded eq 'ARRAY'
453 0 0 0 $expanded eq '0' or $expanded eq 'false'