Condition Coverage

blib/lib/Font/TTF/Font.pm
Criterion Covered Total %
condition 11 45 24.4


and 2 conditions

line l !l condition
442 0 0 $self->{$name} = $self->{' PARENT'}->find($self, $name, $check, $off, $len) and next

and 3 conditions

line !l l&&!r l&&r condition
510 0 0 0 length $_ == 4 && defined $self->{$_}
515 11 0 28 length $_ == 4 && defined $self->{$_}
549 28 0 0 $iswoff && $havezlib && exists $self->{$k}{' nocompress'}
28 0 0 ref $self->{' nocompress'} eq 'SCALAR' && $self->{' nocompress'} != -1
689 0 0 0 length $_ == 4 && defined $self->{$_}
750 0 0 0 $tag eq 'table' and $attrs{'name'} eq 'loca'
751 0 0 0 defined $context->{'glyphs'} and $context->{'glyphs'} ne $self->{'loca'}{'glyphs'}

or 2 conditions

line l !l condition
251 0 1 $Font::TTF::Font::dumper ||= 'dumpvar.pl'
443 26 2 $Font::TTF::Font::tables{$name} || 'Font::TTF::Table'
494 2 0 'IO::File'->new("+>$fname") || (return warn("Unable to open $fname for writing"), undef)
681 0 0 'IO::File'->new("+>$fname") || (return warn("Unable to open $fname"), undef)
729 0 0 $Font::TTF::Font::tables{$name} || 'Font::TTF::Table'

or 3 conditions

line l !l&&r !l&&!r condition
415 2 0 0 $ver == 65536 or $ver == unpack('N', 'OTTO')
2 0 0 $ver == 65536 or $ver == unpack('N', 'OTTO') or $ver == unpack('N', 'true')
427 0 0 14 $off + $zlen > $woffLength or $zlen > $len
565 0 0 0 exists $self->{$k}{' nocompress'} && $len <= $self->{$k}{' nocompress'} || ref $self->{' nocompress'} eq 'SCALAR' && $len <= $self->{' nocompress'}