Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MockClient ¶
func MockClient( t *testing.T, fixture string, output *RequestData, callback HTTPHandler) (*commercetools.Client, *httptest.Server)
MockClient returns a client to mock HTTP requests with a callback function
Types ¶
type HTTPHandler ¶
type HTTPHandler func(w http.ResponseWriter, r *http.Request)
HTTPHandler type defines callback from doing a mock HTTP request
Click to show internal directories.
Click to hide internal directories.