Branch Coverage

blib/lib/PDF/Builder/Resource/Font.pm
Criterion Covered Total %
branch 37 54 68.5


line true false branch
28 50 2 if ($self->issymbol or ($encoding || '') eq 'asis')
32 1 51 if (defined $encoding and $encoding =~ /^uni(\d+)$/o) { }
1 50 elsif (defined $encoding) { }
50 0 elsif (defined $data->{'uni'}) { }
35 0 256 unless nameByUni($_)
39 0 256 unless nameByUni($_)
42 0 12800 unless $_
45 0 0 unless $_
58 13312 0 if (defined $data->{'char'}[$n]) { }
63 11244 2068 unless defined $data->{'n2c'}{$xchar}
65 13312 0 if (defined $data->{'e2n'}[$n]) { }
70 11308 2004 unless defined $data->{'n2e'}{$xchar}
73 11306 2006 unless defined $data->{'n2u'}{$xchar}
75 13312 0 if (defined $data->{'char'}[$n]) { }
80 11579 1733 if (defined $data->{'uni'}[$n]) { }
85 282 13030 unless defined $data->{'n2u'}{$xchar}
87 11254 2058 unless defined $data->{'u2c'}{$xuni}
89 11643 1669 if (defined $data->{'e2u'}[$n]) { }
94 11332 1980 unless defined $data->{'u2e'}{$xuni}
96 13312 0 if (defined $data->{'e2n'}[$n]) { }
101 11331 1981 unless defined $data->{'u2n'}{$xuni}
103 13312 0 if (defined $data->{'char'}[$n]) { }
108 11579 1733 if (defined $data->{'uni'}[$n]) { }
113 237 13075 unless defined $data->{'u2n'}{$xuni}
214 0 0 if (defined $data->{'comps'} and not $self->{'-nocomps'})
231 0 0 if defined $self->{$key}
263 0 0 if defined $self->{$key}