Branch Coverage

blib/lib/WebService/GData/Serialize/XML.pm
Criterion Covered Total %
branch 40 48 83.3


line true false branch
11 45 0 $this->namespace_prefix ? :
21 3 42 if $is_root
24 26 19 if ($owner and $this->namespace_prefix eq $owner->namespace_prefix)
31 3 42 if $is_root
37 18 27 if (@{$this->attributes;} > 0)
41 18 17 if ($val)
48 1 17 if (my($prefix) = $attr =~ /(.+?):/)
50 1 0 if (ref $this->extra_namespaces eq 'HASH' and $this->extra_namespaces->{$prefix})
51 1 0 if $owner and $prefix ne $owner->namespace_prefix
57 7 11 if @attrs
60 38 7 if ($this->is_parent) { }
62 13 9 unless @attrs or $$this{'text'} or @{$this->child;}
67 15 10 if $$this{'text'}
72 14 32 if ($child->isa('WebService::GData::Collection')) { }
82 14 32 if $owner and length $serialized
86 1 8 unless @attrs or $$this{'text'} or length $xmlchild
88 3 21 if ($is_root)
91 1 2 if @namespaces > 0
104 2 5 if @{$this->attributes;} > 0 and not @attrs and not $$this{'text'}
120 4 10 if ($child->isa('WebService::GData::Collection'))
122 0 4 unless ref $node
127 0 14 if ($child->isa('WebService::GData::Node::AbstractEntity'))
133 0 0 $namespace_prefix ? :
0 14 if $namespace_prefix ne $owner->namespace_prefix