Condition Coverage

lib/ChordPro/Output/HTML.pm
Criterion Covered Total %
condition 19 33 57.5


and 3 conditions

line !l l&&!r l&&r condition
137 0 3 0 $e->{'type'} eq "set" and $e->{'name'} eq "label"
143 3 0 0 $e->{'type'} eq "delegate" and $e->{'subtype'} =~ /^image(?:-(\w+))?$/
217 0 8 8 $elt->{'chords'} && join('', @c) =~ /\S/
16 8 8 $single_space and not $elt->{'chords'} && join('', @c) =~ /\S/

or 2 conditions

line l !l condition
19 3 0 $main::config->{'html'} // {}
20 3 0 $cfg->{'styles'}{'display'} //= "chordpro.css"
21 3 0 $cfg->{'styles'}{'print'} //= "chordpro_print.css"
60 3 0 $s->{'title'} // "Untitled"
149 0 0 $pkg->can($e->{'handler'}) // die("HTML: Missing delegate handler ${pkg}::$e->{'handler'}\n")
212 24 24 $elt->{'chords'} //= [""]

or 3 conditions

line l !l&&r !l&&!r condition
145 0 0 0 $1 // $e->{'delegate'}
171 9 3 3 $elt->{'type'} eq "comment" or $elt->{'type'} eq "comment_italic"
217 16 8 24 $lyrics_only or $single_space and not $elt->{'chords'} && join('', @c) =~ /\S/