Branch Coverage

lib/ChordPro/lib/SVGPDF/FontManager.pm
Criterion Covered Total %
branch 0 88 0.0


line true false branch
15 0 0 if @_
40 0 0 unless $_->{'font-family'}
41 0 0 unless $_->{'src'}
43 0 0 if $_->{'font-style'} and $style->{'font-style'} and $_->{'font-style'} ne $style->{'font-style'}
45 0 0 if $_->{'font-weight'} and $style->{'font-weight'} and $_->{'font-weight'} ne $style->{'font-weight'}
50 0 0 unless $family eq $fam
55 0 0 if (my $f = $fc->{$key})
64 0 0 if ($src =~ m[^\s*url\s*\((["'])data:application/octet-stream;base64,(.*?)\1\s*\)]isu) { }
0 0 elsif ($src =~ /^\s*url\s*\((["'])(.*?\.[ot]tf)\1\s*\)/isu) { }
74 0 0 if ($src =~ /\bformat\((["'])(.*?)\1\)/u)
75 0 0 lc $2 eq 'opentype' ? :
0 0 lc $2 eq 'truetype' ? :
81 0 0 unless $sfx
88 0 0 if $@
99 0 0 if $@
116 0 0 if (my $f = $fc->{$key})
122 0 0 if (my $cb = $svg->fc)
124 0 0 unless (ref $cb eq "ARRAY")
130 0 0 if $@
131 0 0 if $font
134 0 0 if ($font)
155 0 0 if ($fn =~ /^(sans|helvetica|(?:text,)?sans-serif)$/u) { }
0 0 elsif ($fn eq 'text' or $fn =~ /^mono(?:-?space)?$/u) { }
0 0 elsif ($fn =~ /^abc2svg(?:\.ttf)?/u or $fn eq 'music') { }
0 0 elsif ($fn =~ /^musejazz\s*text$/u) { }
0 0 elsif ($fn =~ /^(serif|times|(?:text,)?serif)$/u) { }
156 0 0 $em ? :
0 0 $em ? :
0 0 $bd ? :
161 0 0 $em ? :
0 0 $em ? :
0 0 $bd ? :
172 0 0 $em ? :
0 0 $em ? :
0 0 $bd ? :
179 0 0 if $fn
183 0 0 unless ($fn)
185 0 0 $em ? :
0 0 $em ? :
0 0 $bd ? :
191 0 0 unless ($fn =~ /\.\w+$/u)
193 0 0 if $em
194 0 0 if $bd
195 0 0 if $t