Branch Coverage

blib/lib/Pod/HTML_Elements.pm
Criterion Covered Total %
branch 55 106 51.8


line true false branch
28 0 1 if (defined $$obj{'Index'} and not defined $$obj{'index'})
37 21 52 if @_
49 1 59 if (@_ and defined $_[0] and ref $_[0] eq 'HASH') { }
78 0 1 if (defined $i)
81 0 0 if defined $links
89 0 4 if $$parser{'in_name'}
98 1 25 ref $_ ? :
107 1 3 if ($$parser{'in_name'})
113 0 4 if ($c->tag eq 'dt') { }
128 0 17 if defined $links
137 0 0 if (ref $_) { }
153 11 7 if ($t)
156 2 9 if ($cmd eq 'L')
160 0 2 if $text ne $txt
161 0 2 @where == 1 ? :
162 0 2 if defined $link
166 6 1 if ($cmd eq 'E')
171 2 4 if $s =~ /^\d+$/
174 1 0 if $cmd eq 'Z'
175 0 0 if ($cmd eq 'S')
177 0 0 unless defined $nbsp
190 18 54 if (ref $seq) { }
216 9 18 if ($command =~ /^head(\d+)?$/) { }
6 12 elsif ($command eq 'over') { }
6 6 elsif ($command eq 'item') { }
6 0 elsif ($command eq 'back') { }
0 0 elsif ($command eq 'pod') { }
0 0 elsif ($command eq 'for') { }
0 0 elsif ($command eq 'begin') { }
0 0 elsif ($command eq 'end') { }
222 1 8 if ($t eq 'NAME' and not $$parser{'title'})
227 0 9 if ($name)
229 0 0 if defined $name
231 3 6 if ($rank == 1)
233 2 1 if ($$parser{'last_head1'} and $$parser{'last_head1'} eq $parser->input_file)
250 0 6 unless ($c->tag =~ /^(ul|dl|ol|dd|dt)/)
256 0 6 if ($expansion =~ /^\*\s+(.*)$/) { }
0 6 elsif ($expansion =~ /^\d+(?:\.|\s+|\))(.*)$/ or $expansion =~ /^\[\d+\](?:\.|\s+|\))(.*)$/) { }
265 0 0 unless $c->tag eq 'ol'
270 0 6 if ($c->tag eq 'dt') { }
277 0 6 if ($c->tag eq 'dd')
281 6 0 unless $c->tag eq 'dl'
284 6 0 if (length $t)
287 0 6 if defined $name
296 0 6 if $c->tag eq 'dd'
297 0 6 if ($c->tag =~ /^(ul|ol|dl)/)
338 1 0 unless ($$parser{'NoDate'})
344 1 0 if ($html)
347 1 0 if ($fh)
349 1 0 if ($$parser{'PostScript'}) { }
0 0 elsif ($$parser{'Dump'}) { }
377 0 0 if (defined $ifile)
379 0 0 if (open my $fh, ">$ifile")