▲ 13 ▼ Video: Unit testing HTTP servers
Let's cover the basics of unit testing in Go and then show how you can test http.HandlerFunc and http.Handler.
Register to comment or vote on this story
Let's cover the basics of unit testing in Go and then show how you can test http.HandlerFunc and http.Handler.
Really love these videos, they cover a broad range of practical stuff which just doesn't get covered elsewhere. Everyone should be integration testing their handlers, but I suspect most don't, even though the go http packages make it pretty easy.