Branch Coverage

blib/lib/Graph/Weighted.pm
Criterion Covered Total %
branch 30 36 83.3


line true false branch
27 6 2 if ($data_ref eq 'ARRAY' or $data_ref eq 'Math::Matrix') { }
0 2 elsif ($data_ref eq 'Math::MatrixReal') { }
2 0 elsif ($data_ref eq 'HASH') { }
44 1 10 if ($entry eq 'label')
66 39 16 unless $w
88 5 0 if (ref $neighbors) { }
113 0 36 unless defined $v
119 22 14 if ref $v eq 'ARRAY'
139 2 3 if (not defined $smallest or $smallest > $current)
142 3 2 if (not defined $biggest or $biggest < $current)
150 1 4 if $mass->{$vertex} == $smallest
151 1 4 if $mass->{$vertex} == $biggest
171 2 5 if (not defined $smallest or $smallest > $current)
174 2 5 if (not defined $biggest or $biggest < $current)
183 3 4 if $mass->{$edge} == $smallest
184 2 5 if $mass->{$edge} == $biggest
195 1 3 unless $self->has_path(@$path)
229 0 0 $label ? :