Condition Coverage

blib/lib/PDF/API2/Content.pm
Criterion Covered Total %
condition 56 160 35.0


and 3 conditions

line !l l&&!r l&&r condition
70 108 0 6 $self->{'-docompress'} and $self->{'Filter'}
456 1 1 0 $self->{' graphics'} and not @_
465 0 0 2 $style >= 0 and $style <= 2
516 1 1 0 $self->{' graphics'} and not @_
525 0 0 2 $style >= 0 and $style <= 2
980 4 0 0 $x < 0 and $y > 0
981 4 0 0 $x < 0 and $y < 0
985 3 0 1 $spf and $spf > 0
991 3 0 1 $larc and $larc > 0
997 3 0 1 $spf and $spf > 0
1223 1 0 0 scalar @clr == 1 and ref $clr[0]
0 0 1 scalar @clr > 1 and ref $clr[0]
1534 8 0 0 do { not defined $h } && do { $h = $img->height * $w; $w = $img->width * $w }
1822 0 0 0 $state{'font'} and $state{'fontsize'}
1878 58 1 0 defined $x and not defined $y
2079 1 0 0 defined $self->{' font'} and $self->{' fontsize'}
2181 0 7 12 scalar @line > 1 and $self->advancewidth(join($", @line)) > $width
2439 0 0 183 defined $text and length $text

or 2 conditions

line l !l condition
251 12 3 $options{'translate'} // [0, 0]
252 9 6 $options{'rotate'} // 0
253 9 6 $options{'scale'} // [1, 1]
254 9 6 $options{'skew'} // [0, 0]
275 2 0 $options{'rotate'} // 0
460 2 0 shift() // 0
520 2 0 shift() // 0
628 0 0 $options{'-full'} // 0
0 0 $options{'-clear'} // 0
0 0 $options{'pattern'} //= [$options{'-full'} // 0, $options{'-clear'} // 0]
632 0 0 $options{'offset'} || 0
1377 1 0 $options{'rule'} // "nonzero"
1408 1 0 $options{'rule'} // "nonzero"
1438 1 0 $options{'rule'} // "nonzero"
1504 0 0 $x //= 0
1505 0 0 $y //= 0
1511 0 0 $scale_x //= 1
2031 0 0 $color ||= "black"
2042 0 0 -$self->{' font'}->underlineposition * $self->{' fontsize'} / 1000 || 1
2043 0 0 $self->{' font'}->underlinethickness * $self->{' fontsize'} / 1000 || 1
2231 3 1 $opts{'align-last'} // "left"
2336 12 7 $opts{'align'} // "left"
2396 0 0 $opts{'-align'} // "left"

or 3 conditions

line l !l&&r !l&&!r condition
243 0 14 0 $options{$option} //= delete $options{"-" . $option}
265 0 4 0 $options{$option} //= delete $options{"-" . $option}
619 0 0 0 $options{'pattern'} //= delete $options{'-pattern'}
622 0 0 0 $options{'offset'} //= delete $options{'-shift'}
627 0 0 0 exists $options{'-full'} or exists $options{'-clear'}
1507 0 0 0 $scale_x //= $object->width
1508 0 0 0 $scale_y //= $object->height * $scale_x / $object->width
1512 0 0 0 $scale_y //= $scale_x
1930 21 1 1 $leading or not $self->{' fontsize'}
2088 0 10 0 $opts{'indent'} //= delete $opts{'-indent'}
2091 0 0 0 $opts{'underline'} //= delete $opts{'-underline'}
2292 0 6 0 $opts{'align'} //= delete $opts{'-align'}
2295 0 3 0 $opts{'align-last'} //= delete $opts{'-align-last'}
2298 0 0 0 $opts{'underline'} //= delete $opts{'-underline'}
2337 8 0 11 $align eq "justified" or $align eq "justify"
2397 0 0 0 $opts{'-right'} or $align =~ /^r/i
0 0 0 $opts{'-center'} or $align =~ /^c/i
2577 2 0 0 $self->{'Resources'} //= PDFDict()
2582 0 2 0 $dict->{$type} ||= PDFDict()
2592 0 2 0 $dict->{$type}{$key} //= $obj