Condition Coverage

blib/lib/GraphQL/Client/http.pm
Criterion Covered Total %
condition 18 30 60.0


and 3 conditions

line !l l&&!r l&&r condition
29 0 1 12 $request and ref $request eq 'HASH'

or 2 conditions

line l !l condition
89 5 0 $resp->{'content'} // 'No content'
90 5 0 $resp->{'reason'} // ''
149 1 12 $self->{'method'} // 'POST'

or 3 conditions

line l !l&&r !l&&!r condition
26 1 9 3 delete $options->{'url'} || $self->url
27 2 11 0 delete $options->{'method'} || $self->method
35 2 0 8 $method eq 'GET' or $method eq 'HEAD'
129 5 0 0 $self->{'ua'} //= do { require HTTP::Tiny; 'HTTP::Tiny'->new('agent', $ENV{'GRAPHQL_CLIENT_HTTP_USER_AGENT'} // "perl-graphql-client/$VERSION") }
132 0 0 0 $ENV{'GRAPHQL_CLIENT_HTTP_USER_AGENT'} // "perl-graphql-client/$VERSION"
139 10 5 0 $self->{'any_ua'} //= 'HTTP::AnyUA'->new('ua', $self->ua)
154 14 4 0 $self->{'json'} //= do { require JSON::MaybeXS; 'JSON::MaybeXS'->new('utf8', 1) }