Condition Coverage

blib/lib/Math/SegmentedEnvelope.pm
Criterion Covered Total %
condition 34 57 59.6


and 3 conditions

line !l l&&!r l&&r condition
78 22 0 15 $t < $pd and $i > 0
82 22 0 19 $t > $d and $i != $self->_segments - 1
114 1 1 1 $t < 0 && $self->is_wrap_neg
1 1 2 $self->is_fold_over and int($at / $total) % 2 == ($t < 0 && $self->is_wrap_neg ? 0 : 1)
135 25 1 1 @_ > 1 and abs $self->_current_segment - ($_[0] >= 0 ? $_[0] : $self->_segments + $_[0]) <= 1
166 12 0 1 @_ > 1 and $self->_current_segment == $_[0]
185 0 41 0 defined $at and exists $self->def->[$p][$at]
192 2 0 2 $self->is_morph && &clone($self->morpher)
209 0 0 1 $_[0] < 0 && $is_wrap_neg
0 1 0 $is_fold_over and int($t / $total) % 2 == ($_[0] < 0 && $is_wrap_neg ? 0 : 1)
219 1038 0 7 $t < $pd and $i > 0
223 1038 0 21 $t > $d and $i != $last_segment

or 2 conditions

line l !l condition
243 1 0 $size ||= 1024
244 0 1 $loop ||= 1
245 0 1 $from ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
53 0 0 2 @{$self->def->[0];} != @{$self->def->[1];} + 1 or @{$self->def->[0];} != @{$self->def->[2];} + 1
0 0 2 @{$self->def->[0];} != @{$self->def->[1];} + 1 or @{$self->def->[0];} != @{$self->def->[2];} + 1 or @{$self->def->[1];} != @{$self->def->[2];}
128 7 0 5 $self->_level_diff < 0 || $self->_is_neg
200 7 0 3 $level_diff < 0 || $is_neg
246 0 1 0 $to ||= $self->duration