Branch Coverage

blib/lib/Graph/MoreUtils/Smooth.pm
Criterion Covered Total %
branch 12 20 60.0


line true false branch
17 0 3 unless (builtin::blessed($graph) and $graph->isa("Graph::Undirected"))
22 4 51 unless $graph->degree($_) == 2
26 3 48 if $graph->has_edge($a, $b)
29 0 48 if ($graph->has_edge_attribute($a, $_, 'intermediate') and $graph->has_edge_attribute($b, $_, 'intermediate')) { }
23 25 elsif ($graph->has_edge_attribute($a, $_, 'intermediate')) { }
23 2 elsif ($graph->has_edge_attribute($b, $_, 'intermediate')) { }
31 0 0 $_ lt $a ? :
0 0 $_ gt $b ? :
41 0 23 if $a gt $_
45 0 23 if $_ gt $b