Branch Coverage

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


line true false branch
70 7 69 unless $is_hamiltonian == $Graph::Undirected::Hamiltonicity::DONT_KNOW
78 33 7 if ($is_hamiltonian == $Graph::Undirected::Hamiltonicity::DONT_KNOW) { }
92 32 8 $is_hamiltonian == $Graph::Undirected::Hamiltonicity::GRAPH_IS_HAMILTONIAN ? :
93 0 40 wantarray ? :
127 3 792 unless $is_hamiltonian == $Graph::Undirected::Hamiltonicity::DONT_KNOW
135 187 10 if ($required_graph->edges)
142 69 412 unless $is_hamiltonian == $Graph::Undirected::Hamiltonicity::DONT_KNOW
149 73 45 if ($deleted_edges or $deleted_edges2)
158 55 0 if (@undecided_vertices)
159 55 0 unless ($params->{'tentative'})
177 94 299 if $neighbor == $tentative_edge_pair->[0]
178 94 205 if $neighbor == $tentative_edge_pair->[1]
190 41 53 if ($is_hamiltonian == $Graph::Undirected::Hamiltonicity::GRAPH_IS_HAMILTONIAN)
213 32 23 if ($required_graph->degree($vertex) == 1) { }
216 32 95 if $fixed_neighbor == $tentative_neighbor
251 36 138 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)