go/src/net/dial_test.go

var prohibitionaryDialArgTests

func TestProhibitionaryDialArg(t *testing.T) {}

func TestDialLocal(t *testing.T) {}

func TestDialerDualStackFDLeak(t *testing.T) {}

const slowDst4

const slowDst6

// In some environments, the slow IPs may be explicitly unreachable, and fail
// more quickly than expected. This test hook prevents dialTCP from returning
// before the deadline.
func slowDialTCP(ctx context.Context, network string, laddr, raddr *TCPAddr) (*TCPConn, error) {}

func dialClosedPort(t *testing.T) (dialLatency time.Duration) {}

func TestDialParallel(t *testing.T) {}

func lookupSlowFast(ctx context.Context, fn func(context.Context, string, string) ([]IPAddr, error), network, host string) ([]IPAddr, error) {}

func TestDialerFallbackDelay(t *testing.T) {}

func TestDialParallelSpuriousConnection(t *testing.T) {}

func TestDialerPartialDeadline(t *testing.T) {}

var isEADDRINUSE

func TestDialerLocalAddr(t *testing.T) {}

func TestDialerDualStack(t *testing.T) {}

func TestDialerKeepAlive(t *testing.T) {}

func TestDialCancel(t *testing.T) {}

func TestCancelAfterDial(t *testing.T) {}

func TestDialClosedPortFailFast(t *testing.T) {}

// Issue 18806: it should always be possible to net.Dial a
// net.Listener().Addr().String when the listen address was ":n", even
// if the machine has halfway configured IPv6 such that it can bind on
// "::" not connect back to that same address.
func TestDialListenerAddr(t *testing.T) {}

func TestDialerControl(t *testing.T) {}

func TestDialerControlContext(t *testing.T) {}

// mustHaveExternalNetwork is like testenv.MustHaveExternalNetwork
// except on non-Linux, non-mobile builders it permits the test to
// run in -short mode.
func mustHaveExternalNetwork(t *testing.T) {}

type contextWithNonZeroDeadline

func (contextWithNonZeroDeadline) Deadline() (time.Time, bool) {}

func TestDialWithNonZeroDeadline(t *testing.T) {}