- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestSectionReader_Max (0.17 sec)
-
src/io/io_test.go
r := strings.NewReader(tt.data) sr := NewSectionReader(r, 0, int64(len(tt.data))) if got := sr.Size(); got != tt.want { t.Errorf("Size = %v; want %v", got, tt.want) } } } func TestSectionReader_Max(t *testing.T) { r := strings.NewReader("abcdef") const maxint64 = 1<<63 - 1 sr := NewSectionReader(r, 3, maxint64) n, err := sr.Read(make([]byte, 3)) if n != 3 || err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 22:04:41 UTC 2023 - 18.9K bytes - Viewed (0)