Branch Coverage

blib/lib/MIDI/Util.pm
Criterion Covered Total %
branch 38 58 65.5


line true false branch
72 1 0 if defined $patch
82 1 14 if (lc $key eq 'volume') { }
1 13 elsif (lc $key eq 'length') { }
1 12 elsif (lc $key eq 'ticks') { }
1 11 elsif (lc $key eq 'note') { }
1 10 elsif (lc $key eq 'note2number') { }
1 9 elsif (lc $key eq 'number2note') { }
1 8 elsif (lc $key eq 'patch2number') { }
1 7 elsif (lc $key eq 'number2patch') { }
1 6 elsif (lc $key eq 'notenum2percussion') { }
1 5 elsif (lc $key eq 'percussion2notenum') { }
1 4 elsif (lc $key eq 'all_events') { }
1 3 elsif (lc $key eq 'midi_events') { }
1 2 elsif (lc $key eq 'meta_events') { }
1 1 elsif (lc $key eq 'text_events') { }
1 0 elsif (lc $key eq 'nontext_meta_events') { }
185 0 0 $name eq 'length' && $precision >= 0 ? :
196 0 1 if ($notes[0] =~ /^(\d)$/)
217 4 0 if ($flag)
231 0 1 $divisions == 8 ? :
0 1 $divisions == 8 ? :
244 2 2 if ($duration =~ /^d(\d+)$/) { }
263 1 1 if $config_file
272 0 0 if ($soundfont) { }
280 0 0 unless system(@cmd) == 0
287 0 0 if (not $config and $^O eq 'darwin') { }
0 0 elsif (not $config and $^O eq 'MSWin32') { }
0 0 elsif (not $config) { }
298 0 0 unless system(@cmd) == 0