Condition Coverage

lib/ChordPro/Output/PDF/Writer.pm
Criterion Covered Total %
condition 49 222 22.0


and 3 conditions

line !l l&&!r l&&r condition
232 0 0 497 $bgcol and $bgcol =~ /^no(?:ne)?$/i
235 497 0 0 $frame and $frame =~ /^no(?:ne)?$/i
350 0 0 0 $fillcolor and not $strokecolor
351 0 0 0 $fillcolor and $strokecolor
352 0 0 0 $strokecolor and not $fillcolor
367 0 0 0 $fillcolor and not $strokecolor
368 0 0 0 $fillcolor and $strokecolor
369 0 0 0 $strokecolor and not $fillcolor
381 0 0 0 $fillcolor and not $strokecolor
382 0 0 0 $fillcolor and $strokecolor
383 0 0 0 $strokecolor and not $fillcolor
425 0 0 0 not $subtype and $uri =~ /\.(\w+)$/
514 0 0 0 $trbl =~ /t/ and $trbl =~ /r/
0 0 0 $trbl =~ /t/ and $trbl =~ /r/ and $trbl =~ /b/
0 0 0 $trbl =~ /t/ and $trbl =~ /r/ and $trbl =~ /b/ and $trbl =~ /l/
616 58 0 0 exists $main::config->{'debug'}{'pagealign'} and $main::config->{'debug'}{'pagealign'}
634 24 0 0 $bg = $ps->{'formats'}{'filler'}{'background'} and $ffile = expand_tilde($bg)
24 0 0 $bg = $ps->{'formats'}{'filler'}{'background'} and $ffile = expand_tilde($bg) and $filler = $self->{'pdfapi'}->open($ffile)
713 0 0 8 $bk and @$bk
724 16 0 0 @{$ctl->{'fields'};} == 1 and $ctl->{'fields'}[0] eq "bookmark"
777 0 0 0 defined $cur_ol and $let eq $cur_let
796 16 0 0 @$book == 1 and ref $book->[0] eq "ChordPro::Song"
849 0 0 8 $file and $file ne "-"
1093 0 0 0 $_[0] and $_[0] =~ /^-/

or 2 conditions

line l !l condition
150 497 0 $col // "foreground"
306 0 0 $lw || 1
315 0 0 $cap //= 2
320 0 0 $lw || 1
329 0 0 $cap //= 2
334 0 0 $lw || 1
348 0 0 $lw || 1
379 0 0 $lw || 1
392 0 0 $lw || 1
462 0 0 $options{'xscale'} || $options{'scale'} || 1
465 0 0 $options{'valign'} // "bottom"
466 0 0 $options{'align'} // "left"
508 0 0 $options{'bordertrbl'} // "trbl"
543 0 0 $options{'colour'} || $options{'color'} || 'black'
544 0 0 $options{'linewidth'} || 0.1
545 0 0 $options{'width'} || 40
546 0 0 $options{'width'} || $options{'height'} || 40
575 40 24 $page ||= 0
622 4 54 $even ||= 0
689 30 0 $style //= "arabic"
690 8 22 $start //= 1
721 8 16 $ctl->{'omit'} // 0
763 32 16 $lh{$cur} //= []
893 0 0 $remap //= "free"
972 0 80 ($font->{'fd'}->get_shaping || $font->{'shaping'}) // 0

or 3 conditions

line l !l&&r !l&&!r condition
91 0 8 0 $info{'CreationDate'} //= pdf_date()
110 0 8 0 $t ||= $regtest ? $faketime : time
149 0 497 0 not defined $col or $col =~ /^foreground(?:-medium|-light)?$/
163 73 472 48 not defined $col or $col eq "background"
180 0 0 0 $font->{'has_sharp'} //= $font->{'fd'}{'font'}->glyphByUni(9839) ne ".notdef"
186 0 0 0 $font->{'has_flat'} //= $font->{'fd'}{'font'}->glyphByUni(9837) ne ".notdef"
192 0 0 0 $font->{'has_delta'} //= $font->{'fd'}{'font'}->glyphByUni(916) ne ".notdef"
204 288 209 0 $font ||= $self->{'font'}
206 0 497 0 $size ||= $font->{'size'}
234 0 0 497 $font->{'frame'} || $debug
236 0 0 497 $bgcol or $frame
241 0 0 0 $debug || $font->{'color'} || $self->{'ps'}{'theme'}{'foreground'}
258 0 449 0 $size ||= $font->{'size'}
259 0 0 0 $font->{'size'} || $font->{'fd'}{'size'}
449 0 0 $size ||= $font->{'size'} || $font->{'fd'}{'size'}
276 72 613 0 $font ||= $self->{'font'}
278 685 0 0 $self->{'fontsize'} || $font->{'size'}
0 685 0 $size ||= $self->{'fontsize'} || $font->{'size'}
279 677 8 0 $self->{'tmplayout'} //= $self->{'layout'}->copy
289 0 0 0 $font ||= $self->{'font'}
291 0 0 0 $self->{'fontsize'} || $font->{'size'}
0 0 0 $size ||= $self->{'fontsize'} || $font->{'size'}
292 0 0 0 $self->{'tmplayout'} //= $self->{'layout'}->copy
426 0 0 0 $subtype //= $1
463 0 0 0 $options{'yscale'} || $options{'scale'} || $scale_x
504 0 0 0 $options{'bordercolor'} || $options{'color'}
642 0 0 0 $file ne $ffile or not @pages
741 8 8 0 $ol_root //= $pdf->outlines
789 0 0 0 $ol->can("destination") // $ol->can("dest")
807 48 0 0 $ol->can("destination") // $ol->can("dest")
891 0 0 40 $ENV{'CHORDPRO_COREFONTS_REMAP'} // $ps->{'corefonts'}{'remap'}
972 0 0 80 $font->{'fd'}->get_shaping || $font->{'shaping'}

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
625 0 4 25 29 $even xor is_odd($page)