Branch Coverage

blib/lib/Math/PlanePath/PyramidRows.pm
Criterion Covered Total %
branch 22 60 36.6


line true false branch
84 0 0 $self->{'step'} == 0 || $self->{'align'} eq 'left' ? :
96 0 0 $self->{'align'} eq 'left' && $self->{'step'} >= 1 || $self->{'align'} eq 'centre' && $self->{'step'} >= 2 ? :
108 0 0 $self->{'align'} eq 'left' && $self->{'step'} <= 1 || $self->{'align'} eq 'centre' && $self->{'step'} <= 3 || $self->{'align'} eq 'right' ? :
119 0 0 $self->{'align'} eq 'left' || $self->{'align'} eq 'centre' && $self->{'step'} <= 2 || $self->{'align'} eq 'right' && $self->{'step'} <= 1 ? :
126 0 0 $self->{'step'} == 0 ? :
130 0 0 $self->{'step'} == 0 ? :
137 0 0 $self->{'step'} == 0 ? :
142 0 0 $self->{'step'} == 0 ? :
150 0 0 $self->{'step'} == 0 || $self->{'align'} eq 'right' || $self->{'step'} == 1 && $self->{'align'} eq 'centre' ? :
155 0 0 $self->{'step'} == 0 ? :
162 0 0 $self->{'step'} == 0 ? :
167 0 0 $self->{'step'} == 0 ? :
172 0 0 $self->{'step'} == 0 ? :
178 0 0 $self->{'step'} == 0 ? :
184 0 0 $self->{'step'} == 0 ? :
205 70 24 unless (defined $self->{'n_start'})
210 0 94 unless $align_known{$align}
214 0 84 $step < 0 ? :
10 84 !defined($step) ? :
219 0 92 $align eq 'right' ? :
2 92 $align eq 'left' ? :
284 69 618 if 2 * $n < 1
287 0 618 if ($step == 0)
307 0 0 if ($self->{'step'} == 0)
309 0 0 if ($n < 0)
330 4848 4374 if ($y < 0 or $x < -$y * $self->{'left_slope'} or $x > $y * $self->{'right_slope'})
379 9 56 if ($y1 > $y2)
380 9 56 if ($y2 < 0)
383 10 46 if ($x1 > $x2)
406 36 20 if ($x1 > $x_top_right or $x2 < -$y2 * $left_slope)