MCPcopy Create free account
hub / github.com/CPChain/chain / TestHTTPErrorResponseWithValidRequest

Function TestHTTPErrorResponseWithValidRequest

api/rpc/http_test.go:44–46  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestHTTPErrorResponseWithValidRequest(t *testing.T) {
45 testHTTPErrorResponse(t, http.MethodPost, contentType, "", 0)
46}
47
48func testHTTPErrorResponse(t *testing.T, method, contentType, body string, expected int) {
49 request := httptest.NewRequest(method, "http://url.com", strings.NewReader(body))

Callers

nothing calls this directly

Calls 1

testHTTPErrorResponseFunction · 0.85

Tested by

no test coverage detected