Branch Coverage

blib/lib/Math/Polygon.pm
Criterion Covered Total %
branch 15 38 39.4


line true false branch
24 3 8 if (ref $thing)
29 27 6 if (ref $_[0] eq 'ARRAY') { }
52 6 6 wantarray ? :
57 1 2 wantarray ? :
63 0 0 if $self->{'MP_bbox'}
73 0 1 if defined $self->{'MP_area'}
79 0 0 if $self->{'MP_centroid'}
86 2 1 if defined $self->{'MP_clockwise'}
93 0 0 if $self->isClockwise
103 0 0 unless $self->isClockwise
123 0 0 @beauty > 2 ? :
130 2 1 if (@_ > 2 or ref $_[1] eq 'ARRAY') { }
132 0 1 ref $_[0] eq 'ARRAY' ? :
142 2 0 if (@_ > 2 or ref $_[1] eq 'ARRAY') { }
144 0 0 ref $_[0] eq 'ARRAY' ? :
170 0 0 if (defined $clockwise)
174 0 0 if $xscale * $yscale < 0
222 0 0 if defined $clockwise
252 0 0 unless @clip