Branch Coverage

blib/lib/Graph/Traverse.pm
Criterion Covered Total %
branch 46 50 92.0


line true false branch
34 0 17 unless defined $vertex
36 16 1 if defined $opts
40 16 1 $return_hash ? :
48 16 1 defined $opts ? :
49 16 1 if defined $opts
50 16 1 if defined $opts
51 16 1 defined $opts ? :
55 16 1 defined $opts ? :
58 14 3 ref $vertex ? :
71 0 172 unless $self->has_vertex($s)
73 172 0 if (defined $attr) { }
74 20 152 if ($add_vertex) { }
88 64 108 if (defined $cb_check)
89 6 58 if ($terminal{$s} = &$cb_check($self, $s, $newvalue, $opts))
94 3 169 if defined $max_weight and $newvalue > $max_weight
98 166 3 if (defined $save_paths)
102 64 102 if exists $terminal{$s}
103 108 58 if $save_all or $terminal{$s}
106 150 19 if (not defined $path{$s} or $newvalue < $weight{$s})
110 15 135 if defined $weight{$s} and $newvalue < $weight{$s}
120 6 163 if $terminal{$s}
121 151 12 unless exists $seen{$s}
130 16 1 if ($return_hash)
136 94 14 if not defined $$ret{$v->{'vertex'}} or $$ret{$v->{'vertex'}}{'weight'} > $v->{'weight'}
140 0 1 $return_weights ? :