Branch Coverage

blib/lib/Treex/Core/Node/EffectiveRelations.pm
Criterion Covered Total %
branch 44 72 61.1


line true false branch
41 0 12 unless (defined $arg_ref)
44 0 12 if @_ > 2
47 9 3 if ($self->_can_apply_eff($arg_ref)) { }
71 0 10 unless (defined $arg_ref)
74 0 10 if @_ > 2
77 10 0 $self->_can_apply_eff($arg_ref) ? :
92 0 10 unless ($self->get_parent)
106 0 10 unless $node = $node->get_parent
110 0 0 unless $node = $node->get_parent
115 8 2 unless $node->is_coap_root
121 2 0 if @eff
136 0 37 unless my $parent = $self->get_parent
137 24 13 if $self->get_attr('is_member')
138 0 13 if not $arg_ref->{'dive'} or $arg_ref->{'dive'}->($self)
140 2 0 if $parent->get_attr('is_member')
141 0 0 unless $parent = $parent->get_parent
148 2 8 unless my $root = $self->_get_direct_coap_root($arg_ref)
150 0 6 unless $root = $root->_get_direct_coap_root($arg_ref)
157 11 11 if (not $arg_ref->{'dive'}) { }
11 0 elsif ($arg_ref->{'dive'} eq 'AuxCP') { }
163 2 19 $self->is_coap_root ? :
1 21 $arg_ref->{'dive'}->($self) ? :
166 19 3 unless $error
167 3 0 if $arg_ref->{'or_topological'}
180 0 0 unless $arg_ref and $arg_ref->{'ignore_incorrect_tree_structure'}
191 0 6 if ($arg_ref->{'dive'}->($node)) { }
3 3 elsif ($node->is_coap_root) { }
212 3 6 unless my $coap_root = $self->_get_direct_coap_root($arg_ref)
233 0 19 if @_ > 2
234 6 13 unless $self->is_coap_root
237 4 9 if ($dive eq 'AuxCP')
243 5 47 if (&$dive($node)) { }
5 42 elsif (not $direct_only and $node->is_coap_root) { }
271 0 0 if (defined $arg_ref->{$eff_arg})
282 0 0 if @_ > 2
283 0 0 unless (defined $arg_ref)