Lines Matching refs:i
28 for i := 0; i < nFiles; i++ {
30 Name: fmt.Sprintf("%d.dat", i),
34 t.Fatalf("creating file %d: %v", i, err)
48 for i := 0; i < nFiles; i++ {
49 want := fmt.Sprintf("%d.dat", i)
50 if zr.File[i].Name != want {
51 t.Fatalf("File(%d) = %q, want %q", i, zr.File[i].Name, want)
169 skipParts := sort.Search(len(r.buf), func(i int) bool {
170 part := &r.buf[i]
178 for i := skipBytes; i < part.n; i++ {
208 for i := 0; i < len(all); i++ {
209 for j := 0; j < len(all)-i; j++ {
211 n, err := b.ReadAt(buf, int64(i))
213 t.Errorf("ReadAt(%d, %d) = %d, %v; want %d, nil", i, j, n, err, len(buf))
215 if !bytes.Equal(buf, all[i:i+j]) {
216 t.Errorf("ReadAt(%d, %d) = %q; want %q", i, j, buf, all[i:i+j])
268 for i := range chunk {
269 chunk[i] = '.'
271 for i := 0; i < chunks; i++ {
303 for i := 0; i < chunks; i++ {
446 for i := 0; i < b.N; i++ {