line | % | coverage | branch |
29 | 0 | T | F | unless ref $self |
35 | 0 | T | F | unless ref $self |
41 | 0 | T | F | unless ref $self |
47 | 0 | T | F | unless ref $self |
53 | 0 | T | F | unless ref $self |
59 | 0 | T | F | unless ref $self |
67 | 0 | T | F | if ($session) |
75 | 50 | T | F | if ($class) |
84 | 0 | T | F | if defined $flag |
92 | 0 | T | F | if (defined $app) |
95 | 0 | T | F | if ($@) |
107 | 0 | T | F | if (not $app_msg) |
113 | 0 | T | F | if ($session->last_message_type eq 'REQUEST') { } |
118 | 0 | T | F | @p ? : |
122 | 0 | T | F | unless ($coderef) |
129 | 0 | T | F | unless ($session->continue_request) |
138 | 0 | T | F | if (ref $coderef) |
143 | 0 | T | F | if ($in_request) |
157 | 0 | T | F | if ($coderef->strict) |
158 | 0 | T | F | if (@args < $coderef->argc) |
162 | 0 | T | F | if (@args) |
164 | 0 | T | F | if ($sig and exists $$sig{'params'}) |
168 | 0 | T | F | if ($$s{'class'} and 'OpenSRF::Utils::JSON'->lookup_hint(ref $a) ne $$s{'class'}) { } |
| 0 | T | F | elsif ($$s{'type'}) { } |
171 | 0 | T | F | if (lc $$s{'type'} eq 'object' and not $a =~ /HASH/o) { } |
| 0 | T | F | elsif (lc $$s{'type'} eq 'array' and not $a =~ /ARRAY/o) { } |
| 0 | T | F | elsif (lc $$s{'type'} eq 'number' and ref $a || !($a =~ /^-?\d+(?:\.\d+)?$/o)) { } |
| 0 | T | F | elsif (lc $$s{'type'} eq 'string' and ref $a) { } |
191 | 0 | T | F | if (defined $resp) { } |
202 | 0 | T | F | if (UNIVERSAL::isa($e, 'Error')) |
269 | 0 | T | F | if (ref $response) { } |
279 | 0 | T | F | if (UNIVERSAL::isa($e, 'Error')) |
335 | 50 | T | F | unless $string |
342 | 50 | T | F | if (/^return (.+)$/so) { } |
| 50 | T | F | elsif (/^param (\w+) \b(.+)$/so) { } |
347 | 50 | T | F | if $desc |
358 | 50 | T | F | unless $d or $p or $r |
385 | 50 | T | F | unless $args{'method'} |
387 | 50 | T | F | unless defined $args{'api_level'} |
396 | 100 | T | F | if (not $args{'signature'}) { } |
| 50 | T | F | elsif (not ref $args{'signature'}) { } |
| 50 | T | F | elsif (ref $args{'signature'} eq 'ARRAY') { } |
397 | 100 | T | F | if ($args{'notes'} and not ref $args{'notes'}) |
409 | 50 | T | F | unless ($args{'object_hint'}) |
417 | 100 | T | F | if $args{'stream'} |
430 | 0 | T | F | unless $session->connect |
436 | 0 | T | F | unless $session->state == $session->CONNECTED |
442 | 0 | T | F | if (UNIVERSAL::isa($list, 'Error')) |
455 | 0 | T | F | if $class eq $server_class |
466 | 0 | T | F | unless $session->connect |
468 | 0 | T | F | unless defined $meth |
469 | 0 | T | F | if defined $meth |
474 | 0 | T | F | if UNIVERSAL::isa($method, 'Error') |
477 | 0 | T | F | if exists $_METHODS[$$method{'api_level'}] and exists $_METHODS[$$method{'api_level'}]{$$method{'api_name'}} |
503 | 0 | T | F | unless defined $proto |
511 | 0 | T | F | if ('OpenSRF::Application'->thunk) { } |
513 | 0 | T | F | if (exists $_METHODS[$p]{$method}) |
518 | 0 | T | F | if (exists $_METHODS[$proto]{$method}) |
523 | 0 | T | F | if (defined $meth) { } |
| 0 | T | F | elsif (not $no_recurse) { } |
524 | 0 | T | F | if ($no_remote and $$meth{'remote'}) |
545 | 0 | T | F | if (not UNIVERSAL::isa($req, 'OpenSRF::AppRequest')) { } |
549 | 0 | T | F | if $self->session |
555 | 0 | T | F | if (not $$self{'remote'}) { } |
565 | 0 | T | F | if (ref $self eq 'HASH') |
570 | 0 | T | F | if ($err) |
571 | 0 | T | F | if (UNIVERSAL::isa($err, 'Error')) { } |
581 | 0 | T | F | if (ref $req and UNIVERSAL::isa($req, 'OpenSRF::AppSubrequest')) { } |
582 | 0 | T | F | if defined $resp |
586 | 0 | T | F | if defined $resp |
596 | 0 | T | F | if (UNIVERSAL::isa($remote_resp, 'Error')) |
609 | 0 | T | F | if ($session) |
629 | 0 | T | F | if ($self->api_name =~ /all$/o) |
638 | 0 | T | F | if (not $offset or $offset <= $seen) |
639 | 0 | T | F | if (not $_METHODS[$api_level]{$api_name}{'remote'}) |
640 | 0 | T | F | if (defined $method) { } |
641 | 0 | T | F | if ($api_name =~ /$method/) |
642 | 0 | T | F | if (not $limit or $returned < $limit) |
648 | 0 | T | F | if (not $limit or $returned < $limit) |