Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Kata (0.15 sec)

  1. src/archive/zip/reader_test.go

    	}
    }
    
    func messWith(fileName string, corrupter func(b []byte)) (r io.ReaderAt, size int64) {
    	data, err := os.ReadFile(filepath.Join("testdata", fileName))
    	if err != nil {
    		panic("Error reading " + fileName + ": " + err.Error())
    	}
    	corrupter(data)
    	return bytes.NewReader(data), int64(len(data))
    }
    
    func returnCorruptCRC32Zip() (r io.ReaderAt, size int64) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    				b.Run(fmt.Sprintf("%d", j), func(b *testing.B) {
    					b.ReportAllocs()
    					b.SetBytes(int64(j))
    					data := sd.data[:j]
    					for i := 0; i < b.N; i++ {
    						Fields(data)
    					}
    				})
    			}
    		})
    	}
    }
    
    func BenchmarkFieldsFunc(b *testing.B) {
    	for _, sd := range bytesdata {
    		b.Run(sd.name, func(b *testing.B) {
    			for j := 1 << 4; j <= 1<<20; j <<= 4 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
Back to top