blib/lib/PDF/API2/Content.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 54 | 157 | 34.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
69 | 108 | 0 | 6 | $self->{'-docompress'} and $self->{'Filter'} |
453 | 1 | 1 | 0 | $self->{' graphics'} and not @_ |
462 | 0 | 0 | 2 | $style >= 0 and $style <= 2 |
513 | 1 | 1 | 0 | $self->{' graphics'} and not @_ |
522 | 0 | 0 | 2 | $style >= 0 and $style <= 2 |
977 | 4 | 0 | 0 | $x < 0 and $y > 0 |
978 | 4 | 0 | 0 | $x < 0 and $y < 0 |
982 | 3 | 0 | 1 | $spf and $spf > 0 |
988 | 3 | 0 | 1 | $larc and $larc > 0 |
994 | 3 | 0 | 1 | $spf and $spf > 0 |
1220 | 1 | 0 | 0 | scalar @clr == 1 and ref $clr[0] |
0 | 0 | 1 | scalar @clr > 1 and ref $clr[0] | |
1529 | 8 | 0 | 0 | do { not defined $h } && do { $h = $img->height * $w; $w = $img->width * $w } |
1817 | 0 | 0 | 0 | $state{'font'} and $state{'fontsize'} |
1873 | 58 | 1 | 0 | defined $x and not defined $y |
2071 | 1 | 0 | 0 | defined $self->{' font'} and $self->{' fontsize'} |
2173 | 0 | 7 | 12 | scalar @line > 1 and $self->advancewidth(join($", @line)) > $width |
2431 | 0 | 0 | 183 | defined $text and length $text |
line | l | !l | condition |
---|---|---|---|
248 | 12 | 3 | $options{'translate'} // [0, 0] |
249 | 9 | 6 | $options{'rotate'} // 0 |
250 | 9 | 6 | $options{'scale'} // [1, 1] |
251 | 9 | 6 | $options{'skew'} // [0, 0] |
272 | 2 | 0 | $options{'rotate'} // 0 |
457 | 2 | 0 | shift() // 0 |
517 | 2 | 0 | shift() // 0 |
625 | 0 | 0 | $options{'-full'} // 0 |
0 | 0 | $options{'-clear'} // 0 | |
0 | 0 | $options{'pattern'} //= [$options{'-full'} // 0, $options{'-clear'} // 0] | |
629 | 0 | 0 | $options{'offset'} || 0 |
1374 | 1 | 0 | $options{'rule'} // "nonzero" |
1405 | 1 | 0 | $options{'rule'} // "nonzero" |
1435 | 1 | 0 | $options{'rule'} // "nonzero" |
1499 | 0 | 0 | $x //= 0 |
1500 | 0 | 0 | $y //= 0 |
1506 | 0 | 0 | $scale_x //= 1 |
2023 | 0 | 0 | $color ||= "black" |
2034 | 0 | 0 | -$self->{' font'}->underlineposition * $self->{' fontsize'} / 1000 || 1 |
2035 | 0 | 0 | $self->{' font'}->underlinethickness * $self->{' fontsize'} / 1000 || 1 |
2223 | 3 | 1 | $opts{'align-last'} // "left" |
2328 | 12 | 7 | $opts{'align'} // "left" |
2388 | 0 | 0 | $opts{'-align'} // "left" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
240 | 0 | 14 | 0 | $options{$option} //= delete $options{"-" . $option} |
262 | 0 | 4 | 0 | $options{$option} //= delete $options{"-" . $option} |
616 | 0 | 0 | 0 | $options{'pattern'} //= delete $options{'-pattern'} |
619 | 0 | 0 | 0 | $options{'offset'} //= delete $options{'-shift'} |
624 | 0 | 0 | 0 | exists $options{'-full'} or exists $options{'-clear'} |
1502 | 0 | 0 | 0 | $scale_x //= $object->width |
1503 | 0 | 0 | 0 | $scale_y //= $object->height * $scale_x / $object->width |
1507 | 0 | 0 | 0 | $scale_y //= $scale_x |
1922 | 21 | 1 | 1 | $leading or not $self->{' fontsize'} |
2080 | 0 | 10 | 0 | $opts{'indent'} //= delete $opts{'-indent'} |
2083 | 0 | 0 | 0 | $opts{'underline'} //= delete $opts{'-underline'} |
2284 | 0 | 6 | 0 | $opts{'align'} //= delete $opts{'-align'} |
2287 | 0 | 3 | 0 | $opts{'align-last'} //= delete $opts{'-align-last'} |
2290 | 0 | 0 | 0 | $opts{'underline'} //= delete $opts{'-underline'} |
2389 | 0 | 0 | 0 | $opts{'-right'} or $align =~ /^r/i |
0 | 0 | 0 | $opts{'-center'} or $align =~ /^c/i | |
2568 | 2 | 0 | 0 | $self->{'Resources'} //= PDFDict() |
2573 | 0 | 2 | 0 | $dict->{$type} ||= PDFDict() |
2583 | 0 | 2 | 0 | $dict->{$type}{$key} //= $obj |