Branch Coverage

blib/lib/Pod/Simple/XHTML.pm
Criterion Covered Total %
branch 97 118 82.2


line true false branch
68 500 9 if $HAS_HTML_ENTITIES
69 1 8 if (defined $ents) { }
85 5 0 if $HAS_HTML_ENTITIES
88 0 0 defined $3 ? :
0 0 defined $2 ? :
0 0 defined $1 ? :
298 0 20 if @_
361 270 30 unless @{$_[0]{'__region_targets'};}
376 5 274 if ($_[0]->__in_literal_xhtml_region) { }
385 40 239 if ($_[0]{'in_code'} and @{$_[0]{'in_code'};}) { }
390 9 230 if ($_[0]{'in_for'}) { }
391 5 4 $_[0]->__in_literal_xhtml_region ? :
392 6 3 if ($_[0]{'started_for'}) { }
393 6 0 if ($html =~ /\S/)
409 97 182 if $_[0]{'in_head'}
410 97 182 if $_[0]{'in_head'}
411 25 254 if $_[0]{'in_item_text'}
444 3 5 if $_[0]{'in_li'}[-1] and pop @{$_[0]{"in_li"};}
450 5 7 if $_[0]{'in_li'}[-1] and pop @{$_[0]{"in_li"};}
473 5 0 if pop @{$_[0]{"in_li"};}
480 7 0 if pop @{$_[0]{"in_li"};}
487 7 0 if ($_[0]{'in_dd'}[$_[0]{'dl_level'}])
509 91 3 unless defined $add
515 7 87 $_[0]->backlink && $h - $add == 0 ? :
536 2 11 $_[0]{'anchor_items'} ? :
543 6 7 if ($_[0]{'in_dd'}[$_[0]{'dl_level'}])
561 4 2 unless ($self->__in_literal_xhtml_region)
563 4 0 if $flags->{'target'}
573 2 4 if ($self->__in_literal_xhtml_region) { }
586 103 20 if (defined $self->html_header) { }
588 1 102 unless $self->html_header eq ""
594 3 17 if (my $css = $self->html_css)
595 2 1 if (not $css =~ /
603 0 20 if ($self->html_javascript)
607 4 16 $self->backlink ? :
633 9 79 if ($level == $target_level) { }
32 47 elsif ($level > $target_level) { }
636 32 0 if $out[-1] =~ /^\s+
  • /
  • 639 29 32 if @out and $out[-1] =~ m[^\s+<\/ul]
    642 6 26 if $level
    646 14 47 if @out and $out[-1] =~ /^\s*
    653 26 62 unless $level
    666 26 97 if ($self->index and @{$to_index;})
    670 19 0 $self->html_header eq '' ? :
    19 7 defined $self->html_header ? :
    674 103 20 if (defined $self->html_footer) { }
    676 1 102 unless $self->html_footer eq ""
    682 26 97 if ($self->index)
    705 3 0 $type eq 'man' ? :
    14 3 $type eq 'pod' ? :
    12 17 $type eq 'url' ? :
    713 29 0 $url ? :
    723 100 220 if ($self->index) { }
    752 0 19 unless defined $to or defined $section
    753 11 8 if (defined $section) { }
    756 6 5 unless defined $to
    787 0 6 unless defined $to
    789 0 6 unless $page
    845 17 102 if $not_unique