Branch Coverage

blib/lib/MIDI/Util.pm
Criterion Covered Total %
branch 36 54 66.6


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 ? :
225 0 1 $divisions == 8 ? :
0 1 $divisions == 8 ? :
238 2 2 if ($duration =~ /^d(\d+)$/) { }
257 1 1 if $config_file
266 0 0 if ($soundfont) { }
274 0 0 unless system(@cmd) == 0
280 0 0 if (not $config and $^O eq 'darwin') { }
0 0 elsif (not $config and $^O eq 'MSWin32') { }
0 0 elsif (not $config) { }
291 0 0 unless system(@cmd) == 0