Branch Coverage

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


line true false branch
15 0 0 if @_
49 0 0 unless $fam and lc $fam eq $family
50 0 0 unless $_->{'src'}
52 0 0 if $_->{'font-style'} and $style->{'font-style'} and $_->{'font-style'} ne $style->{'font-style'}
54 0 0 if $_->{'font-weight'} and $style->{'font-weight'} and $_->{'font-weight'} ne $style->{'font-weight'}
59 0 0 if (my $f = $fc->{$key})
68 0 0 if ($src =~ /^\s*url\s*\((["'])((?:data|https?|file):.*?)\1\s*\)/isu) { }
0 0 elsif ($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) { }
79 0 0 if ($src =~ /\bformat\((["'])(.*?)\1\)/u) { }
0 0 elsif ($opts->{'_filesource'} =~ /\.(\w+)$/u) { }
80 0 0 lc $2 eq 'opentype' ? :
0 0 lc $2 eq 'truetype' ? :
89 0 0 unless $sfx
96 0 0 if $@
116 0 0 if ($src =~ /\bformat\((["'])(.*?)\1\)/u)
117 0 0 lc $2 eq 'opentype' ? :
0 0 lc $2 eq 'truetype' ? :
123 0 0 unless $sfx
130 0 0 if $@
141 0 0 if $@
157 0 0 if (my $f = $fc->{$key})
163 0 0 if (my $cb = $svg->fc)
165 0 0 unless (ref $cb eq "ARRAY")
172 0 0 if $@
173 0 0 if $font
176 0 0 if ($font)
198 0 0 if ($fn =~ /^(sans|helvetica|(?:text,)?sans-serif)$/u) { }
0 0 elsif ($fn =~ /^(text|courier|mono(?:-?space)?)$/u) { }
0 0 elsif ($fn =~ /^(serif|times|(?:text,)?serif)$/u) { }
0 0 elsif (&none(sub { $fn eq lc $_; } , @corefonts)) { }
199 0 0 $em ? :
0 0 $em ? :
0 0 $bd ? :
205 0 0 $em ? :
0 0 $em ? :
0 0 $bd ? :
211 0 0 $em ? :
0 0 $em ? :
0 0 $bd ? :
219 0 0 if $fn
223 0 0 unless ($fn)
225 0 0 $em ? :
0 0 $em ? :
0 0 $bd ? :
231 0 0 unless ($fn =~ /\.\w+$/u)
233 0 0 if $em
234 0 0 if $bd
235 0 0 if $t