Branch Coverage

blib/lib/Music/Harmonica/TabsCreator.pm
Criterion Covered Total %
branch 34 46 73.9


line true false branch
34 0 420 unless $tuning->{'notes'}[$i] =~ /^(\w)(\d)$/u
37 9 9 if ($fix)
42 0 9 unless $tuning->{'notes'}[-1] =~ /^B#(\d+)$/u
204 0 16 if $@ or @key_tone != 1
216 0 0 unless exists $ALL_TUNINGS{$tuning_id}
224 0 0 if $@ or @key_tone != 1
226 0 0 if (&looks_like_number($_)) { }
234 4492 641 if $b == 0
236 420 221 if ($tab =~ /^\((.+)\)$/u) { }
250 78 146 if @{$tunings;} and &none(sub { $_ eq $k; } , @{$tunings;})
263 1392 3100 if exists $v->{'avoid_tones'}
282 2 1 if $@
288 0 0 if $@
293 0 1 unless (%tabs)
303 11 2 if ($other_idx == -1) { }
315 16 112 $was_nl ? :
343 1 132 unless @real_tones
352 57 75 if $tuning->{'is_chromatic'}
357 21 111 if (exists $tuning->{'avoid_tones'})
365 495 1076 if (@tab)
368 51 444 if ($tuning->{'is_chromatic'} and $key == $preferred_key)
380 5315 21 if (&looks_like_number($t)) { }
381 1076 4239 unless exists $scale_tones{$t + $offset}