Branch Coverage

blib/lib/MIDI/Praxis/Variation.pm
Criterion Covered Total %
branch 35 38 92.1


line true false branch
58 1 51 unless $in
62 50 1 if ($in =~ /^([A-Za-z]+)(\d+)/s)
64 50 0 if exists $MIDI::Simple::Note{$1}
77 1 12 unless @notes
91 1 1 unless @notes
103 1 9 unless defined $delta and @notes
107 9 0 if ($notes[0] =~ /[A-G]/) { }
126 1 6 unless $axis and @notes
145 1 3 unless $axis and @notes
162 1 23 unless $arg
166 3 20 if ($arg =~ /^d(\d+)$/) { }
20 0 elsif (exists $MIDI::Simple::Length{$arg}) { }
183 1 3 unless @dur_or_len
199 1 7 unless $ratio and 1 < $ratio and @dur_or_len
215 1 7 unless $ratio and 1 < $ratio and @dur_or_len
231 1 2 unless @dur_or_len
249 1 2 unless @dur_or_len
267 1 4 unless defined $n and @notes
271 3 1 if (@notes >= $n)