- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for newClientServerTest (0.19 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/responsecontroller_test.go
"time" ) func TestResponseControllerFlush(t *testing.T) { run(t, testResponseControllerFlush) } func testResponseControllerFlush(t *testing.T, mode testMode) { continuec := make(chan struct{}) cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) { ctl := NewResponseController(w) w.Write([]byte("one")) if err := ctl.Flush(); err != nil { t.Errorf("ctl.Flush() = %v, want nil", err) return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 06 19:20:31 UTC 2024 - 10.2K 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)