Branch Coverage

blib/lib/Treex/Core/Node/Aligned.pm
Criterion Covered Total %
branch 27 40 67.5


line true false branch
13 1 24 unless (defined $new_filter->{'directed'})
26 0 0 if defined $filter->{'language'} and defined $filter->{'selector'} and $filter->{'language'} eq $self->language and $filter->{'selector'} eq $self->selector
34 18 7 $aligned_to ? :
35 18 7 $aligned_to_types ? :
40 12 13 unless ($directed)
53 15 10 if (%$filter)
84 15 4 if not defined $lang or $lang eq $nodes->[$_]->language
95 5 13 if ($type_re =~ /^!(.*)/) { }
96 2 3 if $type =~ /$1/
99 12 1 if $type =~ /$type_re/
109 4 11 unless defined $rel_types
123 29 7 if ($links_rf)
139 11 0 if (defined $nodes)
145 0 11 if ($both_dir)
147 0 0 if (defined $nodes)
160 0 1 if ($type_regex =~ /^!/)
200 0 0 if ($node->is_directed_aligned_to($nodes->[$i], {'rel_types', ['^' . $types->[$i] . '$']})) { }
213 2 0 if ($links_rf)
216 5 0 unless $_->{'counterpart.rf'} ne $node->id
241 0 0 if $doc->id_is_indexed($link->{'counterpart.rf'})