Branch Coverage

blib/lib/Pod/HTMLEmbed/Entry.pm
Criterion Covered Total %
branch 12 38 31.5


line true false branch
45 0 16 unless $section_name
63 3 0 if ($self->_has_tree)
79 0 2 unless my($title) = $self->section('NAME') =~ / - (.*)/
112 0 0 unless (ref $section)
115 0 0 unless $section = $self->_tree->look_down('_tag', 'h2', sub { $_[0]->content->[0] eq $section; } )
130 0 0 unless my $section = $self->_tree->look_down('_tag', 'h2', sub { $_[0]->content->[0] eq $section_name; } )
136 0 0 unless $section->tag =~ /^h[2-6]$/
139 0 0 if ($num < $n) { }
0 0 elsif ($num == $n) { }
151 0 0 unless $toc
172 0 4 unless my $first_child = shift @{$li->content_array_ref;}
173 0 4 unless ref $first_child
183 8 0 if (1 == $num_element and my $p = $children[0] and $children[0]->tag eq 'p')
207 0 3 if $self->has_url_prefix
209 0 3 unless $p->parse_file($file)
218 4 0 unless $stripped =~ /\n$/
230 0 4 if $lines[0] eq ''
233 0 4 unless /^(\040+)/ and length $1
244 0 4 if $trailing_newline