Condition Coverage

lib/ChordPro/Chords.pm
Criterion Covered Total %
condition 50 127 39.3


and 3 conditions

line !l l&&!r l&&r condition
122 0 0 0 $info->{'fingers'} and @{$info->{'fingers'};}
126 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
138 0 0 0 $mode && $mode == 2
184 0 0 0 $info->{'fingers'} and @{$info->{'fingers'};}
189 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
268 7 0 0 ref $p and $p->isa("ChordPro::Chords::Parser")
293 199 0 0 ref $p and $p->isa("ChordPro::Chords::Parser")
338 2 0 49883 $frets and @$frets
2 49883 0 $frets and @$frets and @$frets != strings()
341 18840 31030 15 $fingers and @$fingers
49870 15 0 $fingers and @$fingers and @$fingers != strings()
344 0 0 49885 $base > 0 and $base < 24
347 18926 30951 8 $keys and @$keys
349 0 0 24 /^\d+$/u and $_ < 24
418 11506 18445 19873 $info->is_chord and $def->{'copy'}
18445 0 19873 $info->is_chord and $def->{'copy'} and $def->is_chord
440 0 0 49824 $frets && @$frets
18804 31020 0 $fingers && @$fingers
18884 30940 0 $keys && @$keys
452 11506 0 0 $i and $i->is_chord
491 82 21 83 $c->{$_} and @{$c->{$_};}
579 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
583 0 0 0 defined $info->{'qual_canon'} and defined $info->{'ext_canon'}
0 0 0 defined $info->{'qual_canon'} and defined $info->{'ext_canon'} and defined $keys{$info->{'qual_canon'} . $info->{'ext_canon'}}
591 0 0 0 $info->{'frets'} and @{$info->{'frets'};}
613 0 0 0 defined $info->{'bass'} and $info->{'bass'} ne ""

or 2 conditions

line l !l condition
60 0 0 $a0 // "\377"
0 0 $chordorderkey{$a0 // "\377"} // (return 0)
61 0 0 $b0 // "\377"
0 0 $chordorderkey{$b0 // "\377"} // (return 0)
112 0 0 $info->{'frets'} // []
152 0 0 $main::config->{'instrument'} || 'Guitar, 6 strings, standard tuning'
222 199 0 $cfg->{'tuning'} // []
224 199 0 $main::options //= {"verbose", 0}
396 49822 1 $def->{'base'} ||= 1
440 0 49824 $def->{'baselabeloffset'} || 0
484 62 0 $c->{'origin'} //= "user"

or 3 conditions

line l !l&&r !l&&!r condition
248 1194 0 0 $p->{'ns_tbl'}{$1} // $p->{'nf_tbl'}{$1}
312 256 1581 480 $song_chords{$name} // $config_chords{$name}
319 0 9 221 $song_chords{$name} // $config_chords{$name}
378 30940 0 18883 $def->{'copy'} or $def->{'copyall'}
415 38318 11506 0 parse_chord($name) // "ChordPro::Chord::Common"->new({"name", $name})
477 62 0 0 $parser //= "ChordPro::Chords::Parser"->get_parser
501 0 0 0 $parser //= "ChordPro::Chords::Parser"->get_parser
530 53302 7 0 $parser //= "ChordPro::Chords::Parser"->get_parser
634 123 0 0 $xpose or $xcode