Branch Coverage

blib/lib/HTML/TreeBuilder/LibXML.pm
Criterion Covered Total %
branch 23 26 88.4


line true false branch
35 19 24 unless ($PARSER)
59 0 1 unless open my $fh, "<", $_[0]
66 1 42 if defined $self->{'_content'} and $self->{'_content'} eq ""
67 33 10 unless $self->{'_content'} =~ /
68 39 4 unless $self->{'_content'} =~ /
90 26 1 $self->{'_implicit_html'} ? :
92 8 19 if ($destructive and @out > 0)
94 0 8 if (not $self->{'_implicit_doctype'} and my $dtd = $out[0]->ownerDocument->internalSubset)
101 19 8 if wantarray
102 0 8 unless @out
105 1 7 if (not $self->{'_implicit_doctype'} and my $dtd = $out[0]->ownerDocument->internalSubset)
109 5 3 if (@out == 1)
137 1 1 if (defined wantarray)