Branch Coverage

blib/lib/Math/Intersection/StraightLine.pm
Criterion Covered Total %
branch 31 36 86.1


line true false branch
56 6 4 if ($result_equation[1] != 0)
63 4 6 if (_check_parallel_vectors($vector_one, $vector_two))
64 1 3 if (defined _check_point_on_vector($vector_one, $$vector_two[0])) { }
84 2 1 if (defined $result and ref $result eq 'ARRAY' and _check_point_on_line($vector_one, $result) and _check_point_on_line($vector_two, $result))
89 0 5 if (_check_overlapping_lines($line_one, $line_two, $vector_one, $vector_two))
106 2 0 if (defined $result and ref $result eq 'ARRAY')
109 0 2 if (_check_overlapping_lines($line_one, $line_two, $vector_one, $vector_two))
120 1 4 if (not defined $check or $check > 0 or $check < -1)
130 0 7 if (_check_point_on_line($vector_one, $$line_two[0]) or _check_point_on_line($vector_one, $$line_two[1]) or _check_point_on_line($vector_two, $$line_one[0]) or _check_point_on_line($vector_two, $$line_one[1]))
143 2 18 if ($$vector_one[1][0] == 0 and $$vector_two[1][0] == 0 or $$vector_one[1][1] == 0 and $$vector_two[1][1] == 0) { }
148 8 10 unless ($$vector_two[1][0] == 0 or $$vector_two[1][1] == 0)
151 6 2 if ($quot_one == $quot_two)
165 15 46 if ($$vector[1][$_] == 0 and $$point[$_] != $$vector[0][$_]) { }
43 3 elsif ($$vector[1][$_] != 0) { }
171 24 19 if (not defined $tmp_check) { }
16 3 elsif (abs $tmp_check - $check > 1e-05) { }
179 31 6 if (defined $return and $return == 0) { }
6 0 elsif (not defined $return) { }