Branch Coverage

blib/lib/Math/PlanePath/DiamondSpiral.pm
Criterion Covered Total %
branch 25 28 89.2


line true false branch
73 4 0 unless (defined $self->{'n_start'})
97 1 17 if ($n < 1)
98 0 1 if ($n < 0)
119 4 13 if ($y < $d)
121 12 5 $n >= 0 ? :
142 9 19 if ($x > 0) { }
186 1 4 if $x1 > $x2
187 0 5 if $y1 > $y2
189 1 3 $x1 > 0 ? :
1 4 $x2 < 0 ? :
192 1 3 $y1 > 0 ? :
1 4 $y2 < 0 ? :
196 1 4 $x2 > -$x1 ? :
197 2 3 $y2 >= -$y1 + ($max_x <= 0) ? :