Branch Coverage

blib/lib/Graph/Undirected/Hamiltonicity.pm
Criterion Covered Total %
branch 29 32 90.6


line true false branch
70 5 71 unless $is_hamiltonian == $Graph::Undirected::Hamiltonicity::DONT_KNOW
78 35 5 if ($is_hamiltonian == $Graph::Undirected::Hamiltonicity::DONT_KNOW) { }
92 32 8 $is_hamiltonian == $Graph::Undirected::Hamiltonicity::GRAPH_IS_HAMILTONIAN ? :
93 0 40 wantarray ? :
127 11 833 unless $is_hamiltonian == $Graph::Undirected::Hamiltonicity::DONT_KNOW
135 194 10 if ($required_graph->edges)
142 78 410 unless $is_hamiltonian == $Graph::Undirected::Hamiltonicity::DONT_KNOW
149 73 43 if ($deleted_edges or $deleted_edges2)
158 53 0 if (@undecided_vertices)
159 53 0 unless ($params->{'tentative'})
177 107 376 if $neighbor == $tentative_edge_pair->[0]
178 107 269 if $neighbor == $tentative_edge_pair->[1]
190 39 68 if ($is_hamiltonian == $Graph::Undirected::Hamiltonicity::GRAPH_IS_HAMILTONIAN)
213 26 27 if ($required_graph->degree($vertex) == 1) { }
216 26 76 if $fixed_neighbor == $tentative_neighbor
251 38 152 if (not defined $chosen_vertex_degree or $degree > $chosen_vertex_degree or $degree == $chosen_vertex_degree and $required_degree > $chosen_vertex_required_degree or $degree == $chosen_vertex_degree and $required_degree == $chosen_vertex_required_degree and $vertex < $chosen_vertex)