Branch Coverage

blib/lib/XML/LibXML/Ferry.pm
Criterion Covered Total %
branch 52 52 100.0


line true false branch
50 6 1 if (%attrs) { }
52 7 1 if defined $attrs{$_}
75 3 2 if defined $text
76 4 1 %attrs ? :
93 1 2 if (ref $name)
114 66 34 if $_->nodeType == 3
231 12 15 if (exists $ex->{'__meta_name'}) { }
235 6 6 defined $ex->{'__meta_content'} ? :
240 3 12 if exists $ex->{'__text'}
244 1 1 if $self->hasAttribute($_)
254 30 103 if (exists $ex->{$key}) { }
256 3 27 if (ref $e eq 'ARRAY') { }
24 3 elsif (ref $e eq 'HASH') { }
261 23 1 if ref $val
271 1 108 if (ref $sub) { }
2 106 elsif ($sub) { }
279 71 35 if ref $val
283 95 14 if (defined $val)
285 89 6 unless &blessed($obj) and $obj->can($m)
286 6 89 if (&blessed($obj) and $obj->can($m)) { }
289 81 8 unless exists $obj->{$key}
290 11 78 if (exists $obj->{$key})
291 4 7 if (ref $obj->{$key} eq 'ARRAY') { }
323 20 5 if ($self->hasChildNodes)
325 23 41 if ($_->nodeType == 1)
326 19 4 unless exists $$hash{$_->nodeName}