Condition Coverage

blib/lib/Math/Polygon/Transform.pm
Criterion Covered Total %
condition 52 63 82.5


and 3 conditions

line !l l&&!r l&&r condition
30 0 7 8 @_ and not ref $_[0]
37 4 1 2 $sx == 1 and $sy == 1
50 0 3 4 @_ and not ref $_[0]
56 1 0 2 $dx == 0 and $dy == 0
64 0 6 8 @_ and not ref $_[0]
94 0 4 3 @_ and not ref $_[0]
103 1 1 1 $raster > 0.99999 and $raster < 1.00001
114 0 8 10 @_ and not ref $_[0]
175 0 11 8 @_ and not ref $_[0]
182 1 4 6 $_[0][0] == $_[-1][0] && $_[0][1] == $_[-1][1]
189 11 0 22 $changes and @_
212 16 51 7 @_ >= 2 and defined $slope
231 1 3 1 @_ > 2 and abs $d01 - $d12 - $d02 < $slope
251 10 10 2 $is_ring and $new[0][0] != $new[-1][0] || $new[0][1] != $new[-1][1]

or 2 conditions

line l !l condition
35 2 3 $opts{'xscale'} || $opts{'scale'} || 1
36 2 3 $opts{'yscale'} || $opts{'scale'} || 1
55 1 2 $opts{'dx'} || 0
1 2 $opts{'dy'} || 0
134 2 1 $opts{'b'} || 0
184 4 7 $opts{'same'} || 0.0001

or 3 conditions

line l !l&&r !l&&!r condition
41 1 0 4 $cx or $cy
80 1 0 2 $cx or $cy
251 0 2 10 $new[0][0] != $new[-1][0] || $new[0][1] != $new[-1][1]