Branch Coverage

blib/lib/Mojolicious/Plugin/JSONRPC2.pm
Criterion Covered Total %
branch 14 14 100.0


line true false branch
37 1 3 $method eq 'GET' ? :
4 5 unless ref $server and $server->isa('JSON::RPC2::Server')
45 5 10 unless (($c->req->headers->content_type // '') =~ /$HEADERS{'Content-Type'}/msu)
48 2 8 unless (($c->req->headers->accept // '') =~ /$HEADERS{'Accept'}/msu)
59 2 6 if ($c->req->method eq 'GET') { }
61 1 1 if (exists $request->{'params'})
70 6 1 $json_response ? :