- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestPartialReadEOF (0.07 sec)
-
src/bufio/bufio_test.go
// in the same call that consumes the last of the data. // https://godoc.org/io#Reader return read, io.EOF } return read, nil } func TestPartialReadEOF(t *testing.T) { src := make([]byte, 10) eofR := &eofReader{buf: src} r := NewReader(eofR) // Start by reading 5 of the 10 available bytes. dest := make([]byte, 5) read, err := r.Read(dest)
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Fri Feb 07 01:08:54 UTC 2025 - 51.6K bytes - Viewed (0)