go/src/net/timeout_test.go

func init() {}

var dialTimeoutTests

func TestDialTimeout(t *testing.T) {}

func TestDialTimeoutMaxDuration(t *testing.T) {}

func TestAcceptTimeout(t *testing.T) {}

func TestAcceptTimeoutMustReturn(t *testing.T) {}

func TestAcceptTimeoutMustNotReturn(t *testing.T) {}

var readTimeoutTests

// There is a very similar copy of this in os/timeout_test.go.
func TestReadTimeout(t *testing.T) {}

// There is a very similar copy of this in os/timeout_test.go.
func TestReadTimeoutMustNotReturn(t *testing.T) {}

var readFromTimeoutTests

func TestReadFromTimeout(t *testing.T) {}

var writeTimeoutTests

// There is a very similar copy of this in os/timeout_test.go.
func TestWriteTimeout(t *testing.T) {}

// There is a very similar copy of this in os/timeout_test.go.
func TestWriteTimeoutMustNotReturn(t *testing.T) {}

func TestWriteToTimeout(t *testing.T) {}

const minDynamicTimeout

const maxDynamicTimeout

// timeoutUpperBound returns the maximum time that we expect a timeout of
// duration d to take to return the caller.
func timeoutUpperBound(d time.Duration) time.Duration {}

// nextTimeout returns the next timeout to try after an operation took the given
// actual duration with a timeout shorter than that duration.
func nextTimeout(actual time.Duration) (next time.Duration, ok bool) {}

// There is a very similar copy of this in os/timeout_test.go.
func TestReadTimeoutFluctuation(t *testing.T) {}

// There is a very similar copy of this in os/timeout_test.go.
func TestReadFromTimeoutFluctuation(t *testing.T) {}

func TestWriteTimeoutFluctuation(t *testing.T) {}

// There is a very similar copy of this in os/timeout_test.go.
func TestVariousDeadlines(t *testing.T) {}

// There is a very similar copy of this in os/timeout_test.go.
func TestVariousDeadlines1Proc(t *testing.T) {}

// There is a very similar copy of this in os/timeout_test.go.
func TestVariousDeadlines4Proc(t *testing.T) {}

func testVariousDeadlines(t *testing.T) {}

// TestReadWriteProlongedTimeout tests concurrent deadline
// modification. Known to cause data races in the past.
func TestReadWriteProlongedTimeout(t *testing.T) {}

// There is a very similar copy of this in os/timeout_test.go.
func TestReadWriteDeadlineRace(t *testing.T) {}

// Issue 35367.
func TestConcurrentSetDeadline(t *testing.T) {}

// isDeadlineExceeded reports whether err is or wraps os.ErrDeadlineExceeded.
// We also check that the error implements net.Error, and that the
// Timeout method returns true.
func isDeadlineExceeded(err error) bool {}