Branch Coverage

blib/lib/PDF/Builder/Resource/BaseFont.pm
Criterion Covered Total %
branch 26 80 32.5


line true false branch
42 0 38 if ref $class
45 0 38 unless $self->is_obj($pdf)
93 1 0 unless $self->data->{'iscore'}
94 1 0 if (defined $self->data->{'panose'})
99 1 0 if defined $self->data->{'fontfamily'}
101 1 0 if defined $self->data->{'fontweight'}
103 1 0 if defined $self->data->{'fontstretch'}
111 0 1 if defined $self->{'ToUnicode'}
121 0 1 if ($self->can('uniByCId') and $self->can('glyphNum')) { }
125 0 0 $self->glyphNum - $j > 100 ? :
126 0 0 if ($j == 0) { }
0 0 elsif ($j % 100 == 0) { }
282 0 0 unless (defined $upem)
301 0 1 if ($bbox[0] > $bbox[2])
663 0 256 unless defined $uni
818 0 53 if (ref $self->data->{'wx'} eq 'HASH') { }
819 0 0 if defined $glyph
822 53 0 if defined $cid
849 0 0 if defined $uni
850 0 0 if defined $gid
876 8698 0 if defined $char
878 8698 0 if defined $glyph
927 0 0 if defined $char
929 0 0 if defined $glyph
953 3 179 if utf8::is_utf8($text)
962 0 2287 if ($kern)
987 0 0 unless utf8::is_utf8($text)
1047 0 31 unless (defined $string)
1048 3 28 if utf8::is_utf8($string)
1073 0 0 unless $self->{'-dokern'} and ref $self->data->{'kern'}
1074 0 0 if utf8::is_utf8($string)
1082 0 0 if (defined $self->data->{'kern'}{$last_glyph . ':' . $glyph})
1083 0 0 if $tBefore
1092 0 0 unless $tBefore
1096 0 0 if $tBefore
1104 0 31 unless (defined $string)
1107 0 31 if (defined $size and $self->{'-dokern'}) { }
31 0 elsif (defined $size) { }
1109 0 0 if $indent
1112 12 19 if $indent