Condition Coverage

blib/lib/PDF/API2/Page.pm
Criterion Covered Total %
condition 20 67 29.8


and 3 conditions

line !l l&&!r l&&r condition
308 0 0 2 &looks_like_number($w) and &looks_like_number($h)
330 6 0 0 do { @_ == 1 } && do { my $box = shift(); my(@coordinates) = $self->_bounding_box(ucfirst($box) . 'Box'); return @coordinates }
354 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)
358 2 0 0 $parent eq "trim" and not $boxes{'trim'}
359 0 0 2 $parent eq "bleed" and not $boxes{'bleed'}
360 2 0 0 $parent eq "bleed" and not $boxes{'bleed'}
548 122 0 0 defined $dir and $dir > 0
684 0 1 0 do { ref($self->{'Annots'}) =~ /Objind/ } && do { $self->{'Annots'}->realise }

or 2 conditions

line l !l condition
493 0 0 $degrees //= 0
720 0 0 $dict->{$type}{$key} || undef

or 3 conditions

line l !l&&r !l&&!r condition
498 0 0 0 $degrees == 0 or $degrees == 90
0 0 0 $degrees == 0 or $degrees == 90 or $degrees == -90
0 0 0 $degrees == 0 or $degrees == 90 or $degrees == -90 or $degrees == 180
0 0 0 $degrees == 0 or $degrees == 90 or $degrees == -90 or $degrees == 180 or $degrees == -180
0 0 0 $degrees == 0 or $degrees == 90 or $degrees == -90 or $degrees == 180 or $degrees == -180 or $degrees == 270
0 0 0 $degrees == 0 or $degrees == 90 or $degrees == -90 or $degrees == 180 or $degrees == -180 or $degrees == 270 or $degrees == -270
536 8 120 0 $self->{'Contents'} || PDFArray()
596 0 10 94 $options{'compress'} //= $self->{' api'}{'forcecompress'}
631 0 5 13 $options{'compress'} //= $self->{' api'}{'forcecompress'}
712 0 0 0 $dict || $self->{'Resources'} || PDFDict()
716 1 28 0 $dict->{$type} || PDFDict()
727 0 29 0 $dict->{$type}{$key} || $obj