Condition Coverage

blib/lib/MIDI/Drummer/Tiny.pm
Criterion Covered Total %
condition 15 75 20.0


or 2 conditions

line l !l condition
206 0 0 shift() // 0
405 34 0 $args{'patterns'} ||= []
407 0 34 $args{'negate'} ||= 0
408 0 34 $args{'repeat'} ||= 1
415 33 0 dura_size($args{'duration'}) || 1
427 0 34 $args{'vary'} ||= {0, sub { $self->rest($args{"duration"}); } , 1, sub { $self->note($args{"duration"}, $args{'instrument'}); } }
475 1 10 $fill ||= sub { return {"duration", 8, $self->open_hh, "000", $self->snare, 111, $self->kick, "000"}; }
478 11 0 delete $fill_patterns->{'duration'} || 8
547 4 1 $set //= 1

or 3 conditions

line l !l&&r !l&&!r condition
172 0 0 0 shift() || $self->bars
181 0 0 0 shift() || $self->bars
193 0 0 0 shift() || $self->bars
205 0 0 0 shift() || $self->bars
241 0 0 0 shift() || $self->bars
258 0 0 0 shift() || $self->bars
277 0 0 0 shift() || $self->bars
290 0 0 0 shift() || $self->bars
304 0 0 0 shift() || $self->bars
320 0 0 0 shift() || $self->bars
335 0 0 0 $grace ||= $self->snare
336 0 0 0 $patch ||= $self->snare
340 0 0 0 $accent ||= sprintf("%0.f", $self->score->Volume / 2)
353 0 0 0 $patch ||= $self->snare
363 0 0 0 $patch ||= $self->snare
404 34 0 0 $args{'instrument'} ||= $self->snare
406 0 34 0 $args{'beats'} ||= $self->beats
420 0 1 0 $dump->{$size} || $self->quarter
491 9 2 0 $dump->{$size} || $self->eighth