blib/lib/Plack/App/GraphQL.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 30 | 36.6 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
209 | 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 |
209 | 0 | 0 | $req->env->{'HTTP_ACCEPT'} || '' |
215 | 1 | 0 | $req->env->{'HTTP_ACCEPT'} || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
156 | 0 | 1 | 0 | our $JSON_ENCODER ||= Plack::Util::load_class($DEFAULT_JSON_CLASS)->new->utf8->allow_nonref |
286 | 1 | 0 | 0 | eval { do { $self->json_decode($req->raw_body) } } || do { $self->respond_400($req) } |
294 | 0 | 1 | 0 | $req->env->{'plack.graphql.context'} ||= $self->build_context($req) |
310 | 0 | 1 | 0 | $context->req->env->{'plack.graphql.root_value'} ||= $self->root_value |