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')
68 39 16 unless $w
90 5 0 if (ref $neighbors) { }
115 0 36 unless defined $v
121 22 14 if ref $v eq 'ARRAY'
141 3 2 if (not defined $smallest or $smallest > $current)
144 2 3 if (not defined $biggest or $biggest < $current)
152 1 4 if $mass->{$vertex} == $smallest
153 1 4 if $mass->{$vertex} == $biggest
173 1 6 if (not defined $smallest or $smallest > $current)
176 2 5 if (not defined $biggest or $biggest < $current)
185 3 4 if $mass->{$edge} == $smallest
186 2 5 if $mass->{$edge} == $biggest
197 1 3 unless $self->has_path(@$path)
231 0 0 $label ? :