Branch Coverage

blib/lib/Mojo/XMLRPC.pm
Criterion Covered Total %
branch 77 88 87.5


line true false branch
88 4 13 if ($type eq 'methodCall') { }
13 0 elsif ($type eq 'methodResponse') { }
90 4 0 if (defined(my $method = $top->children('methodName')->first))
96 2 11 if (defined(my $fault = $top->children('fault')->first))
104 15 0 if (defined(my $params = $top->children('params')->first))
114 3 38 if (&Scalar::Util::blessed($type) and $type->isa('Mojo::XMLRPC::Message'))
116 1 2 if ($obj->isa('Mojo::XMLRPC::Message::Call')) { }
2 0 elsif ($obj->isa('Mojo::XMLRPC::Message::Response')) { }
120 1 1 $obj->is_fault ? :
121 1 1 $obj->is_fault ? :
127 37 4 $type eq 'call' ? :
128 37 4 $type eq 'call' ? :
132 38 1 @args ? :
2 39 $type eq 'fault' ? :
135 40 1 defined $xml ? :
142 45 26 if ($tag eq 'param' or $tag eq 'value' or $tag eq 'fault') { }
1 25 elsif ($tag eq 'array') { }
3 22 elsif ($tag eq 'struct') { }
9 13 elsif ($tag eq 'int' or $tag eq 'i4') { }
5 8 elsif ($tag eq 'string' or $tag eq 'name') { }
0 8 elsif ($tag eq 'double') { }
3 5 elsif ($tag eq 'boolean') { }
1 4 elsif ($tag eq 'nil') { }
3 1 elsif ($tag eq 'dateTime.iso8601') { }
1 0 elsif ($tag eq 'base64') { }
146 2 43 unless @$children
174 1 2 $elem->text ? :
181 2 1 unless ($date->epoch)
190 2 3 unless $@
206 9 35 if (ref $item) { }
207 5 4 if (&Scalar::Util::blessed($item)) { }
1 3 elsif (ref $item eq 'ARRAY') { }
1 2 elsif (ref $item eq 'HASH') { }
2 0 elsif (ref $item eq 'SCALAR') { }
208 0 5 if ($item->can('TO_XMLRPC')) { }
2 3 elsif ($item->isa('JSON::PP::Boolean')) { }
1 2 elsif ($item->isa('Mojo::Date')) { }
2 0 elsif ($item->isa('Mojo::XMLRPC::Base64')) { }
0 0 elsif ($item->can('TO_JSON')) { }
212 1 1 $item ? :
240 1 1 $$item ? :
247 9 21 $sv->FLAGS & 256 ? :
4 30 $sv->FLAGS & 512 ? :
1 34 !defined($item) ? :