Branch Coverage

blib/lib/Pod/LaTeX.pm
Criterion Covered Total %
branch 120 186 64.5


line true false branch
412 2 0 unless exists $$self{'ReplaceNAMEwithSection'}
414 2 0 unless exists $$self{'AddPreamble'}
416 2 0 unless exists $$self{'StartWithNewPage'}
418 2 0 unless exists $$self{'TableOfContents'}
420 2 0 unless exists $$self{'AddPostamble'}
422 2 0 unless exists $$self{'MakeIndex'}
425 2 0 unless exists $$self{'UniqueLabels'}
431 2 0 unless exists $$self{'Head1Level'}
439 2 0 unless exists $$self{'LevelNoNum'}
448 2 0 unless exists $$self{'Label'}
455 0 2 unless exists $$self{'Label'}
457 0 2 unless exists $$self{'Label'}
505 1 2 if (@_)
532 1 2 if (@_)
572 1 6 if (@_)
574 1 0 if ($arg =~ /^\d$/ and $arg <= $#Pod::LaTeX::LatexSections) { }
610 0 12 if (@_)
638 0 6 if (@_)
661 0 2 if (@_)
707 0 0 if (@_)
727 0 2 if (@_)
748 1 1 if (@_)
771 0 12 if (@_)
790 0 3 if (@_)
809 0 3 if (@_)
835 0 76 if wantarray
889 2 0 if ($self->AddPreamble)
891 1 1 if (defined $self->UserPreamble) { }
909 0 1 unless ($self->MakeIndex)
919 0 1 unless $self->TableOfContents
945 0 2 if $self->StartWithNewPage
964 2 0 if ($self->AddPostamble)
966 1 1 if (defined $self->UserPostamble) { }
974 0 1 unless $self->MakeIndex
995 0 32 if $command eq 'pod'
1013 4 28 if ($command eq 'over') { }
14 14 elsif ($command eq 'item') { }
4 10 elsif ($command eq 'back') { }
6 4 elsif ($command eq 'head1') { }
0 4 elsif ($command eq 'head2') { }
0 4 elsif ($command eq 'head3') { }
0 4 elsif ($command eq 'head4') { }
0 4 elsif ($command eq 'head5') { }
0 4 elsif ($command eq 'head6') { }
1 3 elsif ($command eq 'begin') { }
2 1 elsif ($command eq 'for') { }
1 0 elsif ($command eq 'end') { }
0 0 elsif ($command eq 'pod') { }
1056 1 0 if ($paragraph =~ /^latex/i) { }
1082 1 1 if ($format =~ /^latex/i)
1115 0 3 if ($$self{'_dont_modify_any_para'}) { }
1121 1 2 if $paragraph =~ /^\s+$/
1159 3 26 if ($$self{'_dont_modify_any_para'})
1182 0 26 if ($$self{'_CURRENT_HEAD1'} =~ /^NAME/i and $self->ReplaceNAMEwithSection) { }
1205 0 0 unless $self->Head1Level == $#Pod::LaTeX::LatexSections
1230 1 23 if ($seq_command eq 'B') { }
2 21 elsif ($seq_command eq 'I') { }
7 14 elsif ($seq_command eq 'E') { }
0 14 elsif ($seq_command eq 'Z') { }
5 9 elsif ($seq_command eq 'C') { }
0 9 elsif ($seq_command eq 'F') { }
0 9 elsif ($seq_command eq 'S') { }
4 5 elsif ($seq_command eq 'L') { }
2 3 elsif ($seq_command eq 'P') { }
3 0 elsif ($seq_command eq 'Q') { }
0 0 elsif ($seq_command eq 'X') { }
1239 0 7 if ($seq_argument =~ /^\d+$/) { }
7 0 elsif (exists $Pod::LaTeX::HTML_Escapes{$seq_argument}) { }
1273 0 4 unless (defined $link)
1282 0 4 if ($type eq 'section' and $page eq '') { }
1378 0 4 unless (defined $self->lists->[-1])
1390 4 0 if defined $type and length $type > 0
1414 0 14 unless (defined $self->lists->[-1])
1425 0 14 if $$self{'_suppress_all_para'}
1428 4 10 if (scalar $self->lists->[-1]->item == 0)
1436 2 2 if (substr($paragraph, 0, 1) eq '*') { }
1 1 elsif ($paragraph =~ /^\d/) { }
1451 5 9 if ($type eq 'description') { }
1462 2 3 if ($hunk2) { }
1510 0 6 if $$self{'_CURRENT_HEAD1'} =~ /^NAME/i and $self->ReplaceNAMEwithSection
1524 0 6 if ($num > $#Pod::LaTeX::LatexSections)
1532 0 6 $level >= $self->LevelNoNum ? :
1569 69 0 unless $$self{'_suppress_all_para'}
1685 0 6 @_ ? :
1702 0 6 if (not $suppress and $self->UniqueLabels and defined $self->Label)
1726 0 6 @_ ? :
1734 0 6 if (not $suppress and $self->UniqueLabels and defined $self->Label)
1796 3 2 if length $input < $limit
1808 1 125 if (/\{/) { }
1 124 elsif (/}/) { }
20 207 elsif (/ / and $depth == 0) { }
1813 20 0 if $token and $token ne ' '
1819 14 6 if (length $s < $limit) { }