Branch Coverage

blib/lib/Font/TTF/Cmap.pm
Criterion Covered Total %
branch 26 160 16.2


line true false branch
95 0 2 unless $self->SUPER::read
120 0 4 if ($form == 0) { }
0 4 elsif ($form == 6) { }
0 4 elsif ($form == 2) { }
4 0 elsif ($form == 4) { }
0 0 elsif ($form == 8 or $form == 12 or $form == 13) { }
0 0 elsif ($form == 10) { }
127 0 0 $_ ? :
135 0 0 $_ ? :
145 0 0 if $k >= $n
153 0 0 if $subHeader->[2] & 32768
162 0 0 if (not $k) { }
164 0 0 if ($l >= 0 and $l < $subHeader->[1])
166 0 0 if $m
172 0 0 if $m
188 4 4 if $delta > 32767
192 384 0 if ($range == 0 or $range == 65535) { }
197 4 380 if $id >= 65536
198 380 4 if $id or $keepzeros
205 0 0 if ($form == 8) { }
219 0 0 $form == 13 ? :
245 0 0 unless defined $self->{' mstable'}
262 0 0 if defined $self->{' mstable'}
267 0 0 if ($s->{'Platform'} == 3) { }
0 0 elsif ($s->{'Platform'} == 0 or $s->{'Platform'} == 2 and $s->{'Encoding'} == 1) { }
270 0 0 if $s->{'Encoding'} == 10
271 0 0 if $s->{'Encoding'} == 1
275 0 0 if $alt and not $found
293 0 0 if defined $self->{' mstable'} and $self->{' mstable'}{'Platform'} == 3
297 0 0 if $s->{'Platform'} == 3
315 0 2 unless $self->{' read'}
320 0 2 unless $Font::TTF::Cmap::a->{'Platform'} <=> $Font::TTF::Cmap::b->{'Platform'} or $Font::TTF::Cmap::a->{'Encoding'} <=> $Font::TTF::Cmap::b->{'Encoding'}
332 4 0 if ($s->{'Format'} < 8) { }
337 4 0 if ($s->{'Format'} < 8) { }
342 0 4 if ($s->{'Format'} == 0) { }
0 4 elsif ($s->{'Format'} == 6) { }
0 4 elsif ($s->{'Format'} == 2) { }
4 0 elsif ($s->{'Format'} == 4) { }
0 0 elsif ($s->{'Format'} == 8 or $s->{'Format'} == 12 or $s->{'Format'} == 13) { }
0 0 elsif ($s->{'Format'} == 10) { }
344 0 0 defined $_ ? :
348 0 0 defined $_ ? :
356 0 0 unless defined($g = $s->{'val'}{$j})
359 0 0 if (($k = $subHeaderKeys[$h]) < 0) { }
370 0 0 $_ < 0 ? :
385 0 0 $d < 0 ? :
393 0 0 unless $subHeader->[4]
398 0 0 unless $subHeader_->[4]
400 0 0 if ($subHeader->[5] =~ /\Q$d\E/)
418 0 0 $subHeader->[2] < 0 ? :
439 0 4 if $keys[-1] == 65535
448 0 376 if ($j == 0 or $u != $prevUSV + 1 or $g != $prevgid + 1)
450 0 4 unless $j == 0
464 0 0 if $ends[$start] - $starts[$start] > 7
467 0 0 $self->{' allowholes'} ? :
0 0 if $starts[$end] - $ends[$end - 1] > ($self->{' allowholes'} ? 5 : 1) or $ends[$end] - $starts[$end] > 7
475 0 0 $range[$j] ? :
478 0 0 if (8 + 2 * ($ends[$k] - $starts[$j] + 1) <= $size1 + 8 * ($k - $j))
512 0 8 if ($range[$j]) { }
534 8 0 if $range[$j] == 0
535 0 0 unless $_
545 0 0 if ($j > 65535 and $s->{'Format'} == 8)
547 0 0 if (defined $s->{'val'}{$j >> 16})
551 0 0 $s->{'Format'} == 13 ? :
0 0 if ($j != $current + 1 or $s->{'val'}{$j} != ($s->{'Format'} == 13 ? $curr_glyf : $curr_glyf + 1))
553 0 0 $s->{'Format'} == 13 ? :
0 0 if defined $start
559 0 0 $s->{'Format'} == 13 ? :
0 0 if defined $start
560 0 0 if $s->{'Format'} == 8
571 4 0 if ($s->{'Format'} < 8) { }
600 0 0 if $k eq 'LOC'
601 0 0 unless $k eq 'val'
640 0 0 unless $self->SUPER::update
647 0 0 if ($gid) { }
650 0 0 if $max < $code
658 0 0 unless $s->{'Platform'} == 3 and $s->{'Encoding'} == 10 and $s->{'Format'} == 12 and $max <= 65535
690 0 0 defined $opt{'tnum'} ? :
695 0 0 if ($opt{'array'}) { }
698 0 0 unless defined $res[$gid] and $res[$gid] > 0 and $res[$gid] < $code