Branch Coverage

blib/lib/Treex/Core/Node/Ordered.pm
Criterion Covered Total %
branch 32 116 27.5


line true false branch
19 0 2 if @_ != 2
24 0 0 if @_ != 2
35 0 0 if @_ != 1
38 0 0 unless defined $my_ord
44 0 0 if $ord <= $my_ord
45 0 0 if defined $next_ord and $ord > $next_ord
52 0 0 if @_ != 1
55 0 0 unless defined $my_ord
61 0 0 if $ord >= $my_ord
62 0 0 if defined $prev_ord and $ord < $prev_ord
69 0 4 if @_ != 2
73 2 2 if ($self->ord > $other->ord)
81 24 8 if $_->ord > $self->ord
88 0 10 if @_ != 1
90 0 10 if $self->get_parent
107 0 22 if @_ < 2 or @_ > 3
108 0 22 unless $reference_node
109 0 22 if $reference_node->get_root != $self->get_root
114 0 22 if not $arg_ref->{'without_children'} and $reference_node->is_descendant_of($self)
116 0 22 unless defined $arg_ref
118 0 22 if ref $arg_ref ne 'HASH'
122 0 22 if defined $unknown
128 0 16 if $self == $reference_node
130 0 16 if $arg_ref
136 0 6 if $self == $reference_node
138 0 6 if $arg_ref
147 0 0 if ($arg_ref->{'without_children'}) { }
153 0 0 unless defined $last_node
154 0 0 if $arg_ref
163 0 0 if ($arg_ref->{'without_children'}) { }
169 0 0 unless defined $first_node
170 0 0 if $arg_ref
184 22 124 unless (defined $d->ord)
193 0 22 if ($without_children) { }
212 22 124 if $is_moving{$node}
217 88 36 if ($after)
223 16 108 if ($node == $reference_node)
232 36 88 unless ($after)
239 6 16 unless ($nodes_moved)
256 0 0 if not $parent or $parent->is_root
261 0 0 if ($ordA > $ordB)
265 0 0 if $distance == 1
268 0 0 if $_->ord > $ordA
281 0 0 if scalar @_ != 1
285 0 0 unless $parent
293 0 0 if ($pord > $nord) { }
306 0 0 if $_->ord > $xord
310 0 0 unless ($pdesc{$b})
329 0 0 if scalar @_ != 1
347 0 0 if $node == $self
350 0 0 if $parent->is_root
353 0 0 if ($i < $is and $j > $is or $j < $is and $i > $is)
355 0 0 unless ($self->is_descendant_of($parent))
357 0 0 $i < $j ? :
0 0 $j > $i ? :
377 0 0 if (not $nodes[$i]->is_descendant_of($nprj->{'parent'})) { }
389 0 0 if (not $nodes[$i]->is_descendant_of($nprj->{'parent'})) { }
405 0 0 if (scalar @gaps >= 1) { }