line |
true |
false |
branch |
37
|
8 |
1 |
if (/^POST$/) |
40
|
1 |
7 |
unless ($data = $json->decode($self->req->body)) |
50
|
1 |
0 |
if (/^GET$/) |
55
|
0 |
1 |
unless ($data = $json->decode($self->param('_ScriptTransport_data'))) |
71
|
1 |
7 |
unless (defined $id) |
80
|
1 |
6 |
unless (my $service = $$data{'service'}) |
88
|
1 |
5 |
unless (my $method = $$data{'method'}) |
105
|
1 |
4 |
unless ref $svc |
111
|
0 |
4 |
unless $svc->can('allow_rpc_access') |
118
|
0 |
4 |
if ($svc->can('controller')) |
123
|
0 |
4 |
if ($svc->can('mojo_session')) |
130
|
0 |
4 |
if ($svc->can('mojo_stash')) |
137
|
1 |
3 |
unless $svc->allow_rpc_access($method) |
142
|
0 |
3 |
unless $svc->can($method) |
154
|
3 |
2 |
if ($@) { } |
157
|
2 |
1 |
if (/HASH/ and $$@{'message'}) |
165
|
1 |
0 |
if (/.+/ and $@->can('message') and $@->can('code')) |
187
|
1 |
4 |
if ($cross_domain) { } |