Condition Coverage

lib/ChordPro/Chords.pm
Criterion Covered Total %
condition 66 127 51.9


and 3 conditions

line !l l&&!r l&&r condition
123 0 0 0 $info->{'fingers'} and @{$info->{'fingers'};}
127 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
139 0 0 0 $mode && $mode == 2
185 0 0 0 $info->{'fingers'} and @{$info->{'fingers'};}
190 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
269 7 0 0 ref $p and $p->isa("ChordPro::Chords::Parser")
294 208 0 0 ref $p and $p->isa("ChordPro::Chords::Parser")
339 3 0 49892 $frets and @$frets
3 49892 0 $frets and @$frets and @$frets != strings()
342 18841 31039 15 $fingers and @$fingers
49880 15 0 $fingers and @$fingers and @$fingers != strings()
345 0 0 49895 $base > 0 and $base < 24
348 18936 30947 12 $keys and @$keys
350 0 0 39 /^\d+$/u and $_ < 24
425 11515 18445 19873 $info->is_chord and $def->{'copy'}
18445 0 19873 $info->is_chord and $def->{'copy'} and $def->is_chord
447 0 0 49833 $frets && @$frets
18804 31029 0 $fingers && @$fingers
18893 30940 0 $keys && @$keys
459 11515 0 0 $i and $i->is_chord
498 85 17 87 $c->{$_} and @{$c->{$_};}
586 242 296 0 $info->{'keys'} and @{$info->{'keys'};}
590 14 0 524 defined $info->{'qual_canon'} and defined $info->{'ext_canon'}
14 10 514 defined $info->{'qual_canon'} and defined $info->{'ext_canon'} and defined $keys{$info->{'qual_canon'} . $info->{'ext_canon'}}
598 2 0 22 $info->{'frets'} and @{$info->{'frets'};}
620 14 512 10 defined $info->{'bass'} and $info->{'bass'} ne ""

or 2 conditions

line l !l condition
61 7 0 $a0 // "\377"
7 0 $chordorderkey{$a0 // "\377"} // (return 0)
62 7 0 $b0 // "\377"
7 0 $chordorderkey{$b0 // "\377"} // (return 0)
113 0 0 $info->{'frets'} // []
153 0 0 $main::config->{'instrument'} || 'Guitar, 6 strings, standard tuning'
223 208 0 $cfg->{'tuning'} // []
225 208 0 $main::options //= {"verbose", 0}
403 49831 1 $def->{'base'} ||= 1
447 0 49833 $def->{'baselabeloffset'} || 0
491 63 0 $c->{'origin'} //= "user"

or 3 conditions

line l !l&&r !l&&!r condition
249 1248 0 0 $p->{'ns_tbl'}{$1} // $p->{'nf_tbl'}{$1}
313 257 1576 592 $song_chords{$name} // $config_chords{$name}
320 0 9 268 $song_chords{$name} // $config_chords{$name}
383 30940 0 18892 $def->{'copy'} or $def->{'copyall'}
422 38318 11515 0 parse_chord($name) // "ChordPro::Chord::Common"->new({"name", $name})
484 63 0 0 $parser //= "ChordPro::Chords::Parser"->get_parser
508 0 0 0 $parser //= "ChordPro::Chords::Parser"->get_parser
537 53368 7 0 $parser //= "ChordPro::Chords::Parser"->get_parser
641 123 0 0 $xpose or $xcode