line |
true |
false |
branch |
22
|
1 |
0 |
&is_Promise($_) ? :
|
66
|
3 |
2 |
$subscribe_resolver ? :
|
83
|
3 |
1 |
if (($c->req->headers->header('Accept') // '') =~ m[^text/html\b]u and not defined $c->req->query_params->param('raw'))
|
90
|
0 |
1 |
$https ? :
|
|
1 |
2 |
$use_subscription ? :
|
115
|
1 |
11 |
if $@
|
122
|
1 |
6 |
if $@
|
131
|
1 |
4 |
unless $decode_ok
|
133
|
3 |
1 |
unless &is_Promise($data)
|
146
|
0 |
0 |
$context->{'connected'} ? :
|
|
0 |
7 |
unless $decode_ok
|
149
|
3 |
4 |
if ($msg_type eq {GQL_COMPLETE => 'complete', GQL_CONNECTION_ACK => 'connection_ack', GQL_CONNECTION_ERROR => 'connection_error', GQL_CONNECTION_INIT => 'connection_init', GQL_CONNECTION_KEEP_ALIVE => 'ka', GQL_CONNECTION_TERMINATE => 'connection_terminate', GQL_DATA => 'data', GQL_ERROR => 'error', GQL_START => 'start', GQL_STOP => 'stop'}->{'GQL_CONNECTION_INIT'}) { }
|
|
3 |
1 |
elsif ($msg_type eq {GQL_COMPLETE => 'complete', GQL_CONNECTION_ACK => 'connection_ack', GQL_CONNECTION_ERROR => 'connection_error', GQL_CONNECTION_INIT => 'connection_init', GQL_CONNECTION_KEEP_ALIVE => 'ka', GQL_CONNECTION_TERMINATE => 'connection_terminate', GQL_DATA => 'data', GQL_ERROR => 'error', GQL_START => 'start', GQL_STOP => 'stop'}->{'GQL_START'}) { }
|
|
1 |
0 |
elsif ($msg_type eq {GQL_COMPLETE => 'complete', GQL_CONNECTION_ACK => 'connection_ack', GQL_CONNECTION_ERROR => 'connection_error', GQL_CONNECTION_INIT => 'connection_init', GQL_CONNECTION_KEEP_ALIVE => 'ka', GQL_CONNECTION_TERMINATE => 'connection_terminate', GQL_DATA => 'data', GQL_ERROR => 'error', GQL_START => 'start', GQL_STOP => 'stop'}->{'GQL_STOP'}) { }
|
154
|
1 |
2 |
if ($context->{'keepalive'})
|
157
|
0 |
2 |
unless $c->tx and $context->{'keepalive'}
|
173
|
0 |
3 |
unless &is_Promise($data)
|
177
|
0 |
3 |
unless (&is_AsyncIterator($result))
|
198
|
1 |
4 |
if not $promise
|
215
|
1 |
0 |
if $context->{'async_iterator'}
|
228
|
0 |
3 |
if $sec_websocket_protocol
|
233
|
2 |
1 |
if $context{'async_iterator'}
|
241
|
3 |
3 |
if ($conf->{'convert'})
|
248
|
0 |
6 |
unless $conf->{'schema'}
|
254
|
1 |
5 |
unless grep(($_ eq 'Mojolicious::Plugin::GraphQL'), @{$app->renderer->classes;})
|
257
|
2 |
4 |
if $conf->{'graphiql'}
|
259
|
2 |
4 |
if ($conf->{'schema'}->subscription)
|