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]
1532 8 0 0 do { not defined $h } && do { $h = $img->height * $w; $w = $img->width * $w }
1820 0 0 0 $state{'font'} and $state{'fontsize'}
1876 58 1 0 defined $x and not defined $y
2077 1 0 0 defined $self->{' font'} and $self->{' fontsize'}
2179 0 7 12 scalar @line > 1 and $self->advancewidth(join($", @line)) > $width
2437 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"
1502 0 0 $x //= 0
1503 0 0 $y //= 0
1509 0 0 $scale_x //= 1
2029 0 0 $color ||= "black"
2040 0 0 -$self->{' font'}->underlineposition * $self->{' fontsize'} / 1000 || 1
2041 0 0 $self->{' font'}->underlinethickness * $self->{' fontsize'} / 1000 || 1
2229 3 1 $opts{'align-last'} // "left"
2334 12 7 $opts{'align'} // "left"
2394 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'}
1505 0 0 0 $scale_x //= $object->width
1506 0 0 0 $scale_y //= $object->height * $scale_x / $object->width
1510 0 0 0 $scale_y //= $scale_x
1928 21 1 1 $leading or not $self->{' fontsize'}
2086 0 10 0 $opts{'indent'} //= delete $opts{'-indent'}
2089 0 0 0 $opts{'underline'} //= delete $opts{'-underline'}
2290 0 6 0 $opts{'align'} //= delete $opts{'-align'}
2293 0 3 0 $opts{'align-last'} //= delete $opts{'-align-last'}
2296 0 0 0 $opts{'underline'} //= delete $opts{'-underline'}
2335 8 0 11 $align eq "justified" or $align eq "justify"
2395 0 0 0 $opts{'-right'} or $align =~ /^r/i
0 0 0 $opts{'-center'} or $align =~ /^c/i
2575 2 0 0 $self->{'Resources'} //= PDFDict()
2580 0 2 0 $dict->{$type} ||= PDFDict()
2590 0 2 0 $dict->{$type}{$key} //= $obj