go/src/net/http/transport_dial_test.go

func TestTransportPoolConnReusePriorConnection(t *testing.T) {}

func TestTransportPoolConnCannotReuseConnectionInUse(t *testing.T) {}

func TestTransportPoolConnConnectionBecomesAvailableDuringDial(t *testing.T) {}

type transportDialTester

type transportDialTesterRoundTrip

type transportDialTesterConn

func newTransportDialTester(t *testing.T, mode testMode) *transportDialTester {}

// roundTrip starts a RoundTrip.
// It returns immediately, without waiting for the RoundTrip call to complete.
func (dt *transportDialTester) roundTrip() *transportDialTesterRoundTrip {}

// wantDone indicates that a RoundTrip should have returned.
func (rt *transportDialTesterRoundTrip) wantDone(c *transportDialTesterConn) {}

// finish completes a RoundTrip by sending the request body, consuming the response body,
// and closing the response body.
func (rt *transportDialTesterRoundTrip) finish() {}

// wantDial waits for the Transport to start a Dial.
func (dt *transportDialTester) wantDial() *transportDialTesterConn {}

// finish completes a Dial.
func (c *transportDialTesterConn) finish(err error) {}