You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While we strive to provide comprehensive examples and guidance, it's impossible for us to create examples for every possible operation due to the vast scope of the SDK. Generally, Go developers are expected to be familiar with mocking techniques and dependency inversion, which are integral parts of testing in Go.
However, we do provide the github.com/aws/aws-sdk-go/service/sqs/sqsiface package, which offers an interface for the SQS API client that can be easily mocked for testing purposes.
To help you get started, here's a basic example that demonstrates how to mock the SendMessage function using this interface:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the feature
Mock test for testing SendMessage on AWS SQS
Use Case
No mock test example for SendMessage, would be great to have one for sending messages to queues.
Proposed Solution
No response
Other Information
No response
Acknowledgements
SDK version used
1
Environment details (Version of Go (
go version
)? OS name and version, etc.)Go version
The text was updated successfully, but these errors were encountered: