func TestNonpollableDeadline(t *testing.T) { … } var noDeadline … var readTimeoutTests … // There is a very similar copy of this in net/timeout_test.go. func TestReadTimeout(t *testing.T) { … } // There is a very similar copy of this in net/timeout_test.go. func TestReadTimeoutMustNotReturn(t *testing.T) { … } var writeTimeoutTests … // There is a very similar copy of this in net/timeout_test.go. func TestWriteTimeout(t *testing.T) { … } // There is a very similar copy of this in net/timeout_test.go. func TestWriteTimeoutMustNotReturn(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 net/timeout_test.go. func TestReadTimeoutFluctuation(t *testing.T) { … } // There is a very similar copy of this in net/timeout_test.go. func TestWriteTimeoutFluctuation(t *testing.T) { … } // There is a very similar copy of this in net/timeout_test.go. func TestVariousDeadlines(t *testing.T) { … } // There is a very similar copy of this in net/timeout_test.go. func TestVariousDeadlines1Proc(t *testing.T) { … } // There is a very similar copy of this in net/timeout_test.go. func TestVariousDeadlines4Proc(t *testing.T) { … } type neverEnding … func (b neverEnding) Read(p []byte) (int, error) { … } func testVariousDeadlines(t *testing.T) { … } // There is a very similar copy of this in net/timeout_test.go. func TestReadWriteDeadlineRace(t *testing.T) { … } // TestRacyRead tests that it is safe to mutate the input Read buffer // immediately after cancellation has occurred. func TestRacyRead(t *testing.T) { … } // TestRacyWrite tests that it is safe to mutate the input Write buffer // immediately after cancellation has occurred. func TestRacyWrite(t *testing.T) { … } // Closing a TTY while reading from it should not hang. Issue 23943. func TestTTYClose(t *testing.T) { … }