Condition Coverage

blib/lib/ChordPro/Output/ChordPro.pm
Criterion Covered Total %
condition 15 38 39.4


and 3 conditions

line !l l&&!r l&&r condition
134 0 26 0 @{$s->{'body'};} and $s->{'body'}[-1]{'type'} eq "diagrams"
26 0 0 @{$s->{'body'};} and $s->{'body'}[-1]{'type'} eq "diagrams" and $s->{'body'}[-1]{'origin'} ne "__CLI__"
253 0 0 0 $rechorus->{'type'} and $rechorus->{'tag'}
305 0 0 0 $msp and not $uri =~ /^id=/u
359 2 1 23 $s->{'chords'} and @{$s->{'chords'}{'chords'};}
3 0 23 $s->{'chords'} and @{$s->{'chords'}{'chords'};} and $variant ne "msp"
494 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
503 30 60 6 $info->{'fingers'} and @{$info->{'fingers'};}

or 2 conditions

line l !l condition
61 0 26 $main::options->{'backend-option'}{'structure'} // ""
63 0 26 $main::options->{'backend-option'}{'variant'} || 'cho'
84 0 0 $s->{'meta'}{'source'} //= ["Lead Sheet"]
85 0 0 $s->{'meta'}{'custom2'} //= [$seq]

or 3 conditions

line l !l&&r !l&&!r condition
306 0 0 0 $imgs{$uri} //= keys %imgs
412 24 16 79 $lyrics_only or not exists $elt->{'chords'}