Branch Coverage

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


line true false branch
68 0 1 if ref $class
83 0 1 if (defined $options{'-encode'} and not defined $options{'encode'})
85 1 0 if defined $options{'encode'}
90 1 1 if (ref $font eq 'ARRAY') { }
0 1 elsif (ref $font eq 'HASH') { }
95 1 0 if (ref $blockspec) { }
106 0 0 if (defined $font->{'blocks'} and ref $font->{'blocks'} eq "ARRAY")
109 0 0 if (ref $blockspec) { }
119 0 0 if (defined $font->{'codes'} and ref $font->{'codes'} eq "ARRAY")
122 0 0 if (ref $codespec) { }
192 2 0 if (defined $self->{'encode'})
193 1 1 unless utf8::is_utf8($text)
200 0 9 if (defined $self->{'code'}{$u}) { }
9 0 elsif (defined $self->{'block'}{$u >> 8}) { }
207 3 6 if (scalar @blocks == 0 or $blocks[-1][0] != $font_number) { }
236 2 0 if (defined $self->{'encode'})
237 1 1 unless utf8::is_utf8($text)
239 0 2 unless defined $size
247 0 9 if (defined $self->{'code'}{$u}) { }
9 0 elsif (defined $self->{'block'}{$u >> 8}) { }
253 1 8 if (defined $last_font_number and $font_number != $last_font_number)
266 2 0 if (scalar @codes > 0)