Branch Coverage

blib/lib/Font/TTF/Glyph.pm
Criterion Covered Total %
branch 40 196 20.4


line true false branch
227 0 5 unless defined $k and $k ne ''
248 1 187 unless defined $Font::TTF::Glyph::fields{'xMin'}
267 0 188 if defined $self->{' read'} and $self->{' read'} > 0
288 0 188 if defined $self->{' read'} and $self->{' read'} > 1
289 188 0 unless $self->{' read'}
293 184 4 if ($num > 0) { }
4 0 elsif ($num < 0) { }
299 260 0 if $_ > $max
302 184 0 if @{$self->{'endPoints'};}
312 1474 4024 if ($flag & 8)
326 6630 1844 if ($flag & 2) { }
1310 534 elsif ($flag & 16) { }
329 3412 3218 unless $flag & 16
337 184 8290 $i == 0 ? :
343 6774 1700 if ($flag & 4) { }
1074 626 elsif ($flag & 32) { }
346 3300 3474 unless $flag & 32
354 184 8290 $i == 0 ? :
367 4 4 if ($flag & 1) { }
377 0 8 if ($flag & 8) { }
0 8 elsif ($flag & 64) { }
0 8 elsif ($flag & 128) { }
392 0 8 if $flag & 512
395 0 4 if ($flag & 256)
402 0 188 if $fp > length $dat
418 0 188 unless $self->{' read'}
419 0 188 if $self->{' isDirty'}
438 0 0 if ($context->{'addresses'}{$addr}) { }
467 0 0 if ($self->{'numberOfContours'} >= 0 and $key eq 'x' || $key eq 'y' || $key eq 'flags') { }
0 0 elsif ($key eq 'hints') { }
469 0 0 if $context->{'done_points'}
506 0 0 defined $val ? :
523 188 0 unless $self->{' isDirty'}
527 0 0 if ($num > 0) { }
0 0 elsif ($num < 0) { }
532 0 0 if $len > 0
537 0 0 if ($i == 0) { }
546 0 0 if $x == 0
547 0 0 if $y == 0
548 0 0 if (($flag & 16) == 0 and $x < 256 and $x > -256)
551 0 0 if $x >= 0
553 0 0 if (($flag & 32) == 0 and $y < 256 and $y > -256)
556 0 0 if $y >= 0
558 0 0 if ($i > 0 and $rflags[-1] == $flag and $repeat < 255) { }
563 0 0 if ($repeat)
574 0 0 if ($repeat)
583 0 0 $i == 0 ? :
584 0 0 if (($flag & 18) == 0) { }
0 0 elsif (($flag & 18) == 18) { }
0 0 elsif (($flag & 18) == 2) { }
594 0 0 $i == 0 ? :
595 0 0 if (($flag & 36) == 0) { }
0 0 elsif (($flag & 36) == 36) { }
0 0 elsif (($flag & 36) == 4) { }
611 0 0 unless $comp->{'args'}[0] > -129 and $comp->{'args'}[0] < 128 and $comp->{'args'}[1] > -129 and $comp->{'args'}[1] < 128
612 0 0 if (defined $comp->{'scale'})
614 0 0 if ($comp->{'scale'}[1] == 0 and $comp->{'scale'}[2] == 0) { }
616 0 0 if ($comp->{'scale'}[0] == $comp->{'scale'}[3]) { }
618 0 0 unless $comp->{'scale'}[0] == 0 or $comp->{'scale'}[0] == 1
625 0 0 if defined $self->{'metric'} and $self->{'metric'} == $i
626 0 0 if ($i == $#{$$self{'comps'};}) { }
627 0 0 if defined $self->{'instLen'} and $self->{'instLen'} > 0
635 0 0 if ($flag & 1) { }
640 0 0 if ($flag & 8) { }
0 0 elsif ($flag & 64) { }
0 0 elsif ($flag & 128) { }
647 0 0 if (defined $self->{'instLen'} and $self->{'instLen'} > 0)
655 0 0 if $olen & 3
674 0 0 unless defined $self->{' read'} and $self->{' read'} > 1
677 0 0 if ($num > 0) { }
0 0 elsif ($num < 0) { }
683 0 0 if $x > $maxx
684 0 0 if $x < $minx
685 0 0 if $y > $maxy
686 0 0 if $y < $miny
699 0 0 unless defined $otherg
702 0 0 if (defined $comp->{'scale'}) { }
0 0 elsif ($comp->{'args'}[0] or $comp->{'args'}[1]) { }
716 0 0 if $gnx > $gxx
717 0 0 if $gny > $gxy
718 0 0 if $gxx > $maxx
719 0 0 if $gnx < $minx
720 0 0 if $gxy > $maxy
721 0 0 if $gny < $miny
747 0 0 if defined $self->{'hints'}
749 0 0 if ($self->{'numberOfContours'} > 0) { }
0 0 elsif ($self->{'numberOfContours'} < 0) { }
762 0 0 unless defined $otherg
766 0 0 $n[2] == 0 ? :
767 0 0 $n[3] == 0 ? :
769 0 0 if $n[6] >= $res[6]
787 0 0 unless $keep{$_}
807 0 0 unless $self->{'numberOfContours'} < 0
813 0 0 unless defined $compg
819 0 0 if (defined $comp->{'scale'})
824 0 0 if (defined $comp->{'args'})
857 0 0 unless $self->{'numberOfContours'} < 0
863 0 0 unless defined $otherg