Colin J Lacycolinj.hashnode.devยทDec 12, 2023Mocking Imported Libraries in Golang Unit TestsIn 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 ...459 readsunit testingAdd a thoughtful commentNo comments yetBe the first to start the conversation.