Mocking Imported Libraries in Golang Unit Tests
In my last post, I covered mocking using interfaces. In this one, I'll take that a step further and show how we can ensure that we're able to mock every imported lib in our tested functions by using private variables. tl;dr: you can check out a repo ...
Dec 12, 20235 min read838
