Branch Coverage

blib/lib/Pod/HtmlEasy/Parser.pm
Criterion Covered Total %
branch 64 80 80.0


line true false branch
32 4 0 if ($PERL_VERSION >= 5.012) { }
144 259 379 unless (defined $txt_ref and length ${$txt_ref;})
169 12 336 if (${$txt_ref;} =~ /https?:/msx)
198 2 334 if (${$txt_ref;} =~ /ftp:/msx)
203 2 332 if (${$txt_ref;} =~ /file:/msx)
208 4 328 if (${$txt_ref;} =~ /$MAIL_RE/msx)
232 89 40 if (defined $$parser{'POD_HTMLEASY'}{'VERBATIM_BUFFER'})
285 16 17 if ($$parser{'INDEX_ITEM'})
290 33 0 unless ($expansion =~ /
307 0 45 if (defined $$parser{'POD_HTMLEASY'}{"ON_\U$command\E"}) { }
0 45 elsif (not $command =~ /^(?:pod|cut)$/imsx) { }
321 73 56 if ($html ne EMPTY())
336 0 12 if (exists $$parser{'POD_HTMLEASY'}{'IN_BEGIN'})
345 1 208 if (exists $$parser{'POD_HTMLEASY'}{'IN_BEGIN'})
366 4 204 if ($html ne EMPTY())
367 0 4 if ($add_index)
382 1 107 if (exists $$parser{'POD_HTMLEASY'}{'IN_BEGIN'})
383 94 13 if (defined $$parser{'POD_HTMLEASY'}{'VERBATIM_BUFFER'})
410 107 0 if ($html ne EMPTY())
411 4 103 if ($add_index)
429 47 42 if ($seq_command ne 'L')
458 0 42 if ($seq_argument eq EMPTY())
464 147 63 if (defined $_)
480 2 0 if (defined $$parser{'POD_HTMLEASY'}{"ON_\U$seq_command\E"}) { }
511 0 297 if ($$parser{'POD_HTMLEASY'}{'INFO_COUNT'} == $INFO_DONE)
515 295 2 unless (exists $$parser{'POD_HTMLEASY'}{'PACKAGE'})
516 1 294 if ($text =~ /package/msx)
518 1 0 if (defined $pack)
525 295 2 unless (exists $$parser{'POD_HTMLEASY'}{'VERSION'})
526 1 294 if ($text =~ /VERSION/msx)
528 1 0 if (defined $ver)
539 4 293 if (exists $$parser{'POD_HTMLEASY'}{'TITLE'} and not defined $$parser{'POD_HTMLEASY'}{'TITLE'})
544 2 2 unless (defined $tmp_text)
561 4 52 if ($txt eq '*')
563 23 29 if (exists $$parser{'INDEX_ITEM'})
565 1 22 if (length $txt > $max_len)
568 0 5 if $max_len >= length $txt
570 1 0 if ($max_len < length $txt)
605 26 22 if (defined $$parser{'POD_HTMLEASY'}{'VERBATIM_BUFFER'})
625 0 0 if ($html ne EMPTY())