Condition Coverage

blib/lib/Math/Polygon/Calc.pm
Criterion Covered Total %
condition 102 156 65.3


and 3 conditions

line !l l&&!r l&&r condition
100 0 0 29 $_[0][0] == $_[-1][0] && $_[0][1] == $_[-1][1]
144 0 108 56 @res and $res[0][0] == $x
108 44 12 @res and $res[0][0] == $x and $res[0][1] == $y
150 105 0 47 $despike and @res >= 2
152 42 1 4 $res[1][0] == $x and $res[1][1] == $y
158 32 15 0 $y == $res[0][1] and $y == $res[1][1]
47 0 0 $y == $res[0][1] and $y == $res[1][1] and $res[0][0] < $x && $x < $res[1][0] || $res[0][0] > $x && $x > $res[1][0]
166 39 6 2 $x == $res[0][0] and $x == $res[1][0]
45 2 0 $x == $res[0][0] and $x == $res[1][0] and $res[0][1] < $y && $y < $res[1][1] || $res[0][1] > $y && $y > $res[1][1]
175 0 106 46 @res >= 2 and $res[0][0] == $x
106 35 11 @res >= 2 and $res[0][0] == $x and $res[1][0] == $x
141 11 0 @res >= 2 and $res[0][0] == $x and $res[1][0] == $x and $y < $res[0][1] && $res[0][1] < $res[1][1] || $y > $res[0][1] && $res[0][1] > $res[1][1]
183 0 92 60 @res >= 2 and $res[0][1] == $y
92 51 9 @res >= 2 and $res[0][1] == $y and $res[1][1] == $y
143 9 0 @res >= 2 and $res[0][1] == $y and $res[1][1] == $y and $x < $res[0][0] && $res[0][0] < $res[1][0] || $x > $res[0][0] && $res[0][0] > $res[1][0]
192 0 106 46 @res >= 3 and $x == $res[0][0]
106 37 9 @res >= 3 and $x == $res[0][0] and $x == $res[1][0]
143 4 5 @res >= 3 and $x == $res[0][0] and $x == $res[1][0] and $x == $res[2][0]
0 0 5 $y < $res[0][1] and $y < $res[1][1]
0 3 2 $y < $res[0][1] and $y < $res[1][1] and $res[0][1] < $res[2][1]
3 0 2 $y < $res[0][1] and $y < $res[1][1] and $res[0][1] < $res[2][1] and $res[1][1] < $res[2][1]
41 5 0 @res >= 3 and $x == $res[0][0] and $x == $res[1][0] and $x == $res[2][0] and ($y < $res[0][1] and $y < $res[1][1] and $res[0][1] < $res[2][1] and $res[1][1] < $res[2][1])
200 0 92 60 @res >= 3 and $y == $res[0][1]
92 53 7 @res >= 3 and $y == $res[0][1] and $y == $res[1][1]
145 7 0 @res >= 3 and $y == $res[0][1] and $y == $res[1][1] and $y == $res[2][1]
0 0 0 $x < $res[0][0] and $x < $res[1][0]
0 0 0 $x < $res[0][0] and $x < $res[1][0] and $res[0][0] < $res[2][0]
0 0 0 $x < $res[0][0] and $x < $res[1][0] and $res[0][0] < $res[2][0] and $res[1][0] < $res[2][0]
60 0 0 @res >= 3 and $y == $res[0][1] and $y == $res[1][1] and $y == $res[2][1] and ($x < $res[0][0] and $x < $res[1][0] and $res[0][0] < $res[2][0] and $res[1][0] < $res[2][0])
282 85 10 3 $y == $py and $py == $ny
95 3 0 $y == $py and $py == $ny and $x >= $px || $x >= $nx
0 3 0 $y == $py and $py == $ny and $x >= $px || $x >= $nx and $x <= $px || $x <= $nx
286 80 10 5 $x == $px and $px == $nx
90 5 0 $x == $px and $px == $nx and $y >= $py || $y >= $ny
0 5 0 $x == $px and $px == $nx and $y >= $py || $y >= $ny and $y <= $py || $y <= $ny
290 37 13 19 $y <= $py and $y <= $ny
13 16 21 $y > $py and $y > $ny
11 6 12 $x > $px and $x > $nx

or 3 conditions

line l !l&&r !l&&!r condition
158 0 0 0 $res[0][0] < $x && $x < $res[1][0] || $res[0][0] > $x && $x > $res[1][0]
166 0 0 2 $res[0][1] < $y && $y < $res[1][1] || $res[0][1] > $y && $y > $res[1][1]
175 2 0 9 $y < $res[0][1] && $res[0][1] < $res[1][1] || $y > $res[0][1] && $res[0][1] > $res[1][1]
183 1 0 8 $x < $res[0][0] && $res[0][0] < $res[1][0] || $x > $res[0][0] && $res[0][0] > $res[1][0]
221 0 0 8 abs $f[0][0] - $s[0][0] > $tolerance or abs $f[0][1] - $s[0][1] > $tolerance
229 1 0 8 $f[0][0] != $s[0][0] or $f[0][1] != $s[0][1]
282 1 2 0 $x >= $px || $x >= $nx
2 1 0 $x <= $px || $x <= $nx
286 3 2 0 $y >= $py || $y >= $ny
3 2 0 $y <= $py || $y <= $ny
290 21 0 69 $py == $ny or $y <= $py and $y <= $ny
19 0 50 $py == $ny or $y <= $py and $y <= $ny or $y > $py and $y > $ny
21 0 29 $py == $ny or $y <= $py and $y <= $ny or $y > $py and $y > $ny or $x > $px and $x > $nx
302 1 13 3 $px == $nx or $x <= $xinters