#mocking
Read more stories on Hashnode
Articles with this tag
In my last post, I took a look at how to test simple REST handler functions - functions that be tested by passing mock request and response pointers,...
One of the hardest things to unit test has always been HTTP endpoints. Over the years, I've thought up some creative ways to do so, some of which I'm...
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...
Mocking is one of the most common practices in unit testing. In Golang, we can use Interfaces to make mocking a breeze, so that we can cover our code...