aws-mockery

module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 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.

License

Mozilla Public License Version 2.0 (About, FAQ)

(Exported from a private monorepo with transplant.)

Directories

Path Synopsis
cmd
aws-mockery command
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