Unit Testing Simple REST Handler Functions in Golang
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 not proud of.
When we add open-source RESTful libraries into the equation, things become even harder...
colinj.hashnode.dev7 min read