blib/lib/Plack/App/GraphQL.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 12 | 32 | 37.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
217 | 1 | 0 | 0 | $self->graphiql and ($req->env->{'HTTP_ACCEPT'} || '') =~ m[^text/html\b] |
1 | 0 | 0 | $self->graphiql and ($req->env->{'HTTP_ACCEPT'} || '') =~ m[^text/html\b] and not defined $req->body_parameters->{'raw'} |
line | l | !l | condition |
---|---|---|---|
102 | 0 | 1 | our $DEFAULT_ENDPOINT ||= '/' |
111 | 0 | 1 | our $DEFAULT_CONTEXT_CLASS ||= 'Plack::App::GraphQL::Context' |
121 | 0 | 1 | our $DEFAULT_UI_TEMPLATE_CLASS ||= 'Plack::App::GraphQL::UITemplate' |
142 | 0 | 1 | our $DEFAULT_GRAPHIQL ||= 0 |
150 | 0 | 1 | our $DEFAULT_GRAPHIQL_VERSION ||= 'latest' |
217 | 0 | 0 | $req->env->{'HTTP_ACCEPT'} || '' |
223 | 1 | 0 | $req->env->{'HTTP_ACCEPT'} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
164 | 0 | 1 | 0 | our $JSON_ENCODER ||= Plack::Util::load_class($DEFAULT_JSON_CLASS)->new->utf8->allow_nonref |
294 | 1 | 0 | 0 | eval { do { $self->json_decode($req->raw_body) } } || do { $self->respond_400($req) } |
302 | 0 | 1 | 0 | $req->env->{'plack.graphql.context'} ||= $self->build_context($req) |
318 | 0 | 1 | 0 | $context->req->env->{'plack.graphql.root_value'} ||= $self->root_value |