HTTPMock for Testing a Golang API Client

I’m working on an API client for some Nexmo APIs and having tests to work through the various responses that the API can return and check that it does what I expect has been very handy so I thought I’d share my thoughts. I’ve got a bit of a head start here too since the OpenAPI specs have example responses in them that I can grab and feed to the mocking tool I’m using in my tests! Continue reading