Make the Go driver interface based so that it can be easily mocked for unitTests.
Provide interfaces for driver classes that can be used to mock the database for unit tests. Along the lines of what AWS does for its services:
https://aws.amazon.com/blogs/developer/mocking-out-then-aws-sdk-for-go-for-unit-testing/
2
votes
Dan Richner
shared this idea