Condition Coverage

lib/ChordPro/Output/PDF/Writer.pm
Criterion Covered Total %
condition 38 133 28.5


and 3 conditions

line !l l&&!r l&&r condition
175 0 0 684 $bgcol and $bgcol =~ /^no(?:ne)?$/i
178 684 0 0 $frame and $frame =~ /^no(?:ne)?$/i
281 0 0 0 $fillcolor and not $strokecolor
282 0 0 0 $fillcolor and $strokecolor
283 0 0 0 $strokecolor and not $fillcolor
298 0 0 0 $fillcolor and not $strokecolor
299 0 0 0 $fillcolor and $strokecolor
300 0 0 0 $strokecolor and not $fillcolor
476 0 0 8 $book and @$book
523 0 0 0 defined $cur_ol and $cur_let eq $let
563 0 0 8 $file and $file ne "-"

or 2 conditions

line l !l condition
100 684 0 $col // "foreground"
237 0 0 $lw || 1
246 0 120 $cap //= 2
251 120 0 $lw || 1
260 0 144 $cap //= 2
265 144 0 $lw || 1
279 0 0 $lw || 1
310 48 0 $lw || 1
322 48 0 $lw || 1
338 0 0 $lw || 1
398 41 26 $page ||= 0
453 22 0 $style //= "arabic"
510 32 16 $lh{$cur} //= []
652 0 0 ($font->{'fd'}->get_shaping || $font->{'shaping'}) // 0

or 3 conditions

line l !l&&r !l&&!r condition
47 0 8 0 $info{'CreationDate'} //= pdf_date()
66 0 8 0 $t ||= $regtest ? $faketime : time
99 0 684 360 not defined $col or $col =~ /^foreground(?:-medium|-light)?$/
113 68 664 0 not defined $col or $col eq "background"
130 0 0 0 $font->{'has_sharp'} //= $font->{'fd'}{'font'}->glyphByUni(9839) ne ".notdef"
136 0 0 0 $font->{'has_flat'} //= $font->{'fd'}{'font'}->glyphByUni(9837) ne ".notdef"
148 480 204 0 $font ||= $self->{'font'}
150 192 492 0 $size ||= $font->{'size'}
177 0 0 684 $font->{'frame'} || $debug
179 0 0 684 $bgcol or $frame
184 0 0 0 $debug || $font->{'color'} || $self->{'ps'}{'theme'}{'foreground'}
202 240 442 0 $size ||= $font->{'size'}
203 0 0 0 $font->{'size'} || $font->{'fd'}{'size'}
682 0 0 $size ||= $font->{'size'} || $font->{'fd'}{'size'}
209 0 559 0 $font ||= $self->{'font'}
211 559 0 0 $self->{'fontsize'} || $font->{'size'}
0 559 0 $size ||= $self->{'fontsize'} || $font->{'size'}
212 551 8 0 $self->{'tmplayout'} //= "Text::Layout"->new($self->{'pdf'})
221 0 0 0 $font ||= $self->{'font'}
223 0 0 0 $self->{'fontsize'} || $font->{'size'}
0 0 0 $size ||= $self->{'fontsize'} || $font->{'size'}
224 0 0 0 $self->{'tmplayout'} //= "Text::Layout"->new($self->{'pdf'})
488 8 8 0 $ol_root //= $pdf->outlines
652 0 0 0 $font->{'fd'}->get_shaping || $font->{'shaping'}