Branch Coverage

blib/lib/Treex/Core/Node/T.pm
Criterion Covered Total %
branch 23 64 35.9


line true false branch
24 27 56 $self->is_root ? :
31 0 47 if @_ != 1
41 2 1 $list ? :
42 0 3 $arg_ref ? :
58 0 1 $cur_ref ? :
78 0 0 unless (grep {$_ == $node;} @_)
96 0 0 unless $ref
99 0 0 if ($doc->id_is_indexed($id)) { }
107 0 0 @nodes > 0 ? :
117 4 1 if $lex_rf
123 4 0 defined $lex_anode ? :
132 0 0 if $arg_ref and $arg_ref->{'preceding_only'} || $arg_ref->{'following_only'}
155 0 0 defined $lex_anode ? :
156 0 0 unless $arg_ref
158 0 0 if $arg_ref->{'preceding_only'} or $arg_ref->{'following_only'}
166 0 5 if ($self->is_coap_root and $self->functor eq 'APPS') { }
167 0 0 $arg_ref->{'with_appos_root'} ? :
171 0 0 if (defined $par and not $par->is_root and $par->is_coap_root and $par->functor eq 'APPS' and $self->is_member)
172 0 0 $arg_ref->{'with_appos_root'} ? :
186 2 1 if ($type eq 'gram') { }
1 0 elsif ($type eq 'text') { }
216 2 1 if ($type ne 'text')
221 1 2 if ($type ne 'gram')
235 3 0 if (not $with_types and $appos_aware)
241 3 0 unless $with_types
247 0 0 defined $idx ? :
284 0 0 unless (defined $visited_nodes{$ante})
296 0 0 if (defined $par and not $par->is_root and $par->is_coap_root and $par->functor eq 'APPS' and $node->is_member)
307 0 1 if ($anaph != $self)
317 0 1 unless @antes
394 0 2 unless my $lex_anode = $self->get_lex_anode
402 0 0 unless my $source_node_id = $self->get_attr('src_tnode.rf')