Condition Coverage

lib/ChordPro/Output/ChordPro.pm
Criterion Covered Total %
condition 17 47 36.1


and 3 conditions

line !l l&&!r l&&r condition
137 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__"
150 26 0 0 $s->{'spreadimage'} and $variant eq "msp"
152 0 0 0 $a->{'delegate'} =~ /^abc$/iu and not $a->{'uri'}
288 0 0 0 $rechorus->{'type'} and $rechorus->{'tag'}
338 71 0 0 $elt->{'type'} eq "image" and not $msp
340 0 0 0 $msp and not $uri =~ /^id=/u
403 2 1 23 $s->{'chords'} and @{$s->{'chords'}{'chords'};}
3 0 23 $s->{'chords'} and @{$s->{'chords'}{'chords'};} and $variant ne "msp"
536 0 0 0 $info->{'keys'} and @{$info->{'keys'};}
545 30 60 6 $info->{'fingers'} and @{$info->{'fingers'};}

or 2 conditions

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

or 3 conditions

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