Branch Coverage

blib/lib/Music/PitchNum/ABC.pm
Criterion Covered Total %
branch 22 24 91.6


line true false branch
51 1 11 unless &looks_like_number($number)
57 9 2 unless ($params{'ignore_octave'})
59 4 5 if $octave > 4
60 2 7 if $octave > 5
61 4 5 if $octave < 4
71 0 11 if &looks_like_number($name)
75 11 0 if ($name =~ / (? (?: [_]{1,2} | [\^]{1,2} ) )? (?: (?[A-G])(?[,]+)? | (?[a-g])(?[']+)? ) /x)
82 4 7 $note =~ /[A-G]/ ? :
84 5 6 if (defined $octave)
85 3 2 $octave =~ /[,]/ ? :
88 4 7 if (defined $chrome)
89 2 2 $chrome =~ /[_]/ ? :