go/src/net/http/fcgi/fcgi_test.go

var sizeTests

func TestSize(t *testing.T) {}

var streamTests

type nilCloser

func (c *nilCloser) Close() error {}

func TestStreams(t *testing.T) {}

type writeOnlyConn

func (c *writeOnlyConn) Write(p []byte) (int, error) {}

func (c *writeOnlyConn) Read(p []byte) (int, error) {}

func (c *writeOnlyConn) Close() error {}

func TestGetValues(t *testing.T) {}

func nameValuePair11(nameData, valueData string) []byte {}

func makeRecord(
	recordType recType,
	requestId uint16,
	contentData []byte,
) []byte {}

var streamBeginTypeStdin

var cleanUpTests

type nopWriteCloser

func (nopWriteCloser) Write(buf []byte) (int, error) {}

func (nopWriteCloser) Close() error {}

// Test that child.serve closes the bodies of aborted requests and closes the
// bodies of all requests before returning. Causes deadlock if either condition
// isn't met. See issue 6934.
func TestChildServeCleansUp(t *testing.T) {}

type rwNopCloser

func (rwNopCloser) Close() error {}

// Verifies it doesn't crash. 	Issue 11824.
func TestMalformedParams(t *testing.T) {}

var streamFullRequestStdin

var envVarTests

// Test that environment variables set for a request can be
// read by a handler. Ensures that variables not set will not
// be exposed to a handler.
func TestChildServeReadsEnvVars(t *testing.T) {}

func TestResponseWriterSniffsContentType(t *testing.T) {}

type signalingNopWriteCloser

func (*signalingNopWriteCloser) Write(buf []byte) (int, error) {}

func (rc *signalingNopWriteCloser) Close() error {}

// Test whether server properly closes connection when processing slow
// requests
func TestSlowRequest(t *testing.T) {}