Branch Coverage

blib/lib/Font/TTF/Font.pm
Criterion Covered Total %
branch 39 110 35.4


line true false branch
245 0 11 if (-f "$p/mydumpvar.pl")
330 2 0 if (not ref $fname) { }
332 0 2 unless $fh = 'IO::File'->new($fname)
364 1 1 if ($iswoff) { }
372 0 1 if ($off)
375 0 0 if ($off + $zlen > $woffLength)
391 0 1 if ($off)
394 0 0 if ($off + $len > $woffLength)
415 0 0 unless $ver == 65536 or $ver == unpack('N', 'OTTO') or $ver == unpack('N', 'true')
423 14 14 $iswoff ? :
0 28 unless $fh->read($dat, $iswoff ? 20 : 16)
424 14 14 if ($iswoff) { }
427 0 14 if ($off + $zlen > $woffLength or $zlen > $len)
430 0 0 if $off + $zlen > $woffLength
431 0 0 if $zlen > $len
442 0 28 if defined $self->{' PARENT'}
445 0 28 if ($^O eq 'MacOS') { }
460 4 0 if defined $self->{$t}
492 2 0 if (not ref $fname) { }
502 0 2 if ($self->{' wantsig'}) { }
2 0 elsif ($#tlist < 0) { }
510 0 0 if $#tlist < 0
517 0 2 if $self->{' wantsig'}
519 0 2 if ($iswoff) { }
537 0 2 if $self->{' wantsig'}
540 0 2 if ($loc & 3)
549 0 28 ref $self->{' nocompress'} eq 'ARRAY' ? :
0 28 $iswoff && $havezlib && exists $self->{$k}{' nocompress'} ? :
0 28 if ($iswoff && $havezlib && exists $self->{$k}{' nocompress'} ? $self->{$k}{' nocompress'} != -1 : (ref $self->{' nocompress'} eq 'ARRAY' ? !exists $self->{' nocompress'}{$k} : ref $self->{' nocompress'} eq 'SCALAR' && $self->{' nocompress'} != -1)) { }
565 0 0 if (not exists $self->{$k}{' nocompress'} && $len <= $self->{$k}{' nocompress'} || ref $self->{' nocompress'} eq 'SCALAR' && $len <= $self->{' nocompress'}) { }
572 0 0 if ($zlen < $len) { }
596 12 16 if ($loc & 3)
605 20 28 $mloc - $oldloc > 4096 ? :
609 12 36 if ($csum > 4294967295)
618 2 0 if (not $self->{' nocsum'}) { }
0 0 elsif ($self->{' wantsig'}) { }
621 0 2 unless (defined $dir{'head'})
630 2 0 if ($lsum != 0)
633 2 0 if ($csum < 0)
643 0 0 unless (defined $dir{'head'})
655 0 2 if ($self->{' wantsig'})
660 0 2 if $self->{' wantsig'}
679 0 0 if (not ref $fname) { }
686 0 0 unless (scalar @tlist > 0)
722 0 0 if ($tag eq 'font') { }
0 0 elsif ($tag eq 'table') { }
727 0 0 unless (defined $self->{$name})
731 0 0 if ($^O eq 'MacOS') { }
750 0 0 unless $tag eq 'table' and $attrs{'name'} eq 'loca'
751 0 0 if (defined $context->{'glyphs'} and $context->{'glyphs'} ne $self->{'loca'}{'glyphs'})
754 0 0 if defined $context->{'glyphs'}[$i]
802 0 2 @tables ? :
842 0 0 if (UNIVERSAL::can($item, 'release')) { }
0 0 elsif ($ref eq 'ARRAY') { }
0 0 elsif (UNIVERSAL::isa($ref, 'HASH')) { }