Branch Coverage

blib/lib/PDF/Builder/Resource/Font/CoreFont.pm
Criterion Covered Total %
branch 21 38 55.2


line true false branch
125 0 52 if ($@) { }
130 13056 256 unless defined $PDF::Builder::Resource::Font::CoreFont::fonts->{$fname}{'uni'}[$n]
145 147600 440 if (not ref $this) { }
289 151 elsif (ref $this eq 'ARRAY') { }
151 0 elsif (ref $this eq 'HASH') { }
0 0 elsif (ref $this eq 'CODE') { }
165 0 52 if (-f $name)
171 52 0 if scalar(@opts) % 2 == 0
174 0 52 defined $PDF::Builder::Resource::Font::CoreFont::alias->{$lookname} ? :
176 0 52 if (defined $PDF::Builder::Resource::Font::CoreFont::subs->{$lookname}) { }
179 0 0 if $k =~ /^\-/
183 0 52 if (defined $opts{'-metrics'}) { }
190 0 52 unless $data->{'fontname'}
205 0 52 if ref $class
208 0 52 unless $self->is_obj($pdf)
210 0 52 if $opts{'-dokern'}
214 0 52 if ($opts{'-pdfname'})
218 15 37 unless ($self->data->{'iscore'})
222 0 52 if ($opts{'-encode'} =~ /^utf/i)