Branch Coverage

blib/lib/MIDI/Tools.pm
Criterion Covered Total %
branch 30 34 88.2


line true false branch
70 2 8 unless defined $e and ref $e
75 4 5 if ref $_ and $#{$_;} >= 4 and $$_[0] eq 'note_on' and $$_[4] > 0
91 2 8 unless defined $e and ref $e
95 4 5 if (ref $_ and $#{$_;} >= 4 and $$_[0] eq 'note_on' and $$_[4] > 0)
96 2 2 if not defined $lo or $$_[3] < $lo
97 4 0 if not defined $hi or $$_[3] > $hi
101 6 2 unless defined $lo
115 2 8 unless defined $e and ref $e
119 8 9 if (ref $_ and $#{$_;} >= 4 and $$_[0] eq 'note_on' and $$_[4] > 0)
125 6 2 if $count == 0
130 8 7 if (ref $_ and $#{$_;} >= 4 and $$_[0] eq 'note_on' and $$_[4] > 0)
154 0 3 unless defined $e and ref $e
158 3 6 if (ref $_ and $#{$_;} >= 4 and $$_[0] =~ /^note_o(n|ff)$/ and $$_[3] < $lowest || $$_[3] > $highest) { }
179 0 9 unless defined $e and ref $e
183 9 0 if (ref $_ and $#{$_;} >= 4 and $$_[0] =~ /^note_o(n|ff)$/)
185 1 8 if $$_[3] < 0
186 1 8 if $$_[3] > 127