Documentation ¶
Overview ¶
Package mockserver aims at mocking the API for unit tests. Call the instance with GetServer, add endpoints with AddJSONHandler.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddJSONHandler ¶
func AddJSONHandler(t *testing.T, res MockJSONResponse)
AddJSONHandler adds a mocked handler corresponding to the MockJsonResponse.
Types ¶
Click to show internal directories.
Click to hide internal directories.