Branch Coverage

blib/lib/PDF/Builder/Page.pm
Criterion Covered Total %
branch 39 66 59.0


line true false branch
37 0 141 if ref $class
47 0 141 if (defined $self->{'Parent'}{'UserUnit'}) { }
52 0 0 if ($UU != 1)
106 0 0 if (float($value) <= 0)
128 29 96 if (scalar @corners and $corners[0] =~ /[a-z]/i)
130 78 47 if (scalar @corners == 0) { }
0 47 elsif (scalar @corners == 3) { }
134 53 25 if (defined $self->{$box}) { }
138 17 8 if (defined $pdf->{'pages'}{$box}) { }
143 4 2 if ($box eq 'ArtBox' or $box eq 'TrimBox' or $box eq 'BleedBox')
146 8 0 if ($box eq 'CropBox' and not defined $pdf->{'pages'}{'CropBox'})
149 0 8 if ($box ne 'CropBox' and $box ne 'MediaBox')
161 0 0 if (defined $opts{'-orient'})
162 0 0 if ($opts{'-orient'} =~ /^l/i)
175 29 18 if ($isName)
177 0 29 if ($UU != 1)
387 0 0 if ($degrees % 90)
402 0 118 if (ref($self->{'Contents'}) =~ /Objind$/)
405 0 118 unless (ref($self->{'Contents'}) =~ /Array$/)
414 0 111 if (defined $dir and $dir > 0) { }
419 111 0 unless $obj->is_obj($self->{' apipdf'})
505 9 82 if $self->{' api'}{'forcecompress'} eq 'flate' or $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/
536 5 15 if $self->{' api'}{'forcecompress'} eq 'flate' or $self->{' api'}{'forcecompress'} =~ /^[1-9]\d*$/
550 1 1 exists $self->{'Annots'} ? :
566 1 1 if ($self->{'Annots'}->is_obj($self->{' apipdf'}))
597 0 30 if ref($dict) =~ /Objind$/
600 0 30 if ref($dict->{$type}) =~ /Objind$/
602 28 2 if (defined $obj) { }
605 0 28 if ($force) { }
611 0 28 if $dict->is_obj($self->{' apipdf'})
612 0 28 if $dict->{$type}->is_obj($self->{' apipdf'})
613 26 2 if $obj->is_obj($self->{' apipdf'})
624 0 0 if (defined $self->{'Contents'})