Branch Coverage

blib/lib/Graph/Traverse.pm
Criterion Covered Total %
branch 39 48 81.2


line true false branch
34 0 13 unless defined $vertex
36 12 1 if defined $opts
40 12 1 $return_hash ? :
46 12 1 defined $opts ? :
47 12 1 if defined $opts
48 12 1 if defined $opts
49 12 1 defined $opts ? :
53 12 1 defined $opts ? :
56 12 1 ref $vertex ? :
69 0 93 unless $self->has_vertex($s)
71 93 0 if (defined $attr) { }
72 20 73 if ($add_vertex) { }
86 0 93 if (defined $cb_check)
87 0 0 if ($terminal{$s} = &$cb_check($self, $s, $newvalue, $opts))
92 3 90 if defined $max_weight and $newvalue > $max_weight
96 87 3 if (defined $save_paths)
100 0 87 if exists $terminal{$s}
104 79 11 if (not defined $path{$s} or $newvalue < $weight{$s})
108 13 66 if defined $weight{$s} and $newvalue < $weight{$s}
118 0 90 if $terminal{$s}
119 82 8 unless exists $seen{$s}
128 12 1 if ($return_hash)
134 76 11 if not defined $$ret{$v->{'vertex'}} or $$ret{$v->{'vertex'}}{'weight'} > $v->{'weight'}
138 0 1 $return_weights ? :