Branch Coverage

blib/lib/Math/SegmentedEnvelope.pm
Criterion Covered Total %
branch 78 92 84.7


line true false branch
44 1 1 if @args % 2 == 1
53 0 2 if @{$self->def->[0];} != @{$self->def->[1];} + 1 or @{$self->def->[0];} != @{$self->def->[2];} + 1 or @{$self->def->[1];} != @{$self->def->[2];}
79 10 12 $i == 0 ? :
82 19 22 if ($t > $d and $i != $self->_segments - 1) { }
85 0 22 if $t > $d
86 8 14 unless $i == $self->_past_segment
90 8 14 if $pd != $self->_passed_segments_duration
91 0 22 if $i != $self->_current_segment
93 0 22 $self->_is_neg ? :
103 1 21 $self->is_morph ? :
109 10 12 if ($self->is_hold) { }
110 2 2 $t > $total ? :
4 6 $t > 0 ? :
113 4 8 if ($at > $total) { }
114 1 2 $t < 0 && $self->is_wrap_neg ? :
2 2 if ($self->is_fold_over and int($at / $total) % 2 == ($t < 0 && $self->is_wrap_neg ? 0 : 1)) { }
125 8 4 defined $i ? :
127 0 12 $self->curve($i) < 0 ? :
128 7 5 $self->_level_diff < 0 || $self->_is_neg ? :
135 2 0 $_[0] >= 0 ? :
1 26 if @_ > 1 and abs $self->_current_segment - ($_[0] >= 0 ? $_[0] : $self->_segments + $_[0]) <= 1
142 1 5 if @_ > 0
149 1 0 if @_ > 1
156 2 6 if @_ > 1
166 1 12 if @_ > 1 and $self->_current_segment == $_[0]
173 1 5 if @_ > 0
179 4 0 @values == @{$self->def->[$p];} ? :
4 16 if @values
185 0 41 unless defined $at and exists $self->def->[$p][$at]
186 4 37 if $value
199 1 9 $$cur[$i] < 0 ? :
200 7 3 $level_diff < 0 || $is_neg ? :
203 2 0 ref $is_smooth eq 'CODE' ? :
2 2 $is_smooth ? :
205 2 2 $_[0] > $total ? :
4 6 $_[0] > 0 ? :
208 1 1027 if ($t > $total) { }
209 1 0 $_[0] < 0 && $is_wrap_neg ? :
0 1 if ($is_fold_over and int($t / $total) % 2 == ($_[0] < 0 && $is_wrap_neg ? 0 : 1)) { }
215 1 3 $is_hold ? :
220 114 924 $i == 0 ? :
223 21 1038 if ($t > $d and $i != $last_segment) { }
226 0 1038 if $t > $d
227 10 1028 unless $i == $cs
232 307 731 $is_neg ? :
247 0 1 if $size <= 0