Branch Coverage

blib/lib/Pod/POM/View/HTML.pm
Criterion Covered Total %
branch 33 60 55.0


line true false branch
53 2 0 if ($type =~ s/^seq_//) { }
0 0 elsif (UNIVERSAL::isa($item, 'HASH')) { }
0 0 elsif (not ref $item) { }
57 0 0 if (defined $item->{'content'}) { }
0 0 elsif (defined $item->{'text'}) { }
62 0 0 ref $text ? :
122 11 3 if (@$items) { }
126 5 6 if ($first_title =~ /^\s*\*\s*/) { }
3 3 elsif ($first_title =~ /^\s*\d+\.?\s*/) { }
144 0 11 ref $self ? :
164 0 28 ref $self ? :
168 28 0 if (defined $title)
169 25 3 if ref $title
170 20 8 if $strip
171 14 14 if (length $title)
188 0 1 unless $for->format =~ /\bhtml\b/
196 2 2 unless $begin->format =~ /\bhtml\b/
206 3 91 $HTML_PROTECT ? :
265 0 3 if ($link =~ /^
270 0 3 if ($link =~ m[^\w+://]s)
279 1 2 if ($link =~ s/^ ([^|]+) \| //x)
288 0 3 if ($link =~ m[^ (.*?) / "? (.*?) "? $]x) { }
0 3 elsif ($link =~ /\s/) { }
299 2 1 unless defined $linktext
302 3 0 if (defined $page and length $page)
307 0 0 if defined $url and defined $section and length $section
341 3 0 unless (defined $url)
342 3 0 defined $title ? :
345 0 0 unless defined $title
373 295 0 unless ($HTML_PROTECT)