You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See [net/http/httptest](https://pkg.go.dev/net/http/httptest) documentation.
209
+
This module provides a [httpclienttest.NewTestHTTPServer()](https://github.com/ankorstore/yokai/blob/main/httpclient/httpclienttest/server.go) helper for testing your clients against a test server, that allows you:
210
+
211
+
- to define test HTTP roundtrips: a couple of test aware functions to define the request and the response behavior
212
+
- to configure several test HTTP roundtrips if you need to test successive calls
You can find more complete examples in the module [tests](https://github.com/ankorstore/yokai/blob/main/httpclient/httpclienttest/server_test.go).
0 commit comments