Branch Coverage

blib/lib/PDF/Builder/Outline.pm
Criterion Covered Total %
branch 73 108 67.5


line true false branch
55 14 3 if defined $parent
58 14 3 if defined $parent
81 13 54 if exists $self->{'First'}
84 18 36 if exists $self->{' children'}
108 20 6 if ($self->has_children)
109 2 18 unless exists $self->{' children'}
112 29 10 unless $child->has_children
113 4 6 unless $child->is_open
118 20 6 if ($count)
119 17 3 $self->is_open ? :
137 0 2 unless $item
165 14 5 if (defined $self->{' children'} and defined $self->{' children'}[0])
186 6 5 if (defined $self->{' children'} and defined $self->{' children'}[-1])
208 0 11 if defined $_[0]
230 10 15 if defined $_[0]
252 10 57 if defined $_[0]
280 4 6 if @{$self->{' children'};}
281 4 6 if @{$self->{' children'};}
284 10 0 unless $child->is_obj($self->{' api'}{'pdf'})
306 1 1 if $self->next
309 2 0 unless ($sibling->is_obj($self->{' api'}{'pdf'}))
333 1 1 if $self->prev
336 2 0 unless ($sibling->is_obj($self->{' api'}{'pdf'}))
347 0 4 unless $item
376 0 1 if defined $prev
377 0 1 if defined $next
381 1 0 unless $self->parent->has_children
406 32 1 unless (@_)
408 6 0 $self->{' closed'} ? :
6 26 if exists $self->{' closed'}
411 19 7 if exists $self->{'Count'}
488 1 3 unless (@_)
489 0 1 unless $self->{'Title'}
532 2 0 if (ref $page) { }
546 0 2 if (defined $position{'-fit'} and not defined $position{'fit'})
547 0 2 if (defined $position{'-fith'} and not defined $position{'fith'})
548 0 2 if (defined $position{'-fitb'} and not defined $position{'fitb'})
549 0 2 if (defined $position{'-fitbh'} and not defined $position{'fitbh'})
550 0 2 if (defined $position{'-fitv'} and not defined $position{'fitv'})
551 0 2 if (defined $position{'-fitbv'} and not defined $position{'fitbv'})
552 0 2 if (defined $position{'-fitr'} and not defined $position{'fitr'})
553 0 2 if (defined $position{'-xyz'} and not defined $position{'xyz'})
555 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'}) { }
568 0 0 unless scalar @{$position{'fitr'};} == 4
571 0 0 unless scalar @{$position{'xyz'};} == 3
572 0 0 defined $_ ? :
576 0 6 defined $_ ? :