Condition Coverage

lib/ChordPro/lib/SVGPDF/FontManager.pm
Criterion Covered Total %
condition 0 52 0.0


and 3 conditions

line !l l&&!r l&&r condition
43 0 0 0 $_->{'font-style'} and $style->{'font-style'}
0 0 0 $_->{'font-style'} and $style->{'font-style'} and $_->{'font-style'} ne $style->{'font-style'}
45 0 0 0 $_->{'font-weight'} and $style->{'font-weight'}
0 0 0 $_->{'font-weight'} and $style->{'font-weight'} and $_->{'font-weight'} ne $style->{'font-weight'}

or 2 conditions

line l !l condition
30 0 0 $style->{'font-style'} // "normal"
31 0 0 $style->{'font-weight'} // "normal"
35 0 0 $style->{'font-family'} // []
39 0 0 $style->{'@font-face'} // []
58 0 0 $style->{'font-size'} || 12
94 0 0 $style->{'font-size'} || 12
105 0 0 $style->{'font-size'} || 12
119 0 0 $style->{'font-size'} || 12
138 0 0 $style->{'font-size'} || 12
145 0 0 $style->{'font-family'} // "Times-Roman"
146 0 0 $style->{'font-size'} || 12
148 0 0 $style->{'font-style'} && $style->{'font-style'} =~ /^(italic|oblique)$/u || ''
150 0 0 $style->{'font-weight'} && $style->{'font-weight'} =~ /^(bold|black)$/u || ''
196 0 0 $style->{'font-family'} // ""

or 3 conditions

line l !l&&r !l&&!r condition
71 0 0 0 $td //= tempdir("CLEANUP", 1)
155 0 0 0 $fn eq "text" or $fn =~ /^mono(?:-?space)?$/u
0 0 0 $fn =~ /^abc2svg(?:\.ttf)?/u or $fn eq "music"
190 0 0 0 $fc->{$fn} //= do { unless ($fn =~ /\.\w+$/u) { my $t = ""; $t .= "italic, " if $em; $t .= "bold, " if $bd; $t = " (" . substr($t, 0, length($t) - 2) . ")" if $t; warn "SVG: Font ", $style->{'font-family'} // "", "$t - falling back to built-in font $fn with limited glyphs!\n"; } ; +{"font", $svg->pdf->font($fn), "src", $fn} }