- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestRequestWriteError (0.19 sec)
-
src/net/http/requestwrite_test.go
} return u } type writerFunc func([]byte) (int, error) func (f writerFunc) Write(p []byte) (int, error) { return f(p) } // TestRequestWriteError tests the Write err != nil checks in (*Request).write. func TestRequestWriteError(t *testing.T) { failAfter, writeCount := 0, 0 errFail := errors.New("fake write failure") // w is the buffered io.Writer to write the request to. It
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 07 01:07:32 UTC 2022 - 23.3K bytes - Viewed (0)