Condition Coverage

blib/lib/PDF/Builder/Content.pm
Criterion Covered Total %
condition 39 178 21.9


and 3 conditions

line !l l&&!r l&&r condition
106 98 0 4 $self->{'-docompress'} and $self->{'Filter'}
684 9 1 0 scalar @pat == 1 and $pat[0] == -1
1064 69 90 0 not $dir and $alpha > $beta
1065 0 0 0 $alpha == 360 and $beta == 0
1078 90 68 1 $dir and $alpha < $beta
1079 0 1 0 $alpha == 0 and $beta == 360
1529 6 1 0 $inputs[-2][0] == $inputs[-1][0] and $inputs[-2][1] == $inputs[-1][1]
1593 1 1 6 $i > 0 and $i < $last
1595 6 0 0 $polyline[$i - 1][0] == $polyline[$i][0] and $polyline[$i - 1][1] == $polyline[$i][1]
1644 1 6 0 $i < $last and $colinpt[$i]
1852 0 0 0 $colinear eq 'line' and $j > $i
1877 0 0 0 $dtheta >= 0 and $dthetap < 0
0 0 0 $dtheta < 0 and $dthetap >= 0
1958 0 0 0 $i < $last and $type[$i] == 1 || $type[$i] == 3
2029 2 0 0 $ptheta >= 0 and $ttheta >= 0
0 1 1 $ptheta < 0 and $ttheta < 0
2132 4 0 0 $x1 == $x2 and $y1 == $y2
2987 0 0 0 $state{'font'} and $state{'fontsize'}
3161 21 1 1 defined $indent and $indent != 0
3257 0 0 190 defined $text and length $text
3477 1 0 0 defined $self->{' font'} and $self->{' fontsize'}
3721 0 0 0 defined $self->{' font'} and $self->{' fontsize'}
3802 0 0 0 $dump and $cw != $ax
3917 0 0 0 $dir eq 'L' || $dir eq 'R' and $ulxy1[1] > $ulxy2[1]
0 0 0 $dir eq 'T' || $dir eq 'B' and $ulxy1[2] < $ulxy2[2]
4047 0 0 0 defined $self->{' font'} and $self->{' fontsize'}
4279 0 464 0 defined $self->{' apiistext'} && $self->{' apiistext'}

or 2 conditions

line l !l condition
383 1 0 $opts{'-rotate'} || 0
672 1 0 $pat{'-shift'} || 0
673 1 0 $pat{'-shift'} || 0
3353 0 0 $color ||= 'black'
3363 0 0 -$self->{' font'}->underlineposition * $self->{' fontsize'} / 1000 || 1
3364 0 0 $self->{' font'}->underlinethickness * $self->{' fontsize'} / 1000 || 1
3412 0 0 $color ||= 'black'
3425 0 0 $self->{' fontsize'} || 20
3427 0 0 $self->{' font'}->underlinethickness * $self->{' fontsize'} / 1000 || 1
3700 0 0 $settings->{'dir'} || 'L'
3701 0 0 $settings->{'align'} || 'B'
3702 0 0 $settings->{'dump'} || 0
3703 0 0 $settings->{'script'} || 'Latn'
3708 0 0 $settings->{'minKern'} || 1
4054 0 0 $opts{'-doKern'} || 1
4055 0 0 $opts{'-minKern'} || 1
4385 0 0 $dict->{$type}{$key} || undef

or 3 conditions

line l !l&&r !l&&!r condition
1047 0 0 159 $rx <= 0 or $ry <= 0
1644 1 0 7 $i == 0 or $i < $last and $colinpt[$i]
1877 0 0 0 $dtheta >= 0 and $dthetap < 0 or $dtheta < 0 and $dthetap >= 0
1958 0 0 0 $type[$i] == 1 || $type[$i] == 3
2029 0 1 1 $ptheta >= 0 and $ttheta >= 0 or $ptheta < 0 and $ttheta < 0
3717 0 0 0 $dir eq 'T' or $dir eq 'B'
3746 0 0 0 $dir eq 'L' or $dir eq 'T'
3764 0 0 0 $dir eq 'L' or $dir eq 'R'
3831 0 0 0 $ay != 0 or $dx != 0
0 0 0 $ay != 0 or $dx != 0 or $dy != 0
3886 0 0 0 $dir eq 'L' or $dir eq 'T'
3903 0 0 0 $dir eq 'L' or $dir eq 'R'
3909 0 0 0 $dir eq 'L' or $dir eq 'R'
3917 0 0 0 $dir eq 'L' || $dir eq 'R'
0 0 0 $dir eq 'T' || $dir eq 'B'
0 0 0 $dir eq 'L' || $dir eq 'R' and $ulxy1[1] > $ulxy2[1] or $dir eq 'T' || $dir eq 'B' and $ulxy1[2] < $ulxy2[2]
4057 0 0 0 $dir eq 'T' or $dir eq 'B'
4079 0 0 0 $dir eq 'T' or $dir eq 'B'
4377 2 0 0 $self->{'Resources'} ||= PDFDict()
4382 0 2 0 $dict->{$type} ||= PDFDict()
4390 0 2 0 $dict->{$type}{$key} ||= $obj