Branch Coverage

blib/lib/Graph/Simple.pm
Criterion Covered Total %
branch 32 32 100.0


line true false branch
46 69 8 unless $self->is_directed
58 87 59 if $self->is_weighted
67 1 1 if not $self->is_directed
76 1 3 if $e ne $v
86 1 115 unless grep {/^$v$/;} $self->vertices
94 69 1 if (@_ == 3) { }
130 11 11 if $state eq 'black'
132 4 7 if ($state eq 'grey')
183 17 21 if ($state eq 'unknown')
211 24 18 if exists $tree_vertices{$v}
217 5 13 unless defined $min_weight
218 11 7 if ($w <= $min_weight)
256 116 42 if exists $tree_vertices{$v}
261 14 28 unless defined $min_dist
262 29 13 if ($distance <= $min_dist)
296 1 1 if ($n eq $source) { }