Branch Coverage

blib/lib/LaTeX/Pod.pm
Criterion Covered Total %
branch 74 94 78.7


line true false branch
61 136 70 if ($type eq 'TEXT') { }
6 64 elsif ($type eq 'COMMENT') { }
30 34 elsif ($type eq 'ENVIRONMENT') { }
34 0 elsif ($type eq 'COMMAND') { }
62 48 88 if not $node->getNodeText =~ /\w+/ or $node->getNodeText =~ /^\\\w+$/m
65 32 0 $i >= 1 ? :
22 66 if ($node->getNodeText =~ /\\item/) { }
28 38 elsif (not defined $command_keyword and $i >= 1 ? !$self->_is_environment_type($node->getParent, 'verbatim') : &true()) { }
34 4 elsif (defined $command_keyword) { }
83 2 28 if ($class eq 'abstract') { }
22 6 elsif ($class =~ /^($regex_list_type)$/) { }
4 2 elsif ($class eq 'verbatim') { }
96 34 134 if ($self->{'command_checks'}{$keyword}->($cmd_name))
98 0 34 if (defined $exec and $exec) { }
102 20 14 if defined $exec
129 0 3 unless -e shift()
130 0 3 unless -f _
131 0 3 unless -s _
136 0 3 if defined $error
214 6 2 if &any(sub { $directive eq $_; } , "directive", "author")
216 2 0 if ($directive eq "title")
280 8 14 if ($nested)
303 4 18 if ($self->_is_environment_type($node->getPreviousSibling, qr/^(?:$regex_list_type)$/))
315 32 24 if ($text =~ /\G \s*? \\item (?:\s*?\[(.+?)\]\s+?|\s+?) (\S.+)?$/cgmx) { }
2 22 elsif ($text =~ /\G \s*? (\S.+?) \s*? (?:(?=\\item)|\z)/gsx) { }
317 2 30 if ($type eq 'description') { }
14 16 elsif ($type eq 'enumerate') { }
16 0 elsif ($type eq 'itemize') { }
318 2 0 defined $1 ? :
321 4 10 defined $1 ? :
324 2 14 defined $1 ? :
326 30 2 defined $2 ? :
345 62 24 unless $self->_is_set_previous("list")
349 2 22 if $self->_is_environment_type($parent, "verbatim")
351 12 12 if ($self->_is_environment_type($parent, "document"))
364 2 26 if ($self->_is_environment_type($node->getPreviousSibling, "abstract"))
456 0 6 if ($self->_is_environment_type($node->getPreviousSibling, "abstract"))
475 2 0 if ($self->_is_set_previous("list"))
486 220 0 unless ref $type eq "REGEXP"
515 0 4 unless (length $$text)
529 10 24 $append ? :
539 142 2 if (@{$self->{'pod'};})
545 0 144 if $DEBUG
555 0 30 if $DEBUG
565 0 0 (caller 2)[3] =~ /^.+::_text_setter$/ ? :
614 0 0 $self->{'node'}{$item} ? :
641 36 140 $self->{'previous'}{$item} ? :