Branch Coverage

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


line true false branch
68 546 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 if (defined $1) { }
300 0 20 if @_
363 292 30 unless @{$_[0]{'__region_targets'};}
378 5 296 if ($_[0]->__in_literal_xhtml_region) { }
387 43 258 if ($_[0]{'in_code'} and @{$_[0]{'in_code'};}) { }
392 9 249 if ($_[0]{'in_for'}) { }
393 5 4 $_[0]->__in_literal_xhtml_region ? :
394 6 3 if ($_[0]{'started_for'}) { }
395 6 0 if ($html =~ /\S/)
411 103 198 if $_[0]{'in_head'}
412 103 198 if $_[0]{'in_head'}
413 30 271 if $_[0]{'in_item_text'}
446 3 5 if $_[0]{'in_li'}[-1] and pop @{$_[0]{"in_li"};}
452 5 7 if $_[0]{'in_li'}[-1] and pop @{$_[0]{"in_li"};}
475 5 0 if pop @{$_[0]{"in_li"};}
482 7 0 if pop @{$_[0]{"in_li"};}
489 11 0 if ($_[0]{'in_dd'}[$_[0]{'dl_level'}])
511 96 3 unless defined $add
517 7 92 $_[0]->backlink && $h - $add == 0 ? :
538 6 11 $_[0]{'anchor_items'} ? :
545 6 11 if ($_[0]{'in_dd'}[$_[0]{'dl_level'}])
563 4 2 unless ($self->__in_literal_xhtml_region)
565 4 0 if $flags->{'target'}
575 2 4 if ($self->__in_literal_xhtml_region) { }
588 114 20 if (defined $self->html_header) { }
590 1 113 unless $self->html_header eq ""
596 3 17 if (my $css = $self->html_css)
597 2 1 if (not $css =~ /
605 0 20 if ($self->html_javascript)
609 4 16 $self->backlink ? :
635 9 87 if ($level == $target_level) { }
36 51 elsif ($level > $target_level) { }
638 36 0 if $out[-1] =~ /^\s+
  • /
  • 641 29 36 if @out and $out[-1] =~ m[^\s+<\/ul]
    644 6 30 if $level
    648 14 51 if @out and $out[-1] =~ /^\s*
    655 30 66 unless $level
    668 30 104 if ($self->index and @{$to_index;})
    672 23 0 $self->html_header eq '' ? :
    23 7 defined $self->html_header ? :
    676 114 20 if (defined $self->html_footer) { }
    678 1 113 unless $self->html_footer eq ""
    684 34 100 if ($self->index)
    710 3 0 $type eq 'man' ? :
    18 3 $type eq 'pod' ? :
    12 21 $type eq 'url' ? :
    718 33 0 $url ? :
    728 120 226 if ($self->index) { }
    757 0 23 unless defined $to or defined $section
    758 15 8 if (defined $section) { }
    761 10 5 unless defined $to
    790 0 6 unless defined $to
    793 0 6 unless $page
    850 17 103 if $not_unique