In-memory SQS For Unit Testing

Photo by Levi Jones on Unsplash

If you need an in-memory, functional SQS client during unit tests you can now use github.com/elliotchance/mocksqs.

Getting Started

The simplest way to create a new SQS service is with mocksqs.New(). However, if you need queues prepopulated you can use mocksqs.NewWithQueues():

--

--

--

I’m a data nerd and TDD enthusiast originally from Sydney. Currently working for Uber in New York. My thoughts here are my own. 🤓 elliotchance@gmail.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Elliot Chance

Elliot Chance

I’m a data nerd and TDD enthusiast originally from Sydney. Currently working for Uber in New York. My thoughts here are my own. 🤓 elliotchance@gmail.com

More from Medium

Use pprof to view go program stack traces

【Go】Implement SHA256, encryption and hashing in Go

How to Check nil Interface in Golang?

Nil Pointer Method Receivers In Go