Branch Coverage

lib/BalanceOfPower/Relations/RelPack.pm
Criterion Covered Total %
branch 41 72 56.9


line true false branch
41 1630 1527 if (exists $self->links_grid->{$node1}{$node2}) { }
57 244 0 if (not $self->exists_link($node1, $node2)) { }
90 2 0 if ($k)
120 14 0 if (not &$query($_)) { }
135 0 515 unless $node
139 386 0 if ($k)
142 372 14 if $r
151 0 370 unless $node
155 0 80 if ($r->bidirectional)
159 18 62 if ($r->node1 eq $node)
170 0 159 unless $node
174 0 43 if ($r->bidirectional)
178 18 25 if ($r->node2 eq $node)
191 42 80 if ($r->has_node($node))
203 0 0 if (@links) { }
217 18 141 if (@links) { }
235 10 0 if ($r)
251 125 284 if (&$query($_))
253 13 112 if ($node1) { }
255 13 0 if ($_->has_node($node1))
273 0 0 if ($mode eq 'print') { }
0 0 elsif ($mode eq 'html') { }
290 0 0 if ($n) { }
292 0 0 if ($b->has_node($n))
311 0 0 if ($n) { }
313 0 0 if ($b->has_node($n))
335 75 95 if ($nodes{$node2}{'distance'} != -1)
339 0 95 if (my $cached_distance = $self->get_cached_distance($node2, $node1))
347 37 58 if (exists $self->distance_cache->{$node1}{'queue'})
357 136 177 if ($nodes{$near}{'distance'} == -1)
364 37 128 if ($nodes{$node2}{'distance'} != -1)
381 0 95 if (exists $self->distance_cache->{$node1} and exists $self->distance_cache->{$node1}{$node2} and $self->distance_cache->{$node1}{$node2} != -1) { }
398 112 58 if (exists $self->distance_cache->{$node1}) { }
417 339 573 if $self->exists_link($node, $_)
440 0 0 if (not $l =~ /^\s/) { }
442 0 0 if ($rel_data)