aws-mockery

module
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2020 License: MPL-2.0

README

aws-mockery GoDoc Go Report Card Build Status

aws-mockery is a program which uses the mockery API to generate implementations of selected aws-sdk-go service interfaces.

Currently only aws-sdk-go version 1.x is supported.

Use Case

Asserting that dependent code interacts with the service APIs as expected, but without the cost (and feedback fidelity) of making real requests to the service.

Usage

To install: go get -v github.com/codeactual/aws-mockery/cmd/aws-mockery

Examples

Display help:

aws-mockery --help

Output mock implementations for KMS, Route53, and SNS:

aws-mockery --out-dir /path/to/mocks --sdk-dir /path/to/github.com/aws/aws-sdk-go --service=kms,route53,sns
  • --service expects a comma-separated list of identifiers, e.g. ec2, which must be a directory name from the SDK's service directory.

Development

License

Mozilla Public License Version 2.0 (About, FAQ)

Contributing

  • Please feel free to submit issues, PRs, questions, and feedback.
  • Although this repository consists of snapshots extracted from a private monorepo using transplant, PRs are welcome. Standard GitHub workflows are still used.

Directories

Path Synopsis
cmd
aws-mockery
Command aws-mockery uses the mockery API to generate implementations of selected aws-sdk-go service interfaces.
Command aws-mockery uses the mockery API to generate implementations of selected aws-sdk-go service interfaces.
internal
cage/mockery
Package mockery provides a limited-feature runner that uses the vendored instance instead of executing a process.
Package mockery provides a limited-feature runner that uses the vendored instance instead of executing a process.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL