Branch Coverage

lib/Pod/PseudoPod/DOM/Role/HTML.pm
Criterion Covered Total %
branch 51 68 75.0


line true false branch
30 0 53 unless my $heading = $anchors->{$anchor}
87 0 143 unless defined $content
89 143 0 if (my($char, $class) = $content =~ /(\w)(\w+)/)
91 91 52 if exists $characters{$class}
96 26 26 if $args{'encode'} =~ /^(index_|id$)/
114 1 40 if $self->add_body_tags
125 39 8 unless $kid->type eq 'header'
126 3 5 if $kid->exclude_from_toc($args{'max_depth'})
152 5 0 if (&blessed($heading)) { }
212 40 74 $id_node ? :
215 40 74 $id_node ? :
224 0 3140 unless defined $content
232 1212 1954 if (my $encode = $args{'encode'})
256 0 2032 unless (defined $text)
303 13 0 if (my $title = $self->title) { }
333 41 0 $marker ? :
341 0 145 unless @$kids
344 39 106 unless @$kids
370 186 273 if $args{'encode'} =~ /^(index_|id$)/
415 2 54 if exists $env->{$tag}
434 0 481 unless $has_visible_text
436 26 455 @kids && $kids[0]->type =~ /^(?:anchor|index)$/ ? :
450 0 26 if ($type eq 'anchor') { }
26 0 elsif ($type eq 'index') { }
485 28 55 $self->title ? :
488 2 81 if (my $environment = $self->emit_environments->{$target}) { }
55 26 elsif (my $meth = $self->can('emit_' . $target)) { }
521 56 28 unless defined $title and length $title
529 156 40 if $self->type eq 'index'
546 13 0 $self->title ? :
549 13 0 if $title
589 13 0 defined $anchor ? :
593 13 0 if $anchor
595 13 0 if $caption