Branch Coverage

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


line true false branch
26 0 0 if (defined $opts{'-encode'} and not defined $opts{'encode'})
27 0 0 if (defined $opts{'-afmfile'} and not defined $opts{'afmfile'})
28 0 0 if (defined $opts{'-pfmfile'} and not defined $opts{'pfmfile'})
29 0 0 if (defined $opts{'-xfmfile'} and not defined $opts{'xfmfile'})
30 0 0 if (defined $opts{'-pdfname'} and not defined $opts{'pdfname'})
31 0 0 if (defined $opts{'-nocomps'} and not defined $opts{'nocomps'})
32 0 0 if (defined $opts{'-dokern'} and not defined $opts{'dokern'})
37 0 0 if (defined $opts{'afmfile'}) { }
0 0 elsif (defined $opts{'pfmfile'}) { }
0 0 elsif (defined $opts{'xfmfile'}) { }
47 0 0 if ref $class
50 0 0 unless $self->is_obj($pdf)
53 0 0 if ($opts{'pdfname'})
59 0 0 if (-f $psfile) { }
72 0 0 if (defined $pdf)
79 0 0 if (defined $opts{'encode'} and $opts{'encode'} =~ /^utf/i)
85 0 0 if $opts{'nocomps'}
86 0 0 if $opts{'dokern'}
95 0 0 unless -f $file
99 0 0 unless open my $inf, "<", $file
103 0 0 if ($lines[0] == 128 and $lines[1] == 1) { }
0 0 elsif ($line eq '%!') { }
109 0 0 if ($lines[0] == 128 and $lines[1] == 2) { }
118 0 0 if ($lines[0] == 128 and $lines[1] == 1) { }
133 0 0 if (not $l1) { }
0 0 elsif (not $l2) { }
135 0 0 if ($line =~ /eexec$/)
141 0 0 if ($line =~ /^0+$/) { }
174 0 0 unless (-e $file)
177 0 0 unless open my $afmf, "<", $file
180 0 0 if (/^StartCharMetrics/ .. /^EndCharMetrics/) { }
0 0 elsif (/^StartKernData/ .. /^EndKernData/) { }
0 0 elsif (/^StartComposites/ .. /^EndComposites/) { }
182 0 0 unless $_ =~ /^CH?\s/
191 0 0 ($data->{'maxwidth'} || 0) < $wx ? :
194 0 0 if ($ch > 0)
197 0 0 $data->{'lastchar'} < $ch ? :
198 0 0 $data->{'firstchar'} > $ch ? :
202 0 0 if ($_ =~ /^KPX\s+(\S+)\s+(\S+)\s+(\S+)\s*$/i)
207 0 0 if ($_ =~ /^CC\s+(\S+)\s+(\S+)\s+;/i)
219 0 0 if $_ =~ /^EndFontMetrics/
220 0 0 if (/(^\w+)\s+(.*)/) { }
223 0 0 if (defined $data->{$key}) { }
235 0 0 unless (exists $data->{'wx'}{'.notdef'})
246 0 0 if (defined $data->{'fullname'}) { }
250 0 0 if $data->{'italicangle'} < 0
251 0 0 if $data->{'italicangle'} > 0
258 0 0 if $data->{'italicangle'} < 0
259 0 0 if $data->{'italicangle'} > 0
283 0 0 unless (-e $file)
297 0 0 unless open $fh, "<", $file
450 0 0 if $df{'PitchAndFamily'} & 1 || $df{'PitchAndFamily'} & 8 and not $df{'PitchAndFamily'} & 2
452 0 0 if $df{'PitchAndFamily'} & 16 and not $df{'PitchAndFamily'} & 32
454 0 0 if $df{'PitchAndFamily'} & 80
456 0 0 if $df{'PitchAndFamily'} & 64
458 0 0 unless $df{'PitchAndFamily'} & 80
460 0 0 if $df{'Italic'}
470 0 0 unless nameByUni($_)
494 0 0 unless -f $xfmfile