Condition Coverage

blib/lib/ChordPro/Chords.pm
Criterion Covered Total %
condition 49 121 40.5


and 3 conditions

line !l l&&!r l&&r condition
120 0 0 0 $info->{'fingers'} and @{$info->{'fingers'};}
124 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
136 0 0 0 $mode && $mode == 2
182 0 0 0 $info->{'fingers'} and @{$info->{'fingers'};}
187 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
254 7 0 0 ref $p and $p->isa("ChordPro::Chords::Parser")
279 197 0 0 ref $p and $p->isa("ChordPro::Chords::Parser")
323 2 0 49881 $frets and @$frets
2 49881 0 $frets and @$frets and @$frets != strings()
326 18840 31028 15 $fingers and @$fingers
49868 15 0 $fingers and @$fingers and @$fingers != strings()
329 0 0 49883 $base > 0 and $base < 24
332 18924 30951 8 $keys and @$keys
334 0 0 24 /^\d+$/u and $_ < 24
403 11504 18445 19873 $info->is_chord and $def->{'copy'}
18445 0 19873 $info->is_chord and $def->{'copy'} and $def->is_chord
425 0 0 49822 $frets && @$frets
18804 31018 0 $fingers && @$fingers
18882 30940 0 $keys && @$keys
437 11504 0 0 $i and $i->is_chord
476 82 21 83 $c->{$_} and @{$c->{$_};}
564 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
570 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'}}
573 0 0 0 $info->{'frets'} and @{$info->{'frets'};}

or 2 conditions

line l !l condition
58 0 0 $a0 // "\377"
0 0 $chordorderkey{$a0 // "\377"} // (return 0)
59 0 0 $b0 // "\377"
0 0 $chordorderkey{$b0 // "\377"} // (return 0)
110 0 0 $info->{'frets'} // []
150 0 0 $main::config->{'instrument'} || 'Guitar, 6 strings, standard tuning'
220 197 0 $cfg->{'tuning'} // []
222 197 0 $main::options //= {"verbose", 0}
381 49820 1 $def->{'base'} ||= 1
425 0 49822 $def->{'baselabeloffset'} || 0
469 62 0 $c->{'origin'} //= "user"

or 3 conditions

line l !l&&r !l&&!r condition
298 256 1581 480 $song_chords{$name} // $config_chords{$name}
305 0 9 221 $song_chords{$name} // $config_chords{$name}
363 30940 0 18881 $def->{'copy'} or $def->{'copyall'}
400 38318 11504 0 parse_chord($name) // "ChordPro::Chord::Common"->new({"name", $name})
462 62 0 0 $parser //= "ChordPro::Chords::Parser"->get_parser
486 0 0 0 $parser //= "ChordPro::Chords::Parser"->get_parser
515 53300 7 0 $parser //= "ChordPro::Chords::Parser"->get_parser
597 123 0 0 $xpose or $xcode