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
81 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)
103 0 0 2 defined $result and ref $result eq 'ARRAY'
140 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
162 43 3 15 $$vector[1][$_] == 0 and $$point[$_] != $$vector[0][$_]
176 6 0 31 defined $return and $return == 0

or 3 conditions

line l !l&&r !l&&!r condition
117 28 0 5 not defined $check or $check > 0
28 1 4 not defined $check or $check > 0 or $check < -1
127 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])
140 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
145 10 0 8 $$vector_two[1][0] == 0 or $$vector_two[1][1] == 0