Branch Coverage

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


line true false branch
53 6 4 if ($result_equation[1] != 0)
60 4 6 if (_check_parallel_vectors($vector_one, $vector_two))
61 1 3 if (defined _check_point_on_vector($vector_one, $$vector_two[0])) { }
81 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))
86 0 5 if (_check_overlapping_lines($line_one, $line_two, $vector_one, $vector_two))
103 2 0 if (defined $result and ref $result eq 'ARRAY')
106 0 2 if (_check_overlapping_lines($line_one, $line_two, $vector_one, $vector_two))
117 1 4 if (not defined $check or $check > 0 or $check < -1)
127 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]))
140 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) { }
145 8 10 unless ($$vector_two[1][0] == 0 or $$vector_two[1][1] == 0)
148 6 2 if ($quot_one == $quot_two)
162 15 46 if ($$vector[1][$_] == 0 and $$point[$_] != $$vector[0][$_]) { }
43 3 elsif ($$vector[1][$_] != 0) { }
168 24 19 if (not defined $tmp_check) { }
16 3 elsif (abs $tmp_check - $check > 1e-05) { }
176 31 6 if (defined $return and $return == 0) { }
6 0 elsif (not defined $return) { }