| lib/ChordPro/Output/HTML.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 23 | 53 | 43.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 148 | 0 | 3 | 0 | $e->{'type'} eq "set" and $e->{'name'} eq "label" |
| 154 | 3 | 0 | 0 | $e->{'type'} eq "delegate" and $e->{'subtype'} =~ /^image(?:-(\w+))?$/ |
| 245 | 0 | 8 | 8 | $elt->{'chords'} && join('', @c) =~ /\S/ |
| 16 | 8 | 8 | $single_space and not $elt->{'chords'} && join('', @c) =~ /\S/ | |
| 408 | 0 | 102 | 0 | $fragment->{'color'} and $fragment->{'color'} ne $self->{'_currentcolor'} |
| 411 | 0 | 102 | 0 | $fragment->{'size'} and $fragment->{'size'} ne $self->{'_currentsize'} |
| line | l | !l | condition |
|---|---|---|---|
| 21 | 3 | 0 | $main::config->{'html'} // {} |
| 22 | 3 | 0 | $cfg->{'styles'}{'display'} //= "chordpro.css" |
| 23 | 3 | 0 | $cfg->{'styles'}{'print'} //= "chordpro_print.css" |
| 71 | 3 | 0 | $s->{'title'} // "Untitled" |
| 240 | 24 | 24 | $elt->{'chords'} //= [""] |
| 394 | 0 | 0 | $fragment->{'label'} // "" |
| 424 | 0 | 102 | $fragment->{'href'} // "" |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 57 | 3 | 0 | 0 | $s->{'config'} // $main::config |
| 156 | 0 | 0 | 0 | $1 // $e->{'delegate'} |
| 160 | 0 | 0 | 0 | $pkg->can($e->{'handler'}) // die("HTML: Missing delegate handler ${pkg}::$e->{'handler'}\n") |
| 182 | 9 | 3 | 0 | $elt->{'type'} eq "comment" or $elt->{'type'} eq "comment_italic" |
| 212 | 0 | 0 | 0 | $elt->{'uri'} //= $s->{'assets'}{$elt->{'id'}}{'uri'} |
| 245 | 16 | 8 | 24 | $lyrics_only or $single_space and not $elt->{'chords'} && join('', @c) =~ /\S/ |
| 399 | 102 | 0 | 0 | $fragment->{'font'} || $self->{'_currentfont'} |