- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestReaderAt (0.07 sec)
-
src/bytes/reader_test.go
if _, err := r.Seek(1<<31+5, io.SeekStart); err != nil { t.Fatal(err) } if n, err := r.Read(make([]byte, 10)); n != 0 || err != io.EOF { t.Errorf("Read = %d, %v; want 0, EOF", n, err) } } func TestReaderAt(t *testing.T) { r := NewReader([]byte("0123456789")) tests := []struct { off int64 n int want string wanterr any }{ {0, 10, "0123456789", nil}, {1, 10, "123456789", io.EOF},
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 8K bytes - Viewed (0)