- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestHugeBuffer (0.11 sec)
-
src/bufio/scan_test.go
t.Fatal("after scan:", s.Err()) } if c != 0 { t.Fatalf("stopped with %d left to process", c) } } // Make sure we can read a huge token if a big enough buffer is provided. func TestHugeBuffer(t *testing.T) { text := strings.Repeat("x", 2*MaxScanTokenSize) s := NewScanner(strings.NewReader(text + "\n")) s.Buffer(make([]byte, 100), 3*MaxScanTokenSize) for s.Scan() { token := s.Text()
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Sep 22 16:22:42 UTC 2023 - 14.3K bytes - Viewed (0)