Branch Coverage

blib/lib/Graph/Easy/Weighted.pm
Criterion Covered Total %
branch 25 38 65.7


line true false branch
27 6 0 if ($data_ref eq 'ARRAY' or $data_ref eq 'Math::Matrix') { }
0 0 elsif ($data_ref eq 'Math::MatrixReal') { }
0 0 elsif ($data_ref eq 'HASH') { }
43 0 0 if ($data->{$vertex}{'attributes'})
64 39 16 unless $w
67 0 16 $format ? :
91 0 0 $format ? :
109 0 36 unless defined $v
113 22 14 if (ref $v eq "Graph::Easy::Edge")
132 2 3 if (not defined $smallest or $smallest > $current)
135 2 3 if (not defined $biggest or $biggest < $current)
142 1 4 if $mass->{$vertex} == $smallest
143 1 4 if $mass->{$vertex} == $biggest
161 2 5 if (not defined $smallest or $smallest > $current)
164 2 5 if (not defined $biggest or $biggest < $current)
172 3 4 if $mass->{$edge} == $smallest
173 2 5 if $mass->{$edge} == $biggest
188 1 6 unless $edge
208 0 0 if $edge->from->name ne $vertex->name