Branch Coverage

blib/lib/HTML/TreeBuilder/LibXML/Node.pm
Criterion Covered Total %
branch 0 118 0.0


line true false branch
8 0 0 unless @_ >= 1
9 0 0 if (@_ == 1 and ref $_[0]) { }
24 0 0 if (@_ == 3) { }
0 0 elsif (@_ == 2 and lc $key eq 'text') { }
25 0 0 if (defined $value) { }
69 0 0 if $_[0]{'node'}->can('toStringHTML')
77 0 0 $@ ? :
86 0 0 if (@_ == 2) { }
88 0 0 if (defined $_[1]) { }
101 0 0 $klass eq 'HTML::Element' ? :
107 0 0 unless $self->{'node'}
109 0 0 scalar @nodes ? :
115 0 0 unless $self->{'node'}
120 0 0 wantarray ? :
126 0 0 unless $self->{'node'}
129 0 0 wantarray ? :
138 0 0 unless $callback and ref $callback eq 'CODE'
144 0 0 wantarray ? :
150 0 0 unless $self->{'node'}
157 0 0 unless $self->{'node'}
160 0 0 wantarray ? :
177 0 0 if ($node->isa('XML::LibXML::Dtd')) { }
0 0 elsif ($node->isa('XML::LibXML::Element')) { }
224 0 0 unless $self->{'node'}
227 0 0 wantarray ? :
244 0 0 unless $parent
246 0 0 ref $_ ? :
248 0 0 if ($parent->isa('XML::LibXML::Document')) { }
252 0 0 unless $node->isSameNode($parent->lastChild)
257 0 0 if ($_->isa('XML::LibXML::Dtd'))
279 0 0 $node->isa('XML::LibXML::Document') ? :
280 0 0 ref $_ ? :
283 0 0 if ($node->isa('XML::LibXML::Document')) { }
287 0 0 $node->hasChildNodes ? :
302 0 0 unless $self->{'node'}->hasChildNodes
305 0 0 $node->isa('XML::LibXML::Document') ? :
306 0 0 ref $_ ? :
309 0 0 if ($node->isa('XML::LibXML::Document')) { }
312 0 0 $node->hasChildNodes ? :
335 0 0 unless $self->{'node'}
337 0 0 $prev ? :
343 0 0 unless $self->{'node'}
345 0 0 $next ? :
352 0 0 unless $self->{'node'}
357 0 0 if (ref $args[0] eq 'CODE') { }
0 0 elsif (@args >= 2 and $args[0] eq '_tag') { }
0 0 elsif (@args >= 2) { }
365 0 0 if (ref $stuff eq 'Regexp') { }
383 0 0 unless &$filter($_)
385 0 0 $ok ? :
388 0 0 wantarray ? :
406 0 0 if (defined $self->{'_content'}) { }
418 0 0 if $_->isEqual($self->{'node'})
427 0 0 if (@_) { }
430 0 0 unless (defined $_[0])
437 0 0 if ref $_[0]{'node'}->isSameNode($self->{'node'})
441 0 0 if ($_[0]{'node'}->isa('XML::LibXML::Document')) { }
443 0 0 if ($parent->hasChildNodes) { }
460 0 0 defined $parent && !$parent->isa('XML::LibXML::DocumentFragment') ? :