Branch Coverage

blib/lib/XML/LibXML/Iterator.pm
Criterion Covered Total %
branch 34 58 58.6


line true false branch
18 0 0 wantarray ? :
27 0 7 unless defined $node
50 0 0 if defined $func and ref $func ne 'CODE'
53 0 0 if (defined $func) { }
87 36 5 if ($self->{'INDEX'} != -1) { }
90 36 0 unless (scalar @filters > 0)
98 6 30 unless defined $node
102 0 0 if $fv
104 30 0 if $fv == 1 or $fv == 0
112 35 6 if (defined $node)
115 5 30 if ($node->isSameNode($self->{'FIRST'})) { }
134 12 0 unless (scalar @filters > 0)
141 2 10 unless defined $node
145 0 0 if $fv
147 10 0 if $fv == 1 or $fv == 0
150 10 2 if (defined $node)
162 0 8 if (scalar @_)
170 0 8 unless $self->{'FILTERS'}
176 0 0 if $fv
181 0 8 unless ($fv == 1)
201 0 1 unless defined $function and ref $function eq 'CODE'
218 12 36 if ($dir < 0) { }
222 2 10 if $self->{'CURRENT'}->isSameNode($self->{'FIRST'}) and $self->{'INDEX'} <= 0
225 4 6 unless defined $node
234 36 0 if (defined $self->{'CURRENT'}) { }
238 0 36 if $self->{'CURRENT'}->isSameNode($self->{'FIRST'}) and $self->{'INDEX'} > 0
240 12 24 if ($self->{'CURRENT'}->hasChildNodes) { }
250 6 18 unless defined $pnode
252 18 0 unless defined $node