Condition Coverage

blib/lib/WebDyne/HTML/TreeBuilder.pm
Criterion Covered Total %
condition 29 65 44.6


and 3 conditions

line !l l&&!r l&&r condition
257 208 36 36 $html_fh->eof and $html
377 755 2 0 $WebDyne::HTML::TreeBuilder::CGI_TAG_WEBDYNE{$tag_parent} and $tag eq "head"
755 2 0 $WebDyne::HTML::TreeBuilder::CGI_TAG_WEBDYNE{$tag_parent} and $tag eq "body"
722 0 35 $WebDyne::HTML::TreeBuilder::CGI_TAG_SPECIAL{$tag} and $method ne "SUPER::text"
722 0 0 my($modifier, $tag_actual) = $tag =~ /^(start_|end_)(.*)/i and $method ne "SUPER::text"
503 426 67 0 $ref and $ref ne "WebDyne::HTML::TreeBuilder"
920 149 0 1 $self->_text_block_tag and $tag eq $self->_text_block_tag
101 48 0 not $_[0] and delete $self->{'_end_ignore'}
1079 0 0 0 @{$self->{'_script_stack'};} and !$attr{'type'} || $$WebDyne::HTML::TreeBuilder::WEBDYNE_SCRIPT_TYPE_EXECUTABLE_HR{$attr{'type'}}
0 0 0 @{$self->{'_script_stack'};} and !$attr{'type'} || $$WebDyne::HTML::TreeBuilder::WEBDYNE_SCRIPT_TYPE_EXECUTABLE_HR{$attr{'type'}} and not $attr{'subst'}

or 2 conditions

line l !l condition
177 36 0 $class->SUPER::new(%param) || (return err('unable to initialize from %s, using ISA: %s', ref $class || $class, Dumper(\@WebDyne::HTML::TreeBuilder::ISA)))
222 1 1 $tree_or->{'_line_no'} ||= 0
247 176 35 $tree_or->{'_line_no_next'} || 1
837 0 0 $tag ||= "div"
1214 0 0 $self->$method($tag, $attr_hr, @param) || (return err('unable to get HTML::Element ref for div tag: $tag, attr:%s', Dumper($attr_hr)))
1237 0 0 $self->tag_parse('SUPER::start', $webdyne_tag, $attr_hr, @param) || (return err("unable to create HTML::Element ref for tag:$webdyne_tag, attr_hr:%s", Dumper($attr_hr)))
1252 0 0 $self->$method($tag, $attr_hr, @param) || (return err('unable to get HTML::Element ref for div tag: $tag, attr:%s', Dumper($attr_hr)))

or 3 conditions

line l !l&&r !l&&!r condition
184 36 0 0 $param{'html_tiny_or'} || 'WebDyne::HTML::Tiny'->new('mode', $WebDyne::HTML::TreeBuilder::WEBDYNE_HTML_TINY_MODE, 'r', $param{'r'})
353 498 274 0 $self->{'_pos'} || $self
377 15 0 757 $WebDyne::HTML::TreeBuilder::CGI_TAG_IMPLICIT{$tag_parent} or $tag_parent =~ /^(?:start_|end_)/i
612 0 0 3 $attr_hr->{'compact'} or $attr_hr->{'bare'}
833 0 0 0 my $tag = $div_or->attr("wrap") or @div_attr_name
990 0 16 407 $text =~ /^\W*__CODE__/ or $text =~ /^\W*__PERL__/
1079 0 0 0 !$attr{'type'} || $$WebDyne::HTML::TreeBuilder::WEBDYNE_SCRIPT_TYPE_EXECUTABLE_HR{$attr{'type'}}