Branch Coverage

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


line true false branch
86 5442 12445 unless $_[0]{' uid'}
122 5067 694 if (&blessed($item) and $item->can('release')) { }
673 21 elsif ($ref eq 'ARRAY') { }
0 42 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 4164 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 294 if $PDF::API2::Basic::PDF::Objind::inst{$k}
252 22 272 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)) { }