go/src/net/http/cgi/host_test.go

// TestMain executes the test binary as the cgi server if
// SERVER_SOFTWARE is set, and runs the tests otherwise.
func TestMain(m *testing.M) {}

func newRequest(httpreq string) *http.Request {}

func runCgiTest(t *testing.T, h *Handler,
	httpreq string,
	expectedMap map[string]string, checks ...func(reqInfo map[string]string)) *httptest.ResponseRecorder {}

func runResponseChecks(t *testing.T, rw *httptest.ResponseRecorder,
	expectedMap map[string]string, checks ...func(reqInfo map[string]string)) {}

func TestCGIBasicGet(t *testing.T) {}

func TestCGIEnvIPv6(t *testing.T) {}

func TestCGIBasicGetAbsPath(t *testing.T) {}

func TestPathInfo(t *testing.T) {}

func TestPathInfoDirRoot(t *testing.T) {}

func TestDupHeaders(t *testing.T) {}

// Issue 16405: CGI+http.Transport differing uses of HTTP_PROXY.
// Verify we don't set the HTTP_PROXY environment variable.
// Hope nobody was depending on it. It's not a known header, though.
func TestDropProxyHeader(t *testing.T) {}

func TestPathInfoNoRoot(t *testing.T) {}

func TestCGIBasicPost(t *testing.T) {}

func chunk(s string) string {}

// The CGI spec doesn't allow chunked requests.
func TestCGIPostChunked(t *testing.T) {}

func TestRedirect(t *testing.T) {}

func TestInternalRedirect(t *testing.T) {}

// TestCopyError tests that we kill the process if there's an error copying
// its output. (for example, from the client having gone away)
//
// If we fail to do so, the test will time out (and dump its goroutines) with a
// call to [Handler.ServeHTTP] blocked on a deferred call to [exec.Cmd.Wait].
func TestCopyError(t *testing.T) {}

// handlerRunning reports whether any goroutine is currently running
// [Handler.ServeHTTP].
func handlerRunning() bool {}

func TestDir(t *testing.T) {}

func TestEnvOverride(t *testing.T) {}

func TestHandlerStderr(t *testing.T) {}

func TestRemoveLeadingDuplicates(t *testing.T) {}