Branch Coverage

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


line true false branch
23 2 1 unless defined $bpat and ref $bpat eq "ARRAY"
36 5 1 if ($first->[$i] == 1)
38 4 1 if $second->[$i] == 1
41 1 3 unless $onsets
49 2 1 unless defined $replay and ref $replay eq "ARRAY"
74 3 10997 if $nozero and $score == 0
75 13 10984 if ($score < $best)
87 2 1 unless defined $replay and ref $replay eq "ARRAY"
96 2 1 unless defined $bpat and ref $bpat eq "ARRAY"
103 4 8 if $x == 1
113 2 1 unless defined $bpat and ref $bpat eq "ARRAY"
119 4 8 if $x == 1
136 1 11100 if $onsets >= $total
140 44500 132500 if (rand() < $onsets / $total) { }
166 44004 132012 if $x == 1
181 44012 132036 if ($bpat->[$i] == 1)
184 44012 132036 if ($$bpat[$j % $len] == 1)
193 1 11003 unless @deltas
201 2 3 unless defined $bpat and ref $bpat eq "ARRAY" and @$bpat
206 2 1 if $newlen <= $len
210 3 1 if ($bpat->[$i] == 1)
227 1 6 ref $track eq 'ARRAY' ? :