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

Function TestHTTPErrorResponseWithMaxContentLength

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

Source from the content-addressed store, hash-verified

32}
33
34func TestHTTPErrorResponseWithMaxContentLength(t *testing.T) {
35 body := make([]rune, maxRequestContentLength+1)
36 testHTTPErrorResponse(t,
37 http.MethodPost, contentType, string(body), http.StatusRequestEntityTooLarge)
38}
39
40func TestHTTPErrorResponseWithEmptyContentType(t *testing.T) {
41 testHTTPErrorResponse(t, http.MethodPost, "", "", http.StatusUnsupportedMediaType)

Callers

nothing calls this directly

Calls 1

testHTTPErrorResponseFunction · 0.85

Tested by

no test coverage detected