Condition Coverage

blib/lib/Music/LilyPondUtil.pm
Criterion Covered Total %
condition 40 52 76.9


and 3 conditions

line !l l&&!r l&&r condition
283 1 3 0 $mode ne 'absolute' and $mode ne 'relative'
320 10 1 0 $self->{'_mode'} ne 'absolute' and $self->{'_mode'} ne 'relative'
447 330 0 0 &blessed($obj) and $obj->can('pitch')
491 76 40 36 $delta > 0 and $default_dir < 0
40 40 36 $delta < 0 and $default_dir > 0
557 1 0 0 &blessed($pitch) and $pitch->can('pitch')
574 0 327 0 defined $number and &looks_like_number($number)

or 2 conditions

line l !l condition
209 51 56 $symbol ||= ''
254 3 0 $3 // ''
294 1 10 $param{'chrome'} || 'sharps'
298 1 10 $param{'keep_state'} // 1
299 1 10 $param{'ignore_register'} // 0
304 2 9 $param{'min_pitch'} // 0
305 1 10 $param{'max_pitch'} // 108
318 1 10 $param{'mode'} || 'absolute'
323 0 11 $param{'p2n_hook'} || sub { $P2N{$_[1]}{$_[0] % $DEG_IN_SCALE}; }
327 1 10 $param{'sticky_state'} // 0
328 1 10 $param{'strip_rests'} // 0
362 58 79 $3 // ''
526 1 1 $PATCH2INSTRUMENT{$patchnum} // ''
539 2 0 $3 // ''

or 3 conditions

line l !l&&r !l&&!r condition
341 3 0 138 $n =~ /^(?i)[rs]/ or $n =~ /\\rest/