Branch Coverage

lib/Pod/Simple/XHTML.pm
Criterion Covered Total %
branch 92 106 86.7


line true false branch
67 365 8 if $Pod::Simple::XHTML::HAS_HTML_ENTITIES
68 1 7 if (defined $ents) { }
270 0 20 if @_
333 269 30 unless @{$_[0]{'__region_targets'};}
346 5 273 $_[0]->__in_literal_xhtml_region ? :
350 39 239 if ($_[0]{'in_code'} and @{$_[0]{'in_code'};}) { }
355 9 230 if ($_[0]{'in_for'}) { }
356 5 4 $_[0]->__in_literal_xhtml_region ? :
357 6 3 if ($_[0]{'started_for'}) { }
358 6 0 if ($text =~ /\S/)
374 97 181 if $_[0]{'in_head'}
407 3 5 if $_[0]{'in_li'}[-1] and pop @{$_[0]{'in_li'};}
413 5 7 if $_[0]{'in_li'}[-1] and pop @{$_[0]{'in_li'};}
435 5 0 if pop @{$_[0]{'in_li'};}
442 7 0 if pop @{$_[0]{'in_li'};}
449 7 0 if ($_[0]{'in_dd'}[$_[0]{'dl_level'}])
471 91 3 unless defined $add
476 7 87 $_[0]->backlink && $h - $add == 0 ? :
497 2 11 $_[0]{'anchor_items'} ? :
504 6 7 if ($_[0]{'in_dd'}[$_[0]{'dl_level'}])
522 4 2 unless ($self->__in_literal_xhtml_region)
524 4 0 if $flags->{'target'}
534 2 4 if ($self->__in_literal_xhtml_region) { }
547 102 20 if (defined $self->html_header) { }
549 1 101 unless $self->html_header eq ''
555 3 17 if (my $css = $self->html_css)
556 2 1 if (not $css =~ /
564 0 20 if ($self->html_javascript)
568 4 16 $self->backlink ? :
585 26 96 if ($self->index and @{$to_index;})
595 9 79 if ($level == $target_level) { }
32 47 elsif ($level > $target_level) { }
598 32 0 if $out[-1] =~ /^\s+
  • /
  • 601 29 32 if @out and $out[-1] =~ m[^\s+<\/ul]
    604 6 26 if $level
    608 14 47 if @out and $out[-1] =~ /^\s*
    615 26 62 unless $level
    621 19 0 $self->html_header eq '' ? :
    19 7 defined $self->html_header ? :
    625 102 20 if (defined $self->html_footer) { }
    627 1 101 unless $self->html_footer eq ''
    633 26 96 if ($self->index)
    656 3 0 $type eq 'man' ? :
    14 3 $type eq 'pod' ? :
    12 17 $type eq 'url' ? :
    664 29 0 $url ? :
    674 100 219 if ($self->index) { }
    703 0 19 unless defined $to or defined $section
    704 11 8 if (defined $section) { }
    706 6 5 unless defined $to
    737 0 6 unless defined $to
    739 0 6 unless $page
    796 17 102 if $not_unique