Branch Coverage

blib/lib/Pod/Simple/XHTML.pm
Criterion Covered Total %
branch 100 122 81.9


line true false branch
68 508 73 if $HAS_HTML_ENTITIES
69 1 72 if (defined $ents) { }
86 5 0 if $HAS_HTML_ENTITIES
89 0 0 defined $3 ? :
0 0 defined $2 ? :
0 0 if (defined $1) { }
100 13 0 defined &utf8::encode ? :
306 0 20 if @_
369 303 30 unless @{$_[0]{'__region_targets'};}
384 5 307 if ($_[0]->__in_literal_xhtml_region) { }
393 43 269 if ($_[0]{'in_code'} and @{$_[0]{'in_code'};}) { }
398 9 260 if ($_[0]{'in_for'}) { }
399 5 4 $_[0]->__in_literal_xhtml_region ? :
400 6 3 if ($_[0]{'started_for'}) { }
401 6 0 if ($html =~ /\S/)
417 106 206 if $_[0]{'in_head'}
418 106 206 if $_[0]{'in_head'}
419 33 279 if $_[0]{'in_item_text'}
452 3 5 if $_[0]{'in_li'}[-1] and pop @{$_[0]{"in_li"};}
458 5 7 if $_[0]{'in_li'}[-1] and pop @{$_[0]{"in_li"};}
481 5 0 if pop @{$_[0]{"in_li"};}
488 7 0 if pop @{$_[0]{"in_li"};}
495 14 0 if ($_[0]{'in_dd'}[$_[0]{'dl_level'}])
517 99 3 unless defined $add
523 7 95 $_[0]->backlink && $h - $add == 0 ? :
544 9 11 $_[0]{'anchor_items'} ? :
551 6 14 if ($_[0]{'in_dd'}[$_[0]{'dl_level'}])
569 4 2 unless ($self->__in_literal_xhtml_region)
571 4 0 if $flags->{'target'}
581 2 4 if ($self->__in_literal_xhtml_region) { }
594 122 20 if (defined $self->html_header) { }
596 1 121 unless $self->html_header eq ""
602 3 17 if (my $css = $self->html_css)
603 2 1 if (not $css =~ /
611 0 20 if ($self->html_javascript)
615 4 16 $self->backlink ? :
641 9 93 if ($level == $target_level) { }
39 54 elsif ($level > $target_level) { }
644 39 0 if $out[-1] =~ /^\s+
  • /
  • 647 29 39 if @out and $out[-1] =~ m[^\s+<\/ul]
    650 6 33 if $level
    654 14 54 if @out and $out[-1] =~ /^\s*
    661 33 69 unless $level
    674 33 109 if ($self->index and @{$to_index;})
    678 26 0 $self->html_header eq '' ? :
    26 7 defined $self->html_header ? :
    682 122 20 if (defined $self->html_footer) { }
    684 1 121 unless $self->html_footer eq ""
    690 40 102 if ($self->index)
    716 3 0 $type eq 'man' ? :
    21 3 $type eq 'pod' ? :
    12 24 $type eq 'url' ? :
    724 36 0 $url ? :
    734 135 228 if ($self->index) { }
    763 0 26 unless defined $to or defined $section
    764 18 8 if (defined $section) { }
    767 13 5 unless defined $to
    796 0 6 unless defined $to
    799 0 6 unless $page
    801 2 4 if (defined $section) { }
    864 19 103 if $not_unique