Branch Coverage

blib/lib/Math/PlanePath/StaircaseAlternating.pm
Criterion Covered Total %
branch 51 64 79.6


line true false branch
77 0 0 $self->{'end_type'} eq 'jump' ? :
107 6 0 unless (defined $self->{'n_start'})
180 6 0 if ($self->{'end_type'} eq 'square') { }
181 0 6 if ($n < 1)
188 2 4 if ($n < 2)
189 1 1 if ($d % 2) { }
197 0 0 if (2 * $n < 1)
209 1 3 if ($int % 2) { }
219 3 1 if ($d % 2) { }
232 0 179988 if ($x < 0 or $y < 0)
237 89988 90000 unless ($jump)
239 1698 88290 if ($x == 0) { }
322 174596 elsif ($y == 0 and $x % 4 == 0) { }
240 335 1363 if ($y % 4 == 2)
253 89676 89655 $d % 2 ? :
291 0 20000 if ($x1 > $x2)
292 0 20000 if ($y1 > $y2)
294 0 20000 if ($x2 < 0 or $y2 < 0)
300 0 20000 if ($x1 < 0)
301 0 20000 if ($y1 < 0)
309 3752 16248 if ($x2 > $x1 and $yx_to_max_dx[$key]) { }
12184 4228 elsif ($y2 > 0 and $y2 > $y1) { }
317 96 19904 if ($square and $x1 == 0 and $y1 % 4 == 2) { }
96 19824 elsif ($square and $y1 == 0 and $x1 > 0 and $x1 % 4 == 0) { }
319 72 24 if ($corner_x1 < $x2) { }
18 6 elsif ($corner_y1 < $y2) { }
329 72 24 if ($corner_y1 < $y2) { }
18 6 elsif ($corner_x1 < $x2) { }
342 3792 16196 if ($corner_x1 < $x2 and my $dx = $yx_to_min_dx[$key]) { }
3792 16474 elsif ($corner_y1 < $y2 and my $dy = $yx_to_min_dy[$key]) { }
344 1848 72 unless ($square and $dx < 0 and $corner_y1 == 0)
349 1848 72 unless ($square and $dy < 0 and $corner_x1 == 0)