- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for ErrOrEOF (0.08 sec)
-
src/bufio/export_test.go
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Nov 02 17:17:44 UTC 2017 - 597 bytes - Viewed (0) -
src/bufio/scan_test.go
// This splitter will fail on last entry, after s.err==EOF. split := func(data []byte, atEOF bool) (advance int, token []byte, err error) { advance, token, err = ScanWords(data, atEOF) if len(token) > 1 { if s.ErrOrEOF() != io.EOF { t.Fatal("not testing EOF") } err = testError } return } s.Split(split) for s.Scan() { } if s.Err() != testError { t.Fatal("wrong error:", s.Err()) }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0)