Branch Coverage

blib/lib/PDF/Builder/Resource/UniFont.pm
Criterion Covered Total %
branch 22 42 52.3


line true false branch
62 0 1 if ref $class
76 1 0 if defined $options{'-encode'}
81 1 1 if (ref $font eq 'ARRAY') { }
0 1 elsif (ref $font eq 'HASH') { }
86 1 0 if (ref $blockspec) { }
97 0 0 if (defined $font->{'blocks'} and ref $font->{'blocks'} eq 'ARRAY')
100 0 0 if (ref $blockspec) { }
110 0 0 if (defined $font->{'codes'} and ref $font->{'codes'} eq 'ARRAY')
113 0 0 if (ref $codespec) { }
147 4 0 if (defined $self->{'encode'})
148 2 2 unless utf8::is_utf8($text)
155 0 18 if (defined $self->{'code'}{$u}) { }
18 0 elsif (defined $self->{'block'}{$u >> 8}) { }
162 6 12 if (scalar @blocks == 0 or $blocks[-1][0] != $font_number) { }
179 2 0 if (defined $self->{'encode'})
180 1 1 unless utf8::is_utf8($text)
182 0 2 unless defined $size
190 0 9 if (defined $self->{'code'}{$u}) { }
9 0 elsif (defined $self->{'block'}{$u >> 8}) { }
196 1 8 if (defined $last_font_number and $font_number != $last_font_number)
209 2 0 if (scalar @codes > 0)