Condition Coverage

blib/lib/PDF/Builder/Page.pm
Criterion Covered Total %
condition 29 82 35.3


and 3 conditions

line !l l&&!r l&&r condition
174 78 20 29 scalar @corners and $corners[0] =~ /[a-z]/i
192 0 0 8 $box eq "CropBox" and not defined $pdf->{'pages'}{'CropBox'}
195 0 8 0 $box ne "CropBox" and $box ne "MediaBox"
207 0 0 0 defined $opts{'-orient'} and not defined $opts{'orient'}
662 0 0 2 &looks_like_number($w) and &looks_like_number($h)
712 6 0 2 $box ne "media" and not ref $value
6 0 2 $box ne "media" and not ref $value and &looks_like_number($value)
716 2 0 0 $parent eq "trim" and not $boxes{'trim'}
717 0 0 2 $parent eq "bleed" and not $boxes{'bleed'}
718 2 0 0 $parent eq "bleed" and not $boxes{'bleed'}
781 0 154 0 defined $dir and $dir > 0
917 0 0 0 defined $hash{'-prepend'} and not defined $hash{'prepend'}
918 0 0 0 defined $hash{'-compress'} and not defined $hash{'compress'}
1000 0 0 0 defined $hash{'-prepend'} and not defined $hash{'prepend'}
1001 0 0 0 defined $hash{'-compress'} and not defined $hash{'compress'}
1051 0 1 0 do { ref($self->{'Annots'}) =~ /Objind/ } && do { $self->{'Annots'}->realise }

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
189 2 2 4 $box eq "ArtBox" or $box eq "TrimBox"
4 2 2 $box eq "ArtBox" or $box eq "TrimBox" or $box eq "BleedBox"
768 9 152 0 $self->{'Contents'} || PDFArray()
925 0 0 0 $self->{' api'}{'forcecompress'} eq 'flate' || $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/
134 0 0 $compress //= $self->{' api'}{'forcecompress'} eq 'flate' || $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/
1008 0 0 0 $self->{' api'}{'forcecompress'} eq 'flate' || $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/
20 0 0 $compress //= $self->{' api'}{'forcecompress'} eq 'flate' || $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/
1096 0 0 0 $dict || $self->{'Resources'} || PDFDict()
1100 3 29 0 $dict->{$type} || PDFDict()
1109 0 30 0 $dict->{$type}{$key} || $obj