Branch Coverage

blib/lib/PDF/API3/Compat/API2/Resource/Font/Postscript.pm
Criterion Covered Total %
branch 0 102 0.0


line true false branch
67 0 0 if (defined $opts{-'afmfile'}) { }
0 0 elsif (defined $opts{-'pfmfile'}) { }
0 0 elsif (defined $opts{-'xfmfile'}) { }
77 0 0 if ref $class
79 0 0 unless $self->is_obj($pdf)
82 0 0 if ($opts{-'pdfname'})
88 0 0 if (-f $psfile) { }
101 0 0 if (defined $pdf)
112 0 0 if $opts{-'nocomps'}
113 0 0 if $opts{-'dokern'}
121 0 0 if ref $class
134 0 0 unless -f $file
142 0 0 if ($lines[0] == 128 and $lines[1] == 1) { }
0 0 elsif ($line eq '%!') { }
148 0 0 if ($lines[0] == 128 and $lines[1] == 2) { }
157 0 0 if ($lines[0] == 128 and $lines[1] == 1) { }
173 0 0 if (not $l1) { }
0 0 elsif (not $l2) { }
175 0 0 if ($line =~ /eexec$/)
181 0 0 if ($line =~ /^0+$/) { }
214 0 0 unless (-e $file)
215 0 0 unless open AFMF, $file
219 0 0 if (/^StartCharMetrics/ .. /^EndCharMetrics/) { }
0 0 elsif (/^StartKernData/ .. /^EndKernData/) { }
0 0 elsif (/^StartComposites/ .. /^EndComposites/) { }
222 0 0 unless $_ =~ /^CH?\s/
231 0 0 $$data{'maxwidth'} < $wx ? :
234 0 0 if ($ch > 0)
237 0 0 $$data{'lastchar'} < $ch ? :
238 0 0 $$data{'firstchar'} > $ch ? :
244 0 0 if ($_ =~ /^KPX\s+(\S+)\s+(\S+)\s+(\S+)\s*$/i)
252 0 0 if ($_ =~ /^CC\s+(\S+)\s+(\S+)\s+;/i)
266 0 0 if $_ =~ /^EndFontMetrics/
267 0 0 if (/(^\w+)\s+(.*)/) { }
271 0 0 if (defined $$data{$key}) { }
288 0 0 unless (exists $$data{'wx'}{'.notdef'})
300 0 0 if (defined $$data{'fullname'}) { }
307 0 0 if $$data{'italicangle'} < 0
308 0 0 if $$data{'italicangle'} > 0
315 0 0 if $$data{'italicangle'} < 0
316 0 0 if $$data{'italicangle'} > 0
340 0 0 unless (-e $file)
352 0 0 unless open $fh, $file
508 0 0 if $df{'PitchAndFamily'} & 1 || $df{'PitchAndFamily'} & 8 and not $df{'PitchAndFamily'} & 2
510 0 0 if $df{'PitchAndFamily'} & 16 and not $df{'PitchAndFamily'} & 32
512 0 0 if $df{'PitchAndFamily'} & 80
514 0 0 if $df{'PitchAndFamily'} & 64
516 0 0 unless $df{'PitchAndFamily'} & 80
518 0 0 if $df{'Italic'}
528 0 0 unless nameByUni($_)
551 0 0 unless -f $xfmfile