Branch Coverage

blib/lib/PDF/Builder/Resource/UniFont.pm
Criterion Covered Total %
branch 23 44 52.2


line true false branch
62 0 1 if ref $class
77 0 1 if (defined $options{'-encode'} and not defined $options{'encode'})
79 1 0 if defined $options{'encode'}
84 1 1 if (ref $font eq 'ARRAY') { }
0 1 elsif (ref $font eq 'HASH') { }
89 1 0 if (ref $blockspec) { }
100 0 0 if (defined $font->{'blocks'} and ref $font->{'blocks'} eq "ARRAY")
103 0 0 if (ref $blockspec) { }
113 0 0 if (defined $font->{'codes'} and ref $font->{'codes'} eq "ARRAY")
116 0 0 if (ref $codespec) { }
150 4 0 if (defined $self->{'encode'})
151 2 2 unless utf8::is_utf8($text)
158 0 18 if (defined $self->{'code'}{$u}) { }
18 0 elsif (defined $self->{'block'}{$u >> 8}) { }
165 6 12 if (scalar @blocks == 0 or $blocks[-1][0] != $font_number) { }
182 2 0 if (defined $self->{'encode'})
183 1 1 unless utf8::is_utf8($text)
185 0 2 unless defined $size
193 0 9 if (defined $self->{'code'}{$u}) { }
9 0 elsif (defined $self->{'block'}{$u >> 8}) { }
199 1 8 if (defined $last_font_number and $font_number != $last_font_number)
212 2 0 if (scalar @codes > 0)