Testify is a widely used testing framework. S3 is a widely used file store. This go library mocks the Amazon S3 SDK so you don't have to.
Same as any testify mock:
import (
s3 "github.com/peteclark-ft/aws-testify-mocks"
)
func TestS3(t *testing.T){
mockS3 := new(MockS3API)
input := &GetObjectInput{...}
output := &GetObjectOutput{...}
mockS3.On("GetObject", input).Return(output, nil)
// use mockS3!
}
Other AWS SDK APIs might be added in the future depending on requirements.