Branch Coverage

blib/lib/ChordPro/Output/HTML.pm
Criterion Covered Total %
branch 33 60 55.0


line true false branch
29 3 3 $_ =~ /^(display|default)$/ ? :
74 3 0 if (defined $s->{'subtitle'})
80 0 3 if $tidy
84 0 33 if ($elt->{'type'} eq "empty")
89 3 30 if ($elt->{'type'} eq "colb")
94 3 27 if ($elt->{'type'} eq "newpage")
99 0 27 if ($elt->{'type'} eq "songline")
104 0 27 if ($elt->{'type'} eq "tab")
107 0 0 if $_->{'type'} eq "set"
112 0 0 if $tidy
116 12 15 if (exists $elt->{'body'})
119 0 51 if ($e->{'type'} eq "empty")
123 48 3 if ($e->{'type'} eq "songline")
127 0 3 if ($e->{'type'} =~ /^comment(_\w+)?$/)
133 0 3 if ($e->{'type'} eq "set" and $e->{'name'} eq "label")
142 0 12 if $tidy
146 12 3 if ($elt->{'type'} eq "comment" or $elt->{'type'} eq "comment_italic")
150 0 12 if $tidy
154 0 3 if ($elt->{'type'} eq "image")
166 0 0 if $tidy
170 0 3 if ($elt->{'type'} eq "control")
171 0 0 if ($elt->{'name'} eq "lyrics-only")
173 0 0 unless $lyrics_only > 1
189 48 63 $_ eq '' ? :
192 24 24 if ($lyrics_only or $single_space and not $elt->{'chords'} && join('', @c) =~ /\S/)
205 0 24 if ($main::config->{'settings'}{'chords-under'})
209 0 0 $_ =~ s/^\s+// ? :
227 12 54 $_ =~ s/^\s+// ? :
234 0 174 unless defined $_[0]
266 0 144 unless length $fragment->{'text'}