Branch Coverage

blib/lib/Pod/Tree/HTML.pm
Criterion Covered Total %
branch 111 122 90.9


line true false branch
27 0 60 unless defined $dest
61 9 51 if isa($source, 'Pod::Tree')
64 48 3 unless $ref
65 1 50 if isa($source, 'IO::File')
66 1 50 if $ref eq 'SCALAR'
67 1 50 if $ref eq 'ARRAY'
69 0 51 unless $tree->loaded
80 1 1 unless $tree->has_pod or $options->{'empty'}
85 1 58 if isa($dest, 'HTML::Stream')
86 7 51 if isa($dest, 'IO::File')
87 1 50 if can($dest, 'print')
89 42 8 if (ref $dest eq 'SCALAR')
94 8 0 if (ref $dest eq '' and $dest)
96 0 8 unless $fh->open($dest, '>')
123 12 46 if ($template) { }
142 40 6 if defined $title
143 2 44 if defined $base
144 0 46 if defined $css
177 0 12 unless my $template = 'Text::Template'->new('SOURCE', $tSource)
180 0 12 unless $template->fill_in('OUTPUT', $fh)
188 0 58 if defined $title
194 32 112 unless $child->is_pod
195 56 56 if $i++
196 56 56 if $node1
199 2 56 unless $node1
204 6 50 unless $title
212 37 22 unless $html->{'options'}{'toc'}
220 20 2 if $html->{'options'}{'hr'} > 0
231 14 116 if $node->is_c_head2
232 32 84 if $node->is_c_head1
247 5 151 if $node->is_c_head1
248 37 114 if $node->is_c_head2
286 210 42 if (@$siblings == 1 and $siblings->[0]{'type'} eq 'ordinary') { }
304 230 3329 if /command/
305 24 3535 if /for/
306 252 3307 if /item/
307 114 3445 if /list/
308 474 3085 if /ordinary/
309 567 2992 if /sequence/
310 1855 1704 if /text/
311 29 3530 if /verbatim/
327 18 212 unless $head_tag
344 204 8 unless $html->{'options'}{'hr'} > $level
345 2 6 unless $html->{'skip_first'}++
355 18 6 if $html->can($emit)
383 120 132 if (/bullet/)
389 48 204 if (/number/)
395 84 168 if (/text/)
420 102 12 if $list_type
421 102 12 if $list_tag
422 102 12 if $tag
426 102 12 if $list_tag
427 102 12 if $tag
443 295 272 if /I|B|C|F/
444 12 260 if /S/
445 222 38 if /L/
446 38 0 if /X/
447 0 0 if /E/
500 181 25 if $link_map->can('url')
517 10 15 if $page
588 276 342 length $_ ? :