- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestErrAtEOF (0.13 sec)
-
src/bufio/scan_test.go
} err := s.Err() if err != testError { t.Fatalf("expected %q got %v", testError, err) } } // Test that an EOF is overridden by a user-generated scan error. func TestErrAtEOF(t *testing.T) { s := NewScanner(strings.NewReader("1 2 33")) // This splitter will fail on last entry, after s.err==EOF. split := func(data []byte, atEOF bool) (advance int, token []byte, err error) {
Registered: Tue Oct 29 11:13:09 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0)