Condition Coverage

blib/lib/Plack/App/GraphQL.pm
Criterion Covered Total %
condition 10 27 37.0


and 3 conditions

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'}

or 2 conditions

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'} || ''

or 3 conditions

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
285 1 0 0 eval { do { $self->json_decode($req->raw_body) } } || do { $self->respond_400($req) }
293 0 1 0 $req->env->{'plack.graphql.context'} ||= $self->build_context($req)