| line |
true |
false |
branch |
|
30
|
1113 |
0 |
if ($name) { } |
|
45
|
1134 |
1492 |
if (defined $name) |
|
60
|
399 |
20 |
defined $primValue ? : |
|
62
|
399 |
20 |
if (defined $value) { } |
|
66
|
0 |
20 |
unless defined $$self{'_attributes'}{$name} |
|
70
|
419 |
0 |
if (defined $$self{'_attributes'}{$name}) |
|
84
|
27 |
0 |
defined $primValue ? : |
|
86
|
27 |
0 |
if (defined $setTo) |
|
96
|
28 |
0 |
if (defined $value) |
|
102
|
27 |
0 |
if (scalar @contents) |
|
117
|
0 |
0 |
defined $primValue ? : |
|
119
|
0 |
0 |
if (defined $setTo) |
|
121
|
0 |
0 |
unless $setTo =~ /^\s*[Ee\d\.\+-]+\s*$/ |
|
132
|
0 |
0 |
if (defined $value) |
|
134
|
0 |
0 |
if $value =~ /^\s*[Ee\d\.\+-]+\s*$/ |
|
138
|
0 |
0 |
if (scalar @contents) |
|
166
|
0 |
1 |
unless (defined $name) |
|
223
|
7 |
0 |
if (defined $value) |
|
229
|
7 |
0 |
if (scalar @valArray) |
|
242
|
0 |
119 |
unless defined $name |
|
245
|
0 |
119 |
if ($XML::Mini::Debug) |
|
265
|
5 |
114 |
unless $$self{'_numChildren'} |
|
272
|
140 |
2 |
if ($childname) |
|
274
|
0 |
140 |
if ($XML::Mini::CaseSensitive) { } |
|
276
|
0 |
0 |
if ($name =~ /^$childname$/) |
|
279
|
0 |
0 |
if $foundCount == $elementNumber |
|
282
|
114 |
26 |
if ($name =~ /^$childname$/i) |
|
285
|
108 |
6 |
if $foundCount == $elementNumber |
|
298
|
4 |
9 |
if ($theelement) |
|
301
|
0 |
4 |
if $XML::Mini::Debug |
|
323
|
0 |
101 |
unless $elementName |
|
324
|
101 |
0 |
if ($element) |
|
338
|
17 |
0 |
unless (defined $named) |
|
355
|
46 |
0 |
if ($self->isElement($$self{'_children'}[$i])) |
|
359
|
26 |
20 |
if (defined $name) { } |
|
361
|
0 |
26 |
if ($XML::Mini::CaseSensitive) { } |
|
363
|
0 |
0 |
if $name =~ /^$childName$/ |
|
367
|
9 |
17 |
if $name =~ /^$childName$/i |
|
384
|
0 |
1382 |
unless $type |
|
385
|
87 |
1295 |
unless $type =~ /^XML::Mini::Element/ |
|
394
|
0 |
735 |
unless $type |
|
395
|
51 |
684 |
unless $type =~ /^XML::Mini::Node/ |
|
410
|
0 |
0 |
if ($$self{'_avoidLoops'} or $XML::Mini::AutoSetParent) |
|
412
|
0 |
0 |
if ($$self{'_parent'} == $child) |
|
424
|
0 |
0 |
if ($idx > $lastIdx) { } |
|
|
0 |
0 |
elsif ($idx >= 0) { } |
|
427
|
0 |
0 |
if ($idx > $nextIdx) |
|
433
|
0 |
0 |
if $self->isElement($child) |
|
441
|
0 |
0 |
if $self->isElement($child) |
|
446
|
0 |
0 |
if ($newIdx < 0) |
|
465
|
0 |
1119 |
if ($$self{'_avoidLoops'} or $XML::Mini::AutoSetParent) |
|
467
|
0 |
0 |
if ($$self{'_parent'} == $child) |
|
491
|
0 |
1 |
if ($$self{'_avoidLoops'} or $XML::Mini::AutoSetParent) |
|
493
|
0 |
0 |
if ($$self{'_parent'} == $child) |
|
517
|
0 |
1097 |
unless (defined $name) |
|
526
|
19 |
1078 |
if (defined $value) |
|
528
|
0 |
19 |
if ($value =~ /^\s*[Ee\d\.\+-]+\s*$/) { } |
|
547
|
0 |
1120 |
unless defined $child |
|
550
|
0 |
1120 |
unless $self->isElement($child) |
|
556
|
0 |
1120 |
unless defined $childName |
|
559
|
0 |
1120 |
if ($child == $self) { } |
|
|
0 |
2240 |
elsif ($$self{'_avoidLoops'} and $child->parent) { } |
|
577
|
0 |
3 |
unless (defined $child) |
|
583
|
0 |
3 |
unless ($$self{'_numChildren'}) |
|
589
|
1 |
2 |
unless ($childType and $childType =~ /XML::Mini::/) |
|
595
|
0 |
1 |
unless $el |
|
605
|
3 |
2 |
if ($$self{'_children'}[$idx] == $child) { } |
|
613
|
0 |
3 |
unless ($foundChild) |
|
615
|
0 |
0 |
if $XML::Mini::Debug |
|
621
|
3 |
0 |
if ($foundChild->isElement) |
|
633
|
0 |
1 |
unless $$self{'_numChildren'} |
|
656
|
0 |
0 |
unless ($parent) |
|
671
|
0 |
0 |
if (defined $parent) |
|
673
|
0 |
0 |
unless $self->isElement($parent) |
|
684
|
1097 |
0 |
if (defined $setTo) |
|
699
|
128 |
0 |
if ($$self{'_attributes'}) |
|
712
|
126 |
87 |
if ($self->isElement($thisChild)) { } |
|
718
|
27 |
99 |
if ($existing) { } |
|
721
|
22 |
5 |
if ($existingType eq 'ARRAY') { } |
|
741
|
41 |
87 |
if ($numAdded) { } |
|
743
|
2 |
39 |
if (length $contents) |
|
761
|
0 |
144 |
if ($depth == $XML::Mini::NoWhiteSpaces) |
|
778
|
33 |
111 |
if ($attribString) |
|
784
|
7 |
137 |
unless ($$self{'_numChildren'}) |
|
797
|
51 |
87 |
unless $self->isNode($$self{'_children'}[$i]) |
|
803
|
51 |
86 |
unless $allChildrenAreNodes |
|
811
|
233 |
0 |
if (defined $newStr) |
|
813
|
1 |
232 |
unless ($allChildrenAreNodes or $newStr =~ /\n$/) |
|
822
|
51 |
86 |
unless $allChildrenAreNodes |
|
843
|
0 |
0 |
if ($attribString) |
|
849
|
0 |
0 |
unless ($$self{'_numChildren'}) |
|
862
|
0 |
0 |
if defined $newStr |
|
875
|
0 |
597 |
unless $newNode |
|
886
|
0 |
597 |
unless defined $node |
|
889
|
0 |
597 |
unless $self->isNode($node) |
|
894
|
0 |
597 |
if ($XML::Mini::AutoSetParent) |
|
899
|
0 |
597 |
if ($XML::Mini::Debug) |