Condition Coverage

blib/lib/Math/Polygon/Clip.pm
Criterion Covered Total %
condition 36 45 80.0


and 3 conditions

line !l l&&!r l&&r condition
72 33 12 20 $fromin and $nextin
33 0 12 $fromin and not $nextin
91 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]
110 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
154 0 0 0 $this->[0] == $ret[-1][0] and $this->[1] == $ret[-1][1]
164 65 47 14 $fx < $x and $x < $tx
50 48 14 $tx < $x and $x < $fx
174 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
164 14 0 112 $fx < $x and $x < $tx or $tx < $x and $x < $fx
167 20 0 8 $fy <= $y && $y <= $ty || $ty <= $y && $y <= $fy
174 12 0 114 $fy < $y and $y < $ty or $ty < $y and $y < $fy
177 17 0 10 $fx <= $x && $x <= $tx || $tx <= $x && $x <= $fx