Condition Coverage

blib/lib/Math/PlanePath/PyramidRows.pm
Criterion Covered Total %
condition 18 35 51.4


and 3 conditions

line !l l&&!r l&&r condition
79 0 4 14 $align ne 'right' && $self->{'step'} >= $align_x_negative_step{$align}
418 8 9 3 $left_slope && int((-$x2 + $left_slope - 1) / $left_slope)
3 12 5 $right_slope && int(($x1 + $right_slope - 1) / $right_slope)

or 2 conditions

line l !l condition
209 2 92 $self->{'align'} ||= 'centre'

or 3 conditions

line l !l&&r !l&&!r condition
84 0 0 0 $self->{'step'} == 0 || $self->{'align'} eq 'left'
96 0 0 0 $self->{'align'} eq 'left' && $self->{'step'} >= 1 || $self->{'align'} eq 'centre' && $self->{'step'} >= 2
108 0 0 0 $self->{'align'} eq 'left' && $self->{'step'} <= 1 || $self->{'align'} eq 'centre' && $self->{'step'} <= 3 || $self->{'align'} eq 'right'
119 0 0 0 $self->{'align'} eq 'left' || $self->{'align'} eq 'centre' && $self->{'step'} <= 2 || $self->{'align'} eq 'right' && $self->{'step'} <= 1
150 0 0 0 $self->{'step'} == 0 || $self->{'align'} eq 'right' || $self->{'step'} == 1 && $self->{'align'} eq 'centre'
330 0 2424 6798 $y < 0 or $x < -$y * $self->{'left_slope'}
2424 2424 4374 $y < 0 or $x < -$y * $self->{'left_slope'} or $x > $y * $self->{'right_slope'}
406 18 18 20 $x1 > $x_top_right or $x2 < -$y2 * $left_slope