- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestNonEOFWithEmptyRead (0.09 sec)
-
src/bufio/scan_test.go
t.Fatal("wrong error:", s.Err()) } } // Test for issue 5268. type alwaysError struct{} func (alwaysError) Read(p []byte) (int, error) { return 0, io.ErrUnexpectedEOF } func TestNonEOFWithEmptyRead(t *testing.T) { scanner := NewScanner(alwaysError{}) for scanner.Scan() { t.Fatal("read should fail") } err := scanner.Err() if err != io.ErrUnexpectedEOF {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0)