Condition Coverage

blib/lib/ChordPro/Output/PDF/Writer.pm
Criterion Covered Total %
condition 40 136 29.4


and 3 conditions

line !l l&&!r l&&r condition
187 0 0 684 $bgcol and $bgcol =~ /^no(?:ne)?$/i
190 684 0 0 $frame and $frame =~ /^no(?:ne)?$/i
293 0 0 0 $fillcolor and not $strokecolor
294 0 0 0 $fillcolor and $strokecolor
295 0 0 0 $strokecolor and not $fillcolor
310 0 0 0 $fillcolor and not $strokecolor
311 0 0 0 $fillcolor and $strokecolor
312 0 0 0 $strokecolor and not $fillcolor
488 0 0 8 $book and @$book
535 0 0 0 defined $cur_ol and $cur_let eq $let
575 0 0 8 $file and $file ne "-"

or 2 conditions

line l !l condition
100 684 0 $col // "foreground"
249 0 0 $lw || 1
258 0 120 $cap //= 2
263 120 0 $lw || 1
272 0 144 $cap //= 2
277 144 0 $lw || 1
291 0 0 $lw || 1
322 240 0 $lw || 1
334 48 0 $lw || 1
350 0 0 $lw || 1
410 41 26 $page ||= 0
465 22 0 $style //= "arabic"
522 32 16 $lh{$cur} //= []
664 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 744 not defined $col or $col =~ /^foreground(?:-medium|-light)?$/
113 68 664 0 not defined $col or $col eq "background"
137 0 0 0 $font->{'has_sharp'} //= $font->{'fd'}{'font'}->glyphByUni(9839) ne ".notdef"
143 0 0 0 $font->{'has_flat'} //= $font->{'fd'}{'font'}->glyphByUni(9837) ne ".notdef"
155 480 204 0 $font ||= $self->{'font'}
157 192 492 0 $size ||= $font->{'size'}
178 676 8 0 $yflip //= _yflip()
189 0 0 684 $font->{'frame'} || $debug
191 0 0 684 $bgcol or $frame
196 0 0 0 $debug || $font->{'color'} || $self->{'ps'}{'theme'}{'foreground'}
214 240 442 0 $size ||= $font->{'size'}
215 0 0 0 $font->{'size'} || $font->{'fd'}{'size'}
682 0 0 $size ||= $font->{'size'} || $font->{'fd'}{'size'}
221 0 559 0 $font ||= $self->{'font'}
223 559 0 0 $self->{'fontsize'} || $font->{'size'}
0 559 0 $size ||= $self->{'fontsize'} || $font->{'size'}
224 551 8 0 $self->{'tmplayout'} //= "Text::Layout"->new($self->{'pdf'})
233 0 0 0 $font ||= $self->{'font'}
235 0 0 0 $self->{'fontsize'} || $font->{'size'}
0 0 0 $size ||= $self->{'fontsize'} || $font->{'size'}
236 0 0 0 $self->{'tmplayout'} //= "Text::Layout"->new($self->{'pdf'})
500 8 8 0 $ol_root //= $pdf->outlines
664 0 0 0 $font->{'fd'}->get_shaping || $font->{'shaping'}