Branch Coverage

blib/lib/Mojo/XMLRPC.pm
Criterion Covered Total %
branch 73 84 86.9


line true false branch
88 4 11 if ($type eq 'methodCall') { }
11 0 elsif ($type eq 'methodResponse') { }
90 4 0 if (defined(my $method = $top->children('methodName')->first))
96 2 9 if (defined(my $fault = $top->children('fault')->first))
104 13 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 38 23 if ($tag eq 'param' or $tag eq 'value' or $tag eq 'fault') { }
1 22 elsif ($tag eq 'array') { }
2 20 elsif ($tag eq 'struct') { }
9 11 elsif ($tag eq 'int' or $tag eq 'i4') { }
4 7 elsif ($tag eq 'string' or $tag eq 'name') { }
0 7 elsif ($tag eq 'double') { }
3 4 elsif ($tag eq 'boolean') { }
1 3 elsif ($tag eq 'nil') { }
2 1 elsif ($tag eq 'dateTime.iso8601') { }
1 0 elsif ($tag eq 'base64') { }
168 1 2 $elem->text ? :
175 1 1 unless ($date->epoch)
191 9 35 if (ref $item) { }
192 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') { }
193 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')) { }
197 1 1 $item ? :
225 1 1 $$item ? :
232 9 21 $sv->FLAGS & 256 ? :
4 30 $sv->FLAGS & 512 ? :
1 34 !defined($item) ? :