Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestContext ¶
func CreateTestContext(method string, path string, body io.Reader, context map[string]interface{}) (echo.Context, *httptest.ResponseRecorder)
CreateTestContext sets up a new echo context with the parameters given, and returns the context itself and the response recorder.
func EmptyTestContext ¶
func EmptyTestContext() (echo.Context, *httptest.ResponseRecorder)
EmptyTestContext returns an empty http context - for when we don't need much other than the recorder + context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.