Condition Coverage

blib/lib/MIDI/Simple/Drummer.pm
Criterion Covered Total %
condition 26 43 60.4


and 3 conditions

line !l l&&!r l&&r condition
296 0 0 11 @_ > 1 and not @_ % 2
400 4 3 1 $args{'-beat'} == 1 && $args{'-fill'}
468 7 0 3 $args{'-name'} && $args{'-type'} && !($args{'-name'} =~ /^.+\s+$args{'-type'}$/)

or 2 conditions

line l !l condition
110 8 0 $self->{'-beats'} ||= 4
111 8 0 $self->{'-divisions'} ||= 4
294 185 0 shift() || (return)
327 1 0 shift() || (return)
335 57 0 shift() || (return)
377 22 1 shift() || 1
419 2 1 shift() || 1
443 0 2 shift() || 'Pedal Hi-Hat'

or 3 conditions

line l !l&&r !l&&!r condition
96 0 9 0 $self->{'-score'} ||= "MIDI::Simple"->new_score
101 0 9 0 $self->{'-kit'} ||= $self->_default_kit
102 0 9 0 $self->{'-patterns'} ||= $self->_default_patterns
378 11 12 0 shift() || $self->kit('backbeat')
474 24 4 25 $n eq 0 or $n eq $args{'-last'}
505 6 1 0 shift() || $self->{'-file'}