Condition Coverage

blib/lib/Pod/HTML2Pod.pm
Criterion Covered Total %
condition 14 92 15.2


and 3 conditions

line !l l&&!r l&&r condition
671 0 0 0 $parent->content_list == 1 and $grandparent->content_list == 1
674 0 0 0 @cl == 1 and ref $cl[0]
0 0 0 @cl == 1 and ref $cl[0] and $cl[0]->tag eq '~literal'
752 0 0 0 ref $c and not $Pod::HTML2Pod::Phrasal{$c->tag}
838 1 0 0 @levels and $Pod::HTML2Pod::Debug
1055 0 0 1 $hr and ref $hr eq 'HASH'
1060 0 0 1 $tag = $c->tag and defined $tag
0 1 0 $tag = $c->tag and defined $tag and exists $$hr{$tag}
1117 0 0 0 ref $c and $c->tag eq 'li'
1128 0 0 0 ref $c and $c->tag eq 'li'
1205 0 0 0 defined $left and not ref $left
0 0 0 defined $left and not ref $left and $left =~ /^\s*$/s
1213 0 0 0 defined $right and not ref $right
0 0 0 defined $right and not ref $right and $right =~ /^\s*$/s
1231 0 0 0 $left and ref $left
0 0 0 $left and ref $left and $left->tag eq 'pre'
1337 0 0 1 @lines and $lines[-1] =~ /^=(\w{1,10})$/s
0 1 0 @lines and $lines[-1] =~ /^=(\w{1,10})$/s and $1 eq 'item' || $1 eq 'head1' || $1 eq 'head2'
1366 0 0 1 @lines and $lines[0] =~ /^=/s
1372 0 0 1 $comments and @$comments
1440 0 0 0 defined $name and length $name
1444 0 0 0 defined $href and length $href

or 2 conditions

line l !l condition
399 1 0 $tree->find_by_tag_name('body') || die('No BODY in tree?')
405 0 1 $ENV{'USER'} || ''
666 0 0 $a->parent || (next)
668 0 0 $parent->parent || (next)

or 3 conditions

line l !l&&r !l&&!r condition
670 0 0 0 $gptag eq 'h1' or $gptag eq 'h2'
0 0 0 $gptag eq 'h1' or $gptag eq 'h2' or $gptag eq 'item'
791 0 2 0 $node->attr('id') || '`' . $name . '_' . $counter
1000 1 0 0 $i == 0 or not $Pod::HTML2Pod::Phrasal{$last_tag = $children[$i - 1]->tag}
1113 0 0 2 ($tag = $node->tag) eq 'ul' or $tag eq 'menu'
1337 1 0 0 $1 eq 'item' || $1 eq 'head1' || $1 eq 'head2'