Branch Coverage

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


line true false branch
21 0 0 if (defined $opts{'-afmfile'}) { }
0 0 elsif (defined $opts{'-pfmfile'}) { }
0 0 elsif (defined $opts{'-xfmfile'}) { }
31 0 0 if ref $class
33 0 0 unless $self->is_obj($pdf)
36 0 0 if ($opts{'-pdfname'})
42 0 0 if (-f $psfile) { }
55 0 0 if (defined $pdf)
66 0 0 if $opts{'-nocomps'}
67 0 0 if $opts{'-dokern'}
76 0 0 unless -f $file
80 0 0 unless open my $inf, "<", $file
84 0 0 if ($lines[0] == 128 and $lines[1] == 1) { }
0 0 elsif ($line eq '%!') { }
90 0 0 if ($lines[0] == 128 and $lines[1] == 2) { }
99 0 0 if ($lines[0] == 128 and $lines[1] == 1) { }
114 0 0 if (not $l1) { }
0 0 elsif (not $l2) { }
116 0 0 if ($line =~ /eexec$/)
122 0 0 if ($line =~ /^0+$/) { }
156 0 0 unless (-e $file)
157 0 0 unless open my $afmf, "<", $file
161 0 0 if (/^StartCharMetrics/ .. /^EndCharMetrics/) { }
0 0 elsif (/^StartKernData/ .. /^EndKernData/) { }
0 0 elsif (/^StartComposites/ .. /^EndComposites/) { }
164 0 0 unless $_ =~ /^CH?\s/
173 0 0 $data->{'maxwidth'} < $wx ? :
176 0 0 if ($ch > 0)
179 0 0 $data->{'lastchar'} < $ch ? :
180 0 0 $data->{'firstchar'} > $ch ? :
186 0 0 if ($_ =~ /^KPX\s+(\S+)\s+(\S+)\s+(\S+)\s*$/i)
194 0 0 if ($_ =~ /^CC\s+(\S+)\s+(\S+)\s+;/i)
208 0 0 if $_ =~ /^EndFontMetrics/
209 0 0 if (/(^\w+)\s+(.*)/) { }
213 0 0 if (defined $data->{$key}) { }
230 0 0 unless (exists $data->{'wx'}{'.notdef'})
242 0 0 if (defined $data->{'fullname'}) { }
249 0 0 if $data->{'italicangle'} < 0
250 0 0 if $data->{'italicangle'} > 0
257 0 0 if $data->{'italicangle'} < 0
258 0 0 if $data->{'italicangle'} > 0
282 0 0 unless (-e $file)
294 0 0 unless open $fh, "<", $file
447 0 0 if $df{'PitchAndFamily'} & 1 || $df{'PitchAndFamily'} & 8 and not $df{'PitchAndFamily'} & 2
449 0 0 if $df{'PitchAndFamily'} & 16 and not $df{'PitchAndFamily'} & 32
451 0 0 if $df{'PitchAndFamily'} & 80
453 0 0 if $df{'PitchAndFamily'} & 64
455 0 0 unless $df{'PitchAndFamily'} & 80
457 0 0 if $df{'Italic'}
467 0 0 unless nameByUni($_)
490 0 0 unless -f $xfmfile