Condition Coverage

blib/lib/MIDI/Pitch.pm
Criterion Covered Total %
condition 23 45 51.1


and 3 conditions

line !l l&&!r l&&r condition
80 3 3 663 defined $n and lc($n) =~ /^([a-g][b#]?)(-?\d\d?)$/
83 0 1 662 $p >= 0 and $p <= 127
103 4 2 660 defined $p and $p =~ /^-?(\d+|\d*(\.\d+))$/
105 2 1 657 $p >= 0 and $p <= 127
121 2 2 718 defined $f and $f =~ /^(\d+|\d*(\.\d+))$/
4 2 716 defined $f and $f =~ /^(\d+|\d*(\.\d+))$/ and $f > 0
136 3 1 588 defined $p and $p =~ /^-?(\d+|\d*(\.\d+))$/
183 0 0 0 defined $semitone and $semitone =~ /^\d+$/ && $semitone >= 0 && $semitone <= 11 || exists $MIDI::Pitch::name2pitch_lut{$semitone}
188 0 0 0 defined $pitch and $pitch =~ /^\d+$/
0 0 0 defined $pitch and $pitch =~ /^\d+$/ and $pitch >= 0
0 0 0 defined $pitch and $pitch =~ /^\d+$/ and $pitch >= 0 and $pitch <= 127
197 0 0 0 $pitch - $result > 6 and $result < 116
198 0 0 0 $result - $pitch > 6 and $result > 11
217 1 2 1 defined $f and $f > 0

or 3 conditions

line l !l&&r !l&&!r condition
183 0 0 0 $semitone =~ /^\d+$/ && $semitone >= 0 && $semitone <= 11 || exists $MIDI::Pitch::name2pitch_lut{$semitone}