Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/duffn/go-aws-mock-example
https://github.com/duffn/go-aws-mock-example
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/duffn/go-aws-mock-example
- Owner: duffn
- Created: 2019-05-31T16:37:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-05-31T16:56:19.000Z (over 5 years ago)
- Last Synced: 2024-10-14T15:47:42.890Z (3 months ago)
- Language: Go
- Size: 5.71 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Mock AWS SDK Example
A simple example showing how to mock the Go AWS SDK using the provided interfaces.
By using an interface, you can easily mock responses from the SDK in your unit tests.This example uses the CloudWatch API to get the estimated size of an S3 bucket.
## Running
```
go run main.go s3 --bucket my-bucket
```## Tests
```
go test
```