/aws-testify-mocks

Stretchr Mocks for the AWS S3 SDK

Primary LanguageGoMIT LicenseMIT

AWS SDK Testify Mocks

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.

Usage

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!
}

Roadmap

Other AWS SDK APIs might be added in the future depending on requirements.