Branch Coverage

blib/lib/PDF/Builder/Outline.pm
Criterion Covered Total %
branch 74 112 66.0


line true false branch
43 14 3 if defined $parent
44 0 17 if defined $prev
47 14 3 if defined $parent
69 13 54 if exists $self->{'First'}
72 18 36 if exists $self->{' children'}
90 20 6 if ($self->has_children)
91 2 18 unless exists $self->{' children'}
94 29 10 unless $child->has_children
95 4 6 unless $child->is_open
100 20 6 if ($count)
101 17 3 $self->is_open ? :
118 0 2 unless $item
140 14 5 if (defined $self->{' children'} and defined $self->{' children'}[0])
155 6 5 if (defined $self->{' children'} and defined $self->{' children'}[-1])
171 0 11 if defined $_[0]
184 10 15 if defined $_[0]
197 10 57 if defined $_[0]
222 4 6 if @{$self->{' children'};}
223 4 6 if @{$self->{' children'};}
226 10 0 unless $child->is_obj($self->{' api'}{'pdf'})
242 1 1 if $self->next
245 2 0 unless ($sibling->is_obj($self->{' api'}{'pdf'}))
263 1 1 if $self->prev
266 2 0 unless ($sibling->is_obj($self->{' api'}{'pdf'}))
277 0 4 unless $item
300 0 1 if defined $prev
301 0 1 if defined $next
305 1 0 unless $self->parent->has_children
322 32 1 unless (@_)
324 6 0 $self->{' closed'} ? :
6 26 if exists $self->{' closed'}
327 19 7 if exists $self->{'Count'}
388 1 3 unless (@_)
389 0 1 unless $self->{'Title'}
423 2 0 if (ref $page) { }
437 0 2 if (defined $position{'-fit'} and not defined $position{'fit'})
438 0 2 if (defined $position{'-fith'} and not defined $position{'fith'})
439 0 2 if (defined $position{'-fitb'} and not defined $position{'fitb'})
440 0 2 if (defined $position{'-fitbh'} and not defined $position{'fitbh'})
441 0 2 if (defined $position{'-fitv'} and not defined $position{'fitv'})
442 0 2 if (defined $position{'-fitbv'} and not defined $position{'fitbv'})
443 0 2 if (defined $position{'-fitr'} and not defined $position{'fitr'})
444 0 2 if (defined $position{'-xyz'} and not defined $position{'xyz'})
446 0 2 if (defined $position{'fit'}) { }
0 2 elsif (defined $position{'fith'}) { }
0 2 elsif (defined $position{'fitb'}) { }
0 2 elsif (defined $position{'fitbh'}) { }
0 2 elsif (defined $position{'fitv'}) { }
0 2 elsif (defined $position{'fitbv'}) { }
0 2 elsif (defined $position{'fitr'}) { }
0 2 elsif (defined $position{'xyz'}) { }
459 0 0 unless scalar @{$position{'fitr'};} == 4
462 0 0 unless scalar @{$position{'xyz'};} == 3
463 0 0 defined $_ ? :
467 0 6 defined $_ ? :
497 0 0 if (ref $destination) { }