Branch Coverage

blib/lib/MIDI/Drummer/Tiny/Grooves.pm
Criterion Covered Total %
branch 21 28 75.0


line true false branch
159 0 3 unless -e $path
165 4380 3 if $line =~ /\r$/
166 807 3576 if ($line =~ /^Instrument/) { }
2649 927 elsif ($line =~ /^([A-Z][A-Z]),([01]+)$/) { }
66 861 elsif ($line =~ /^\* (.+)$/) { }
178 804 57 if (keys %patterns)
251 0 0 unless (keys %$set)
254 0 0 unless ($groove_number)
286 3 0 unless ($set and keys %$set)
290 2 1 if ($args->{'cat'})
293 13 523 if (lc($set->{$k}{'cat'}) =~ /$string/)
298 1 2 if ($args->{'name'})
301 3 265 if (lc($set->{$k}{'name'}) =~ /$string/)
320 1 0 if ($self->return_patterns) { }