Skip to content

peteclark-ft/aws-testify-mocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

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.