Branch Coverage

blib/lib/Boost/Graph.pm
Criterion Covered Total %
branch 65 102 63.7


line true false branch
50 4 13 if ($args{'directed'}) { }
57 0 17 if $args{'net_name'}
58 0 17 if $args{'net_id'}
68 7 83 if (@_ == 3) { }
72 0 83 unless $args{'node1'} and $args{'node2'}
80 41 49 unless $weight
81 85 5 unless $edge_obj
86 0 90 if $node1_id == 0 or $node2_id == 0
88 2 88 if $self->has_edge($node1, $node2)
96 78 10 if ($node1_id < $node2_id or $$self{'_directed'}) { }
110 1 1 if ($isnew == $node_id) { }
149 99 0 if ($self->has_node($node1) and $self->has_node($node2))
152 0 99 if $node1_id == 0 or $node2_id == 0
154 42 57 if ($$self{'_edges'}{$node1_id}) { }
5 101 elsif ($$self{'_edges'}{$node2_id} and not $$self{'_directed'}) { }
155 10 32 if $$self{'_edges'}{$node1_id}{$node2_id}
157 0 5 if $$self{'_edges'}{$node2_id}{$node1_id}
165 0 236 unless $node
166 0 236 if ($id_name) { }
168 0 0 if $$n{$id_name} eq $$node{$id_name}
171 236 0 if $$self{'_nodes'}{$node}
188 0 10 unless $$self{'_directed'}
189 0 10 unless $self->has_node($source)
192 6 4 if ($$self{'_edges'}{$nid})
205 0 0 unless $$self{'_directed'}
206 0 0 unless $self->has_node($source)
209 0 0 if ($$self{'_node_parents'}{$nid})
233 2 6 if $i + 1 >= @path
242 2 6 if $i + 1 >= @path
244 1 5 unless $has
253 7 0 if ($self->has_node($root))
264 0 423 unless $node
265 336 87 if ($$self{'_nodes'}{$node}) { }
278 0 7 unless $node_order
281 48 5 if $$self{'_nodes_lookup'}{$nid}
296 0 1 unless $roots
302 3 0 if $self->has_node($node)
308 4 3 if $hotspots{$nbor_id} or $rootids{$nbor_id}
314 1 7 if $hotspots{$nbor_id}
316 2 5 if ($rootids{$oneoff_nbors_id} and $oneoff_nbors_id != $nid)
329 0 1 unless $self->has_node($node) and $$self{'_directed'}
355 0 3 unless $start_node and $self->has_node($start_node)
358 0 3 unless $start_node_id
366 0 2 unless $start_node and $self->has_node($start_node)
369 0 2 unless $start_node_id
380 0 2 unless $start_node and $self->has_node($start_node) and $end_node and $self->has_node($end_node)
396 0 3 unless $start_node and $self->has_node($start_node) and $end_node and $self->has_node($end_node)
410 0 1 unless $start_node and $self->has_node($start_node) and $end_node and $self->has_node($end_node)
427 0 1 if $$self{'_directed'}
434 0 0 if (defined $node_obj)
438 1 0 unless defined $clusters[0]