Branch Coverage

blib/lib/PDF/API2/Outline.pm
Criterion Covered Total %
branch 58 84 69.0


line true false branch
35 14 3 if defined $parent
36 0 17 if defined $prev
57 13 54 if exists $self->{'First'}
60 18 36 if exists $self->{' children'}
80 20 6 if ($self->has_children)
81 2 18 unless exists $self->{' children'}
84 29 10 unless $child->has_children
85 4 6 unless $child->is_open
90 20 6 if ($count)
91 17 3 $self->is_open ? :
100 0 2 unless $item
124 14 5 if (defined $self->{' children'} and defined $self->{' children'}[0])
140 6 5 if (defined $self->{' children'} and defined $self->{' children'}[-1])
157 0 11 if defined $_[0]
171 10 15 if defined $_[0]
185 10 57 if defined $_[0]
204 4 6 if @{$self->{' children'};}
205 4 6 if @{$self->{' children'};}
207 10 0 unless ($child->is_obj($self->{' api'}{'pdf'}))
227 1 1 if $self->next
230 2 0 unless ($sibling->is_obj($self->{' api'}{'pdf'}))
250 1 1 if $self->prev
253 2 0 unless ($sibling->is_obj($self->{' api'}{'pdf'}))
264 0 4 unless $item
289 0 1 if defined $prev
290 0 1 if defined $next
294 1 0 unless $self->parent->has_children
315 32 1 unless (@_)
317 6 0 $self->{' closed'} ? :
6 26 if exists $self->{' closed'}
320 19 7 if exists $self->{'Count'}
363 1 3 unless (@_)
364 0 1 unless $self->{'Title'}
397 2 0 if (ref $destination) { }
414 0 2 if (defined $location)
415 0 0 if $location eq "-fit" or $location eq "-fitb"
419 0 2 if @args and ref $args[0] eq "ARRAY"
422 0 2 if defined $location
490 0 0 if (defined $location)
491 0 0 if $location eq "-fit" or $location eq "-fitb"
495 0 0 if @args and ref $args[0] eq "ARRAY"
498 0 0 if defined $location