This test library provides an HTTP service useful for use in testing allowing full exercise of the HTTP transport in unit tests.
func TestMyHTTPClient(t *testing.T){
t.Run("some sort of client test", func(t *testing.T){
ts := NewTestService(t)
// Do some client things
var request ClientRequest
ts.AssertCalled()
ts.AssertReceivedAs(&request)
// etc
})
}