Skip to content
This repository has been archived by the owner on Aug 21, 2021. It is now read-only.

gofor-little/aws-sdk-mock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A package for mocking interactions with AWS services

GitHub tag (latest SemVer pre-release) GitHub go.mod Go version License: MIT Go Report Card PkgGoDev

Deprecated

At this stage there are no plans to migrate to v2 of the AWS Go SDK or continue to maintain this package.

Introduction

  • Mock interactions with AWS services
  • Make unit testing quicker and easier

Example

package mock_test

import (
    "github.com/gofor-little/aws-sdk-mock"
)

func TestMockExample(t *testing.T) {
    client := mock.S3client{}

    output, err := client.GetObjectWithContext(context.Background(), &s3.GetObjectInput{})
    if err != nil {
        t.Fatal(err)
    }

    // Check output is correct...
}