counterfeiter



When writing unit-tests for an object, it is often useful to have fake implementations of the object's collaborators. In go, such fake implementations cannot be generated automatically at runtime, and writing them by hand can be quite arduous.



counterfeiter allows you to simply generate test doubles for a given interface.



https://github.com/maxbrunsfeld/counterfeiter