- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for newClientServerTest (0.7 sec)
-
src/net/http/clientserver_test.go
return func(ts *httptest.Server) { ts.Config.ErrorLog = lg } } // newClientServerTest creates and starts an httptest.Server. // // The mode parameter selects the implementation to test: // HTTP/1, HTTP/2, etc. Tests using newClientServerTest should use // the 'run' function, which will start a subtests for each tested mode. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 46.6K bytes - Viewed (0) -
src/net/http/request_test.go
run(t, testMaxInt64ForMultipartFormMaxMemoryOverflow) } func testMaxInt64ForMultipartFormMaxMemoryOverflow(t *testing.T, mode testMode) { payloadSize := 1 << 10 cst := newClientServerTest(t, mode, HandlerFunc(func(rw ResponseWriter, req *Request) { // The combination of: // MaxInt64 + payloadSize + (internal spare of 10MiB) // triggers the overflow. See issue https://golang.org/issue/40430/
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 18:42:34 UTC 2024 - 44K bytes - Viewed (0)