Branch Coverage

blib/lib/PDF/API2/Resource/UniFont.pm
Criterion Covered Total %
branch 20 38 52.6


line true false branch
13 0 1 if ref $class
26 1 0 if defined $options{'-encode'}
30 1 1 if (ref $font eq 'ARRAY') { }
0 1 elsif (ref $font eq 'HASH') { }
35 1 0 if (ref $blockspec) { }
48 0 0 if (defined $font->{'blocks'} and ref $font->{'blocks'} eq "ARRAY")
50 0 0 if (ref $blockspec) { }
61 0 0 if (defined $font->{'codes'} and ref $font->{'codes'} eq "ARRAY")
63 0 0 if (ref $codespec) { }
95 2 2 unless utf8::is_utf8($text)
101 0 18 if (defined $self->{'code'}{$u}) { }
18 0 elsif (defined $self->{'block'}{$u >> 8}) { }
111 6 12 if (scalar @blocks == 0 or $blocks[-1][0] != $font_number) { }
129 1 1 unless utf8::is_utf8($text)
130 0 2 unless defined $size
138 0 9 if (defined $self->{'code'}{$u}) { }
9 0 elsif (defined $self->{'block'}{$u >> 8}) { }
145 1 8 if (defined $last_font_number and $font_number != $last_font_number)
157 2 0 if (scalar @codes > 0)