Branch Coverage

blib/lib/PDF/Builder/Resource/CIDFont/CJKFont.pm
Criterion Covered Total %
branch 12 36 33.3


line true false branch
52 1 0 if defined $PDF::Builder::Resource::CIDFont::CJKFont::alias->{$fname}
53 0 1 if defined $PDF::Builder::Resource::CIDFont::CJKFont::fonts->{$fname}
55 0 1 if (defined $PDF::Builder::Resource::CIDFont::CJKFont::subs->{$fname})
58 0 0 if $k =~ /^\-/
59 0 0 if (substr($k, 0, 1) eq '+') { }
70 0 1 if ($@) { }
82 0 1 if defined $PDF::Builder::Resource::CIDFont::CJKFont::cmap->{$fname}
84 0 1 if ($@) { }
97 1 0 if scalar(@opts) % 2 == 0
107 0 1 if ref $class
108 0 1 defined $data->{'apiname'} ? :
109 0 1 if defined $pdf and not $self->is_obj($pdf)
117 0 1 if (defined $opts{'-encode'} and $opts{'-encode'} ne 'ident')
130 1 0 if (defined $cmap->{'ccs'})
185 0 0 if (ref $self->data->{'wx'} eq 'ARRAY' and defined $self->data->{'wx'}[$w] and $self->data->{'wx'}[$w] != $self->missingwidth and $notdefbefore == 1) { }
0 0 elsif (ref $self->data->{'wx'} eq 'HASH' and defined $self->data->{'wx'}{$w} and $self->data->{'wx'}{$w} != $self->missingwidth and $notdefbefore == 1) { }
0 0 elsif (ref $self->data->{'wx'} eq 'ARRAY' and defined $self->data->{'wx'}[$w] and $self->data->{'wx'}[$w] != $self->missingwidth and $notdefbefore == 0) { }
0 0 elsif (ref $self->data->{'wx'} eq 'HASH' and defined $self->data->{'wx'}{$w} and $self->data->{'wx'}{$w} != $self->missingwidth and $notdefbefore == 0) { }