Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateControllerContext ¶
func CreateControllerContext() (*gin.Context, *httptest.ResponseRecorder)
CreateControllerContext creates a Context for mocking HTTP requests.
func MockJsonPost ¶
MockJsonPost method to mock HTTP request bodies. Code from https://stackoverflow.com/questions/57733801/how-to-set-mock-gin-context-for-bindjson
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.