- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for texts (0.02 sec)
-
src/archive/tar/reader_test.go
) vectors := []struct { maker fileMaker tests []testFnc }{{ maker: makeReg{"", 0}, tests: []testFnc{ testRemaining{0, 0}, testRead{0, "", io.EOF}, testRead{1, "", io.EOF}, testWriteTo{nil, 0, nil}, testRemaining{0, 0}, }, }, { maker: makeReg{"", 1}, tests: []testFnc{ testRemaining{1, 1}, testRead{5, "", io.ErrUnexpectedEOF},
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Oct 03 15:48:09 UTC 2024 - 46.9K bytes - Viewed (0) -
src/bytes/reader_test.go
r := NewReader([]byte("0123456789")) tests := []struct { off int64 n int want string wanterr any }{ {0, 10, "0123456789", nil}, {1, 10, "123456789", io.EOF}, {1, 9, "123456789", nil}, {11, 10, "", io.EOF}, {0, 0, "", nil}, {-1, 0, "", "bytes.Reader.ReadAt: negative offset"}, } for i, tt := range tests { b := make([]byte, tt.n) rn, err := r.ReadAt(b, tt.off)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 8K bytes - Viewed (0) -
src/archive/zip/reader_test.go
ContentErr error Content []byte File string Size uint64 } var tests = []ZipTest{ { Name: "test.zip", Comment: "This is a zipfile comment.", File: []ZipTestFile{ { Name: "test.txt", Content: []byte("This is a test text file.\n"), Modified: time.Date(2010, 9, 5, 12, 12, 1, 0, timeZone(+10*time.Hour)), Mode: 0644, }, {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 55.6K bytes - Viewed (0)