Condition Coverage

blib/lib/PDF/Builder/Page.pm
Criterion Covered Total %
condition 31 76 40.7


and 3 conditions

line !l l&&!r l&&r condition
242 0 0 2 &looks_like_number($w) and &looks_like_number($h)
349 58 20 29 scalar @corners and $corners[0] =~ /[a-z]/i
367 0 0 4 $box eq "CropBox" and not defined $pdf->{'pages'}{'CropBox'}
370 0 4 0 $box ne "CropBox" and $box ne "MediaBox"
382 0 0 0 defined $opts{'-orient'} and not defined $opts{'orient'}
768 5 0 2 $box ne "media" and not ref $value
5 0 2 $box ne "media" and not ref $value and &looks_like_number($value)
772 2 0 0 $parent eq "trim" and not $boxes{'trim'}
773 0 0 2 $parent eq "bleed" and not $boxes{'bleed'}
774 2 0 0 $parent eq "bleed" and not $boxes{'bleed'}
836 0 152 0 defined $dir and $dir > 0
988 0 0 0 defined $hash{'-prepend'} and not defined $hash{'prepend'}
989 0 0 0 defined $hash{'-compress'} and not defined $hash{'compress'}
1079 0 0 0 defined $hash{'-prepend'} and not defined $hash{'prepend'}
1080 0 0 0 defined $hash{'-compress'} and not defined $hash{'compress'}
1203 0 1 0 do {

or 2 conditions

line l !l condition
1140 0 0 $degrees //= 0
1262 0 2 $dict->{$type}{$key} || undef

or 3 conditions

line l !l&&r !l&&!r condition
364 1 1 2 $box eq "ArtBox" or $box eq "TrimBox"
2 1 1 $box eq "ArtBox" or $box eq "TrimBox" or $box eq "BleedBox"
823 9 150 0 $self->{'Contents'} || PDFArray()
995 11 0 122 $self->{' api'}{'forcecompress'} eq "flate" or $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/
1086 5 0 14 $self->{' api'}{'forcecompress'} eq "flate" or $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/
1254 0 0 0 $dict || $self->{'Resources'} || PDFDict()
1258 3 29 0 $dict->{$type} || PDFDict()
1267 0 30 0 $dict->{$type}{$key} || $obj