Branch Coverage

blib/lib/PDF/API2/Basic/PDF/Objind.pm
Criterion Covered Total %
branch 24 34 70.5


line true false branch
86 5302 12445 unless $_[0]{' uid'}
122 4926 712 if (&blessed($item) and $item->can('release')) { }
692 20 elsif ($ref eq 'ARRAY') { }
0 40 elsif (defined &reftype($ref) and &reftype($ref) eq 'HASH') { }
147 0 0 unless $self->{' realised'}
158 1825 106 if $self->{' realised'}
159 77 29 if $self->{' objnum'}
173 0 0 unless $self->{' realised'}
186 1048 4024 if (defined $pdf->{' objects'}{$self->uid}) { }
206 3 0 if ($self->{' realised'}) { }
227 0 0 unless $PDF::API2::Basic::PDF::Objind::inst{$k}
247 81 283 if $PDF::API2::Basic::PDF::Objind::inst{$k}
252 22 261 if $k eq "Parent"
291 1023 0 unless (defined $res)
296 2062 1027 if $PDF::API2::Basic::PDF::Objind::inst{$k}
297 0 1027 if defined $res->{$k}
298 147 880 if (&blessed($self->{$k}) and $self->{$k}->can('is_obj') and not $self->{$k}->is_obj($pdf)) { }