Branch Coverage

blib/lib/PDF/API2/Resource/CIDFont.pm
Criterion Covered Total %
branch 2 66 3.0


line true false branch
31 0 1 if ref $class
35 0 1 if defined $pdf and not $self->is_obj($pdf)
69 0 0 if (ref $widths eq 'ARRAY') { }
0 0 elsif (ref $widths eq 'HASH') { }
70 0 0 if defined $widths->[$g]
73 0 0 if defined $widths->{$g}
92 0 0 if ($self->{'-dokern'} and $self->haveKernPairs)
93 0 0 if ($self->kernPairCid($lastglyph, $n))
117 0 0 if (utf8::is_utf8($text) and defined $self->data->{'decode'} and $self->data->{'decode'} ne 'ident') { }
0 0 elsif (utf8::is_utf8($text) and defined $self->data->{'decode'} and $self->data->{'decode'} eq 'ident') { }
0 0 elsif (not utf8::is_utf8($text) and defined $self->data->{'encode'} and defined $self->data->{'decode'} and $self->data->{'decode'} eq 'ident') { }
0 0 elsif (not utf8::is_utf8($text) and $self->can('issymbol') and $self->issymbol and defined $self->data->{'decode'} and $self->data->{'decode'} eq 'ident') { }
162 0 0 $_ && $_ > 127 && $_ < 160 ? :
182 0 0 if (defined $size and $self->{'-dokern'}) { }
0 0 elsif (defined $size) { }
187 0 0 if (defined $indent and $indent != 0) { }
201 0 0 if ($self->can("fontfile"))
207 0 0 if (defined $size) { }
217 0 0 if ($self->can("fontfile"))
222 0 0 if (defined $size and $self->{'-dokern'} and $self->haveKernPairs) { }
0 0 elsif (defined $size) { }
227 0 0 if ($self->kernPairCid($lastglyph, $n))
228 0 0 if $tBefore
234 0 0 unless $tBefore
238 0 0 if $tBefore
239 0 0 if (defined $indent and $indent != 0) { }
248 0 0 if (defined $indent and $indent != 0) { }
271 0 0 if $self->issymbol
273 0 0 if (defined $enc)
275 0 0 $_ > 127 && $_ < 160 ? :
280 0 0 unless $self->data->{'g2n'}[$self->data->{'u2g'}{$_} or 0]
284 0 0 unless $self->data->{'u2g'}{$_}
306 0 0 if (defined $self->data->{'glyphs'})