Branch Coverage

blib/lib/PDF/Builder/Resource/CIDFont.pm
Criterion Covered Total %
branch 3 70 4.2


line true false branch
35 1 0 if scalar(@opts) % 2 == 0
37 0 1 if ref $class
39 0 1 if defined $pdf and not $self->is_obj($pdf)
69 0 0 unless defined $uni
89 0 0 if (ref $self->data->{'wx'} eq 'ARRAY' and defined $self->data->{'wx'}[$g]) { }
0 0 elsif (ref $self->data->{'wx'} eq 'HASH' and defined $self->data->{'wx'}{$g}) { }
123 0 0 if ($self->{'-dokern'} and $self->haveKernPairs)
124 0 0 if ($self->kernPairCid($lastglyph, $n))
150 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 $self->data->{'decode'} eq 'ident') { }
0 0 elsif (not utf8::is_utf8($text) and defined $self->data->{'encode'} and $self->data->{'decode'} eq 'ident') { }
0 0 elsif (not utf8::is_utf8($text) and $self->can('issymbol') and $self->issymbol and $self->data->{'decode'} eq 'ident') { }
181 0 0 unless $self->cidByUni($_)
0 0 $_ > 127 && $_ < 160 ? :
202 0 0 if (defined $size and $self->{'-dokern'}) { }
0 0 elsif (defined $size) { }
206 0 0 if (defined $indent and $indent != 0) { }
219 0 0 if ($self->can('fontfile'))
225 0 0 if (defined $size) { }
235 0 0 if ($self->can('fontfile'))
240 0 0 if (defined $size and $self->{'-dokern'} and $self->haveKernPairs) { }
0 0 elsif (defined $size) { }
245 0 0 if ($self->kernPairCid($lastglyph, $n))
246 0 0 if $tBefore
252 0 0 unless $tBefore
256 0 0 if $tBefore
257 0 0 if (defined $indent and $indent != 0) { }
264 0 0 if (defined $indent and $indent != 0) { }
286 0 0 if $self->issymbol
288 0 0 $_ > 127 && $_ < 160 ? :
0 0 if defined $enc
289 0 0 unless $self->data->{'g2n'}[$self->data->{'u2g'}{$_} or 0]
290 0 0 unless $self->data->{'u2g'}{$_}
295 0 0 unless defined $self->data->{'u2e'}{$self->data->{'e2u'}[$n]}
312 0 0 if (defined $self->data->{'glyphs'})