- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestErrAtEOF (0.06 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 Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0)