Branch Coverage

lib/BalanceOfPower/Relations/RelPack.pm
Criterion Covered Total %
branch 42 72 58.3


line true false branch
41 1643 1495 if (exists $self->links_grid->{$node1}{$node2}) { }
57 252 1 if (not $self->exists_link($node1, $node2)) { }
90 2 0 if ($k)
120 14 0 if (not &$query($_)) { }
135 0 526 unless $node
139 438 0 if ($k)
142 424 14 if $r
151 0 326 unless $node
155 0 71 if ($r->bidirectional)
159 18 53 if ($r->node1 eq $node)
170 0 162 unless $node
174 0 43 if ($r->bidirectional)
178 18 25 if ($r->node2 eq $node)
191 42 73 if ($r->has_node($node))
203 0 0 if (@links) { }
217 18 144 if (@links) { }
235 10 0 if ($r)
251 140 307 if (&$query($_))
253 19 121 if ($node1) { }
255 19 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 102 if ($nodes{$node2}{'distance'} != -1)
339 0 102 if (my $cached_distance = $self->get_cached_distance($node2, $node1))
347 42 60 if (exists $self->distance_cache->{$node1}{'queue'})
357 143 179 if ($nodes{$near}{'distance'} == -1)
364 43 124 if ($nodes{$node2}{'distance'} != -1)
381 0 102 if (exists $self->distance_cache->{$node1} and exists $self->distance_cache->{$node1}{$node2} and $self->distance_cache->{$node1}{$node2} != -1) { }
398 117 60 if (exists $self->distance_cache->{$node1}) { }
417 353 578 if $self->exists_link($node, $_)
440 0 0 if (not $l =~ /^\s/) { }
442 0 0 if ($rel_data)