Branch Coverage

blib/lib/Pod/PXML.pm
Criterion Covered Total %
branch 1 172 0.5


line true false branch
34 2 0 unless defined &DEBUG
98 0 0 if (ref $content eq 'SCALAR') { }
103 0 0 unless ($tree->loaded)
114 0 0 unless $root
124 0 0 if ($type eq 'root') { }
0 0 elsif ($type eq 'for') { }
0 0 elsif ($type eq 'sequence') { }
0 0 elsif ($type eq 'list') { }
0 0 elsif ($type eq 'ordinary') { }
0 0 elsif ($type eq 'command') { }
0 0 elsif ($type eq 'item') { }
0 0 elsif ($type eq 'verbatim') { }
0 0 elsif ($type eq 'text') { }
146 0 0 if ($type eq 'e') { }
0 0 elsif ($type eq 'l') { }
149 0 0 if ($x and @$x == 1 and $$x[0]->get_type eq 'text') { }
151 0 0 if $x =~ /[ \t<>]/s
172 0 0 if length $page
174 0 0 if length $section
178 0 0 unless ($x = $target->get_children and @$x)
180 0 0 if (not $Pod::PXML::LINK_TEXT_INFER) { }
187 0 0 if ($ch = $it->get_children and @$ch == 1 and $$ch[0]->get_type eq 'text')
199 0 0 if (not length $section) { }
0 0 elsif ($section =~ /^[:\w]+(?:\(\))?/) { }
200 0 0 if length $page
203 0 0 length $page ? :
209 0 0 if length $page
226 0 0 length $x ? :
241 0 0 if ($x =~ /^head[1234]$/is) { }
256 0 0 unless $it->get_children
262 0 0 unless $Pod::PXML::FUSE_ADJACENT_PRES and $out =~ s[\n\n$][]s
266 0 0 if $out =~ /]]>$/s
280 0 0 $type eq 'item' ? :
0 0 unless $type eq 'item' ? $it->get_siblings : $it->get_children
301 0 0 unless defined($x = $_[0])
302 0 0 if ($x =~ /[&<>]/ and not $x =~ /[^\x00-\x80]/) { }
313 0 0 unless $Pod::PXML::HIGH_BIT_OK
323 0 0 unless defined($x = $_[0])
324 0 0 if ($Pod::PXML::HIGH_BIT_OK) { }
325 0 0 unless $Pod::PXML::Char2xmlent{ord $1}
328 0 0 unless $Pod::PXML::Char2xmlent{ord $1}
336 0 0 unless defined($x = $_[0])
338 0 0 if ($Pod::PXML::HIGH_BIT_OK) { }
339 0 0 unless $Pod::PXML::Char2xmlent{ord $1}
342 0 0 unless $Pod::PXML::Char2xmlent{ord $1}
404 0 0 if ($Pod::PXML::XML_VALIDATE)
405 0 0 if (@stack < 2) { }
0 0 elsif (defined($cm_set = $Pod::PXML::Acceptable_children{$stack[-2]})) { }
406 0 0 unless ($gi eq 'pod')
411 0 0 unless $$cm_set{$gi}
419 0 0 if ($gi =~ /^[bicxfs]$/s) { }
0 0 elsif ($gi eq 'p' or $gi eq 'pre') { }
0 0 elsif ($gi eq 'for') { }
0 0 elsif ($gi eq 'list') { }
0 0 elsif ($gi eq 'item') { }
0 0 elsif ($gi =~ /^head[1234]$/s) { }
0 0 elsif ($gi eq 'link') { }
0 0 elsif ($gi eq 'pod') { }
429 0 0 defined $text && length $text ? :
441 0 0 unless $text eq $Pod::PXML::XMLNS
456 0 0 unless $gi eq ($text = pop @stack)
459 0 0 if ($gi =~ /^[bicxfs]$/s) { }
0 0 elsif ($gi eq 'p') { }
0 0 elsif ($gi eq 'pre') { }
0 0 elsif ($gi eq 'for') { }
0 0 elsif ($gi eq 'list') { }
0 0 elsif ($gi eq 'item') { }
0 0 elsif ($gi =~ /^head[1234]$/s) { }
0 0 elsif ($gi eq 'link') { }
0 0 elsif ($gi eq 'pod') { }
470 0 0 unless (length $text)
494 0 0 unless (length $text)
549 0 0 if length $text
552 0 0 unless defined $xref
553 0 0 unless defined $section
557 0 0 if length $section
559 0 0 unless length $xref or length $section
577 0 0 unless defined $_[0] and length $_[0]
579 0 0 if (not @stack) { }
580 0 0 unless $_[0] =~ /^\s+$/s
583 0 0 if (($Pod::PXML::Acceptable_children{$stack[-1]} || die(qq[Putting text under unknown element "$stack[-1]"]))->{'#PCDATA'}) { }
587 0 0 unless @paragraph_stack
589 0 0 if ($stack[-1] eq 'pre') { }
596 0 0 unless $_[0] =~ /^\s+$/s
614 0 0 if (ref $content eq 'SCALAR') { }
636 0 0 unless $Pod::PXML::Char2podent{ord $1}