Package: s3testing

import "../ibm-cos-sdk-go/service/s3/internal/s3testing"

Function Summary collapse

Function Details

func GetTestBytes(size int) []byte

GetTestBytes returns a pseudo-random []byte of length size



21
22
23
24
25
26
27
28
// File 'service/s3/internal/s3testing/s3testing.go', line 21

func GetTestBytes(size int) []byte { if len(randBytes) >= size { return randBytes[:size] } b := append(randBytes, GetTestBytes(size-len(randBytes))...) return b }