- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestPipeReadClose2 (0.13 sec)
-
src/io/pipe_test.go
if n != 0 { t.Errorf("read on closed pipe returned %d", n) } if err = r.Close(); err != nil { t.Errorf("r.Close: %v", err) } } } // Test close on Read side during Read. func TestPipeReadClose2(t *testing.T) { c := make(chan int, 1) r, _ := Pipe() go delayClose(t, r, c, pipeTest{}) n, err := r.Read(make([]byte, 64)) <-c if n != 0 || err != ErrClosedPipe {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9K bytes - Viewed (0)