Categorygithub.com/gofor-little/aws-sdk-mock
repositorypackage
0.2.1
Repository: https://github.com/gofor-little/aws-sdk-mock.git
Documentation: pkg.go.dev

# README

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

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