Branch Coverage

blib/lib/Music/RhythmSet/Util.pm
Criterion Covered Total %
branch 44 44 100.0


line true false branch
22 2 1 unless defined $bpat and ref $bpat eq 'ARRAY'
34 5 1 if ($first->[$i] == 1)
36 4 1 if $second->[$i] == 1
39 1 3 unless $onsets
46 2 1 unless defined $replay and ref $replay eq 'ARRAY'
70 2 10998 if $nozero and $score == 0
71 15 10983 if ($score < $best)
82 2 1 unless defined $replay and ref $replay eq 'ARRAY'
90 2 1 unless defined $bpat and ref $bpat eq 'ARRAY'
97 4 8 if $x == 1
106 2 1 unless defined $bpat and ref $bpat eq 'ARRAY'
112 4 8 if $x == 1
127 1 11100 if $onsets >= $total
131 44500 132500 if (rand() < $onsets / $total) { }
156 44004 132012 if $x == 1
170 44012 132036 if ($bpat->[$i] == 1)
173 44012 132036 if ($$bpat[$j % $len] == 1)
182 1 11003 unless @deltas
189 2 3 unless defined $bpat and ref $bpat eq 'ARRAY' and @$bpat
194 2 1 if $newlen <= $len
198 3 1 if ($bpat->[$i] == 1)
214 1 6 ref $track eq 'ARRAY' ? :