Branch Coverage

blib/lib/Graph/Undirected/Hamiltonicity/Tests.pm
Criterion Covered Total %
branch 49 58 84.4


line true false branch
42 1 39 if ($v == 1)
48 1 38 if ($v < 3)
53 0 38 if ($e < $v)
65 2 36 if ($e > $max_edges - $v + 2)
84 12 2 if ($g->has_edge($vertices[0], $vertices[-1])) { }
86 1 49 unless ($g->has_edge($vertices[$counter], $vertices[$counter + 1]))
116 2 2625 if ($g->degree($vertex) < 2)
119 2 0 $params->{'transformed'} ? :
136 200 2 if $g->is_biconnected
139 0 2 $params->{'transformed'} ? :
159 200 1 if $g->is_edge_connected
163 0 1 $params->{'transformed'} ? :
189 2 38 if $v < 3
194 34 42 if ($g->degree($vertex) < $half_v)
216 1 203 if $v < 3
220 261 306 if $vertex1 == $vertex2
221 90 216 if $g->has_edge($vertex1, $vertex2)
223 201 15 if $sum_of_degrees < $v
244 25 2277 if ($degree > 2)
246 15 10 $params->{'transformed'} ? :
266 30 132 if ($required_graph->is_connected)
272 19 11 unless (@degree1_vertices)
275 0 19 $params->{'transformed'} ? :
282 7 4 if ($g->has_edge(@degree1_vertices)) { }
283 7 0 unless ($required_graph->has_edge(@degree1_vertices))
289 0 7 $params->{'transformed'} ? :
296 0 4 $params->{'transformed'} ? :
313 14 118 if ($required_graph->has_a_cycle)
315 0 14 $params->{'transformed'} ? :