| line |
true |
false |
branch |
|
30
|
1 |
0 |
if (my(@children) = $self->getChildren) |
|
47
|
0 |
0 |
if (my(@children) = $self->getChildren) |
|
63
|
0 |
1 |
unless (@children) |
|
66
|
0 |
0 |
unless @children |
|
70
|
1 |
0 |
if $children[$index] == $self |
|
84
|
0 |
0 |
unless (@children) |
|
87
|
0 |
0 |
unless @children |
|
103
|
1 |
0 |
if (my $parent = $self->getParent) |
|
106
|
1 |
0 |
if (defined $index and scalar @children > $index) |
|
124
|
0 |
0 |
if (my $parent = $self->getParent) |
|
127
|
0 |
0 |
if ($index) |
|
147
|
16 |
8 |
if ($$self{'children'}) |
|
163
|
0 |
0 |
if (defined $$self{'child'}{$name}) |
|
164
|
0 |
0 |
if (wantarray) { } |
|
184
|
8 |
31 |
if (exists $$self{'children'}) |
|
185
|
8 |
0 |
if (scalar @{$$self{'children'};}) |
|
207
|
49 |
36 |
if ($$self{'parent'}) |
|
228
|
18 |
0 |
if (ref $parent or not defined $parent) |
|
253
|
0 |
0 |
unless $parent |
|
277
|
0 |
0 |
if $parent == $self |
|
293
|
0 |
0 |
if $parent == $ancestor |
|
307
|
0 |
0 |
if (my $parent = $self->getParent) |
|
311
|
0 |
0 |
wantarray ? : |
|
322
|
0 |
0 |
if (my $parent = $self->getParent) |
|
324
|
0 |
0 |
if $siblings >= 2 |
|
367
|
0 |
18 |
if (exists $$self{'id'}) |
|
401
|
0 |
3 |
if ($sns) { } |
|
406
|
0 |
3 |
unless (defined $attribute) |
|
409
|
0 |
3 |
unless (ref $attribute) |
|
412
|
0 |
3 |
if ($serialise <= 1) { } |
|
418
|
0 |
3 |
if ($serialise <= 1) { } |
|
|
0 |
3 |
elsif ($serialise == 2) { } |
|
419
|
0 |
0 |
wantarray ? : |
|
421
|
0 |
0 |
wantarray ? : |
|
435
|
0 |
3 |
$ns ? : |
|
436
|
0 |
3 |
unless defined $prefix |
|
441
|
3 |
0 |
wantarray ? : |
|
456
|
0 |
3 |
$ns ? : |
|
459
|
3 |
0 |
if (defined $sns) { } |
|
478
|
0 |
3 |
$_ ne '' ? : |
|
489
|
0 |
0 |
if exists $$self{'attributes'}{''}{$name} |
|
501
|
0 |
0 |
if exists $$self{'attributes'}{$prefix}{$name} |
|
513
|
3 |
7 |
if $$self{'attributes'} and keys %{$$self{'attributes'};} |
|
524
|
0 |
6 |
unless $name |
|
527
|
2 |
0 |
if ($name eq 'id' and $self->document and defined $value) |
|
529
|
2 |
0 |
if ($self->document->addId($value, $self)) { } |
|
530
|
0 |
2 |
if ($existing) |
|
549
|
0 |
6 |
unless ($self->_can_contain_attributes) |
|
554
|
0 |
6 |
unless defined $value |
|
557
|
6 |
0 |
if ($self->_has_attribute($name)) |
|
559
|
6 |
0 |
unless ($result) |
|
564
|
0 |
6 |
unless ref $result |
|
578
|
0 |
0 |
if ($self->hasAttribute($name)) |
|
592
|
0 |
0 |
if ($self->hasAttributeNS($ns, $name)) |
|
606
|
0 |
0 |
unless (ref $ns) |
|
610
|
0 |
0 |
unless $prefix |
|
611
|
0 |
0 |
if ($$self{'attributes'}{$prefix}{$name}) |
|
624
|
0 |
0 |
unless (ref $ns) |
|
629
|
0 |
0 |
if (not $$self{'attributes'}{$prefix}{$name}) |
|
642
|
0 |
19 |
if ($self->hasChildren) |
|
646
|
12 |
7 |
if (defined $text) |
|
647
|
0 |
12 |
if (ref($text) =~ /CDATA/) { } |
|
674
|
94 |
0 |
if ref $$self{'document'} |
|
675
|
0 |
0 |
if ($self->getParent) { } |
|
697
|
0 |
0 |
unless $refChild |
|
699
|
0 |
0 |
if $index < 0 |
|
720
|
0 |
0 |
unless $refChild |
|
722
|
0 |
0 |
if $index < 0 |
|
737
|
0 |
0 |
if $self->getParent |
|
749
|
0 |
0 |
if $self->getParent |
|
762
|
0 |
0 |
if $newChild->getParent eq $self |
|
765
|
0 |
0 |
if $index < 0 |
|
795
|
0 |
0 |
if not defined $index or $index < 0 |
|
843
|
0 |
0 |
if ($key ne 'children' and $key ne 'parent') |
|
848
|
0 |
0 |
if ($deep) |
|
868
|
0 |
0 |
if $child eq $refChild |
|
882
|
0 |
18 |
unless defined $index |
|
884
|
18 |
0 |
if ($self->document) { } |
|
885
|
0 |
18 |
if ($id and not $self->document->addId($id, $newChild)) |
|
895
|
0 |
18 |
if $newChild->getParent |
|
898
|
4 |
14 |
if ($$self{'child'}{$newChild->name}) { } |
|
920
|
0 |
0 |
if $id |
|
923
|
0 |
0 |
unless ($self->hasChildren) |
|
955
|
0 |
18 |
if (ref($element) =~ /CDATA/) { } |