Condition Coverage

blib/lib/Math/Intersection/StraightLine.pm
Criterion Covered Total %
condition 29 45 64.4


and 3 conditions

line !l l&&!r l&&r condition
84 0 2 3 defined $result and ref $result eq 'ARRAY'
2 1 2 defined $result and ref $result eq 'ARRAY' and _check_point_on_line($vector_one, $result)
3 0 2 defined $result and ref $result eq 'ARRAY' and _check_point_on_line($vector_one, $result) and _check_point_on_line($vector_two, $result)
106 0 0 2 defined $result and ref $result eq 'ARRAY'
143 18 0 2 $$vector_one[1][0] == 0 and $$vector_two[1][0] == 0
14 4 0 $$vector_one[1][1] == 0 and $$vector_two[1][1] == 0
165 43 3 15 $$vector[1][$_] == 0 and $$point[$_] != $$vector[0][$_]
179 6 0 31 defined $return and $return == 0

or 3 conditions

line l !l&&r !l&&!r condition
120 28 0 5 not defined $check or $check > 0
28 1 4 not defined $check or $check > 0 or $check < -1
130 0 0 7 _check_point_on_line($vector_one, $$line_two[0]) or _check_point_on_line($vector_one, $$line_two[1])
0 0 7 _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])
0 0 7 _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 0 18 $$vector_one[1][0] == 0 and $$vector_two[1][0] == 0 or $$vector_one[1][1] == 0 and $$vector_two[1][1] == 0
148 10 0 8 $$vector_two[1][0] == 0 or $$vector_two[1][1] == 0