Branch Coverage

blib/lib/Array/Tour/Spiral.pm
Criterion Covered Total %
branch 74 76 97.3


line true false branch
76 0 0 $$self{'status'} == 2 ? :
104 192 7584 unless $self->has_next
112 192 7392 if ($$self{'tourstatus'} == 0) { }
116 96 96 if $$self{'inward'}
124 3696 3696 ($direction & 33) == 0 ? :
3696 3696 ($direction & 5) == 0 ? :
130 1888 5504 if (--$$self{'pacer'} == 0)
144 192 7392 if ++$$self{'odometer'} == $$self{'tourlength'}
170 32 64 if ($width == $height) { }
32 32 elsif ($width > $height) { }
211 96 96 defined $params{'counterclock'} && $params{'counterclock'} != 0 ? :
212 96 96 defined $params{'corner_right'} && $params{'corner_right'} != 0 ? :
213 96 96 defined $params{'corner_bottom'} && $params{'corner_bottom'} != 0 ? :
214 96 96 defined $params{'inward'} && $params{'inward'} != 0 ? :
216 96 96 if $$self{'inward'} == 1
243 48 48 if $corner_right
244 48 48 if $corner_bottom
247 48 48 if $counterclock
249 48 48 if $counterclock
252 48 48 ($direction[0] & 132) == 0 ? :
288 32 64 if ($width == $height) { }
32 32 elsif ($width > $height) { }
293 16 16 if (($width & 1) == 0)
295 8 8 if $corner_right
296 8 8 if $corner_bottom
306 16 16 if $counterclock
313 16 16 if (($corner_right ^ $corner_bottom) == 1)
316 8 8 if ($height & 1) == 0
319 16 16 if $corner_right
321 8 24 if ($height & 1) == 0 and ($corner_right ^ $counterclock) == 1
324 16 16 if $counterclock
331 16 16 if (($corner_bottom ^ $corner_right) == 1)
334 8 8 if ($width & 1) == 0
337 16 16 if $corner_bottom
339 8 24 if ($width & 1) == 0 and ($corner_bottom ^ $counterclock) == 0
342 16 16 if $counterclock
346 48 48 if $counterclock
349 48 48 ($direction[0] & 132) == 0 ? :