Condition Coverage

blib/lib/Math/Polygon/Clip.pm
Criterion Covered Total %
condition 38 45 84.4


and 3 conditions

line !l l&&!r l&&r condition
75 33 12 20 $fromin and $nextin
33 0 12 $fromin and not $nextin
94 4 3 4 @frags >= 2 and $frags[0][0][0] == $frags[-1][-1][0]
7 0 4 @frags >= 2 and $frags[0][0][0] == $frags[-1][-1][0] and $frags[0][0][1] == $frags[-1][-1][1]
113 12 8 81 $bbox->[0] <= $point->[0] + 1e-05 and $point->[0] <= $bbox->[2] + 1e-05
20 10 71 $bbox->[0] <= $point->[0] + 1e-05 and $point->[0] <= $bbox->[2] + 1e-05 and $bbox->[1] <= $point->[1] + 1e-05
158 0 0 0 $this->[0] == $ret[-1][0] and $this->[1] == $ret[-1][1]
168 65 47 14 $fx < $x and $x < $tx
50 48 14 $tx < $x and $x < $fx
177 67 47 12 $fy < $y and $y < $ty
52 47 15 $ty < $y and $y < $fy

or 3 conditions

line l !l&&r !l&&!r condition
168 14 27 85 $fx < $x and $x < $tx or $tx < $x and $x < $fx
170 20 8 0 $fy <= $y && $y <= $ty || $ty <= $y && $y <= $fy
177 12 27 87 $fy < $y and $y < $ty or $ty < $y and $y < $fy
179 17 10 0 $fx <= $x && $x <= $tx || $tx <= $x && $x <= $fx