Branch Coverage

blib/lib/Polygon/Simplify.pm
Criterion Covered Total %
branch 14 22 63.6


line true false branch
73 202 0 if ($dx != 0 or $dy != 0)
89 0 202 if ($t > 1) { }
202 0 elsif ($t > 0) { }
121 99 0 if (getSqDist($point, $prev_point) > $sqTolerance)
129 0 1 if $prev_point != $point
143 67 135 if ($sqDist > $maxSqDist)
150 7 7 if ($maxSqDist > $sqTolerance)
153 6 1 if $index - $first > 1
195 0 1 if @{$points;} <= 2
199 0 1 if ($tolerance)
203 0 1 $highestQuality ? :