go/src/net/http/httptest/server_test.go

type newServerFunc

var newServers

func TestServer(t *testing.T) {}

func testServer(t *testing.T, newServer newServerFunc) {}

// Issue 12781
func testGetAfterClose(t *testing.T, newServer newServerFunc) {}

func testServerCloseBlocking(t *testing.T, newServer newServerFunc) {}

// Issue 14290
func testServerCloseClientConnections(t *testing.T, newServer newServerFunc) {}

// Tests that the Server.Client method works and returns an http.Client that can hit
// NewTLSServer without cert warnings.
func testServerClient(t *testing.T, newTLSServer newServerFunc) {}

// Tests that the Server.Client.Transport interface is implemented
// by a *http.Transport.
func testServerClientTransportType(t *testing.T, newServer newServerFunc) {}

// Tests that the TLS Server.Client.Transport interface is implemented
// by a *http.Transport.
func testTLSServerClientTransportType(t *testing.T, newTLSServer newServerFunc) {}

type onlyCloseListener

func (onlyCloseListener) Close() error {}

// Issue 19729: panic in Server.Close for values created directly
// without a constructor (so the unexported client field is nil).
func TestServerZeroValueClose(t *testing.T) {}

// Issue 51799: test hijacking a connection and then closing it
// concurrently with closing the server.
func TestCloseHijackedConnection(t *testing.T) {}

func TestTLSServerWithHTTP2(t *testing.T) {}