Branch Coverage

blib/lib/SOAP/DirectI/Parse.pm
Criterion Covered Total %
branch 33 68 48.5


line true false branch
68 0 4 unless ($parent_tag or $str =~ s/\A\s*<\?xml[^>]*\?>//)
88 0 34 unless (defined $name)
95 12 22 if ($namespace)
100 34 0 if $name
104 31 3 if ($content)
107 13 18 if ($content =~ /[<>]/)
120 4 30 unless ($parent_tag)
128 0 17 if (not $parent_tag || $$self{'tree'})
143 0 8 unless $$tree_root{'siblings'}
158 0 4 if (@tags == 1 and $tags[0]{'name'} =~ /Response/i) { }
4 0 elsif (@tags == 1) { }
171 0 0 if ($other)
197 2 2 if (@tags != 1 and $$tree_root{'namespace'})
199 2 0 if $ns
205 2 2 if (@tags == 1)
216 0 22 if ($$tag{'name'} =~ /^fault/ or $$tag{'name'} eq 'detail')
228 0 22 unless $tag
230 0 22 if (my $href = $$tag{'attr'}{'href'})
232 0 0 if (not wantarray) { }
244 0 22 unless my $type = $self->_get_type($tag)
250 22 0 if (my $s = $self->can('_parse_' . $type))
260 2 18 unless $_
275 0 20 unless wantarray
295 0 0 if (wantarray) { }
302 0 0 if (lc $val eq 'true') { }
0 0 elsif ($val eq 'false') { }
309 0 0 wantarray ? :
316 0 2 unless wantarray
334 0 1 if ($$item{'name'} ne 'item')
340 0 1 if ($elem_sig) { }
350 0 1 unless wantarray
384 0 0 if ($$item{'name'} ne 'item')
390 0 0 if ($key_sig) { }
410 0 1 unless wantarray