Branch Coverage

blib/lib/HTML/Feature/Engine/TagStructure.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
21 0 8 unless $html_ref and $$html_ref
49 8 0 if (my $title = $root->find('title'))
53 8 0 if (my $desc = $root->look_down('_tag', 'meta', 'name', 'description'))
64 8 0 $c->{'cache'} ? :
74 0 0 if $c->{'max_bytes'} and ($c->{'max_bytes'} =~ /^[\d]+$/ and $text_length > $c->{'max_bytes'})
78 0 0 if $c->{'min_bytes'} and $c->{'min_bytes'} =~ /^[\d]+$/ and $text_length < $c->{'min_bytes'}
97 0 16 unless $node_hash{'text'} =~ /[^ ]+/
127 6 2 unless $c->{'element_flag'}
147 2 6 if ($c->{'element_flag'})
152 8 0 if ($c->{'enc_type'})
168 24 16 unless ($data)
175 16 8 if (ref $node) { }
180 0 16 if ($tag =~ /p|br|hr|tr|ul|li|ol|dl|dd/)
183 0 16 if ($tag =~ /a|dt|th|option/)
187 0 16 if ($text_len < 20)
202 24 16 if (ref $node)