Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using goImport as source for moqs #213

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

K4L1Ma
Copy link

@K4L1Ma K4L1Ma commented Mar 18, 2024

This pull request enables the utilization of goImport as a source for generating mocks. It enhances the flexibility and usability of the package by allowing developers to seamlessly create mocks from external dependencies, specifically those imported using goImport.

relates to #79

this

moq -out snsapi_mocks_test.go -pkg mypkg $(go list -f '{{.Dir}}' github.com/aws/aws-sdk-go-v2/service/sns/snsiface) SNSAPI

can now be generated as

moq -out snsapi_mocks_test.go -pkg mypkg github.com/aws/aws-sdk-go-v2/service/sns/snsiface SNSAPI

@K4L1Ma K4L1Ma force-pushed the allow-srcDir-goImport branch 7 times, most recently from 2da0f05 to 9c81ec4 Compare March 19, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant