Branch Coverage

lib/ChordPro/Output/HTML.pm
Criterion Covered Total %
branch 35 70 50.0


line true false branch
29 3 3 $_ =~ /^(display|default)$/ ? :
74 3 0 if (defined $s->{'subtitle'})
80 0 3 if $tidy
86 0 33 if ($elt->{'type'} eq "empty")
91 3 30 if ($elt->{'type'} eq "colb")
96 3 27 if ($elt->{'type'} eq "newpage")
101 0 27 if ($elt->{'type'} eq "songline")
106 0 27 if ($elt->{'type'} eq "tab")
109 0 0 if $_->{'type'} eq "set"
114 0 0 if $tidy
118 12 15 if (exists $elt->{'body'})
123 0 51 if ($e->{'type'} eq "empty")
127 48 3 if ($e->{'type'} eq "songline")
131 0 3 if ($e->{'type'} =~ /^comment(_\w+)?$/)
137 0 3 if ($e->{'type'} eq "set" and $e->{'name'} eq "label")
143 0 3 if ($e->{'type'} eq "delegate" and $e->{'subtype'} =~ /^image(?:-(\w+))?$/)
148 0 0 unless eval "require $pkg"
152 0 0 unless $res
156 0 3 if ($e->{'type'} eq "svg")
160 0 0 if $tidy
167 0 12 if $tidy
171 12 3 if ($elt->{'type'} eq "comment" or $elt->{'type'} eq "comment_italic")
175 0 12 if $tidy
179 0 3 if ($elt->{'type'} eq "image")
191 0 0 if $tidy
195 0 3 if ($elt->{'type'} eq "control")
196 0 0 if ($elt->{'name'} eq "lyrics-only")
198 0 0 unless $lyrics_only > 1
214 48 63 $_ eq '' ? :
217 24 24 if ($lyrics_only or $single_space and not $elt->{'chords'} && join('', @c) =~ /\S/)
230 0 24 if ($main::config->{'settings'}{'chords-under'})
234 0 0 $_ =~ s/^\s+// ? :
252 12 54 $_ =~ s/^\s+// ? :
321 0 174 unless defined $_[0]
353 0 144 unless length $fragment->{'text'}