Branch Coverage

lib/XML/Compile/Transport/SOAPHTTP_MojoUA.pm
Criterion Covered Total %
branch 21 58 36.2


line true false branch
49 0 1 if (my $cb = $self->{'ua_start_cb'} = delete $args->{'ua_start_callback'})
50 0 0 if &reftype($cb) ne 'CODE'
80 1 0 ref $xmlout ? :
92 0 1 if ($textin)
94 0 0 if $@
98 0 1 if ($kind eq 'one-way') { }
0 1 elsif ($xmlin) { }
100 0 0 defined $response ? :
101 0 0 if ($code == 202) { }
126 0 1 ref $soap ? :
140 1 0 if ($version eq 'SOAP11') { }
0 0 elsif ($version eq 'SOAP12') { }
141 0 1 ref $soap ? :
145 0 0 ref $soap ? :
146 0 0 defined $action ? :
154 1 0 if ($method eq 'POST') { }
0 0 elsif ($method eq 'M-POST') { }
155 0 1 if defined $action
160 0 0 if $version eq 'SOAP11'
182 0 1 exists $INC{'XML/Compile/XOP.pm'} ? :
186 0 1 unless $expect
194 0 1 if (my $callback = $self->uaStartCallback)
208 0 1 unless (&blessed($tx) and $tx->isa('Mojo::Transaction::HTTP'))
216 4 0 if (&reftype($headers->{$h}) eq 'ARRAY')
223 0 1 if $err and not $err->{'code'}
229 0 1 if ($response->header('Client-Warning'))
234 1 0 if ($response->is_error)
241 1 0 if ($@)
252 1 6 if $hdr_name eq 'Content-Length'