- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestScannerFailure (0.18 sec)
-
internal/s3select/jstream/scanner_test.go
func (r *mockReader) Read(p []byte) (n int, err error) { if r.pos >= r.failAfter { return 0, fmt.Errorf("intentionally unexpected reader error") } r.pos++ p[0] = r.mockData return 1, nil } func TestScannerFailure(t *testing.T) { var ( i int failAfter = 900 mockData = byte(32) ) r := newMockReader(failAfter, mockData) scanner := newScanner(r) for i < 1000 { c := scanner.next()
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 23 19:35:41 UTC 2024 - 3.2K bytes - Viewed (0)