Branch Coverage

blib/lib/Math/Spiral.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
150 1 0 unless $this->{'aspect'}
169 2 8 if ($this->{'x'} >= $this->{'xmax'} and $this->{'xdir'}) { }
2 6 elsif ($this->{'y'} <= $this->{'ymin'} and $this->{'ydir'}) { }
1 5 elsif ($this->{'x'} <= $this->{'xmin'} and $this->{'xdir'}) { }
1 4 elsif ($this->{'y'} >= $this->{'ymax'} and $this->{'ydir'}) { }
173 0 0 if ($this->{'aspect'} > 1 and $this->{'ymin'} and $aspect < $this->{'aspect'})
177 0 2 if ($this->{'skipx'})
182 0 2 if ($this->{'forcex'})
186 0 2 if ($this->{'skipy'})
191 0 1 if ($this->{'forcey'})
195 0 1 if ($this->{'skipx'})
200 1 0 $this->{'ymax'} ? :
201 0 1 if ($this->{'aspect'} < 1 and $aspect > $this->{'aspect'})
205 0 1 if ($this->{'skipy'})
210 0 10 if defined $nx
211 0 10 if defined $ny