Documentation ¶
Overview ¶
Package echotestkit provides echo test helpers
Index ¶
- func Request(req *http.Request) (echo.Context, *httptest.ResponseRecorder)
- func RequestDELETE(url string) (ctx echo.Context, rec *httptest.ResponseRecorder)
- func RequestDELETEWithParam(url string, urlParams map[string]string) (echo.Context, *httptest.ResponseRecorder)
- func RequestGET(url string) (echo.Context, *httptest.ResponseRecorder)
- func RequestGETWithParam(url string, urlParams map[string]string) (echo.Context, *httptest.ResponseRecorder)
- func RequestPOST(url string, json string) (echo.Context, *httptest.ResponseRecorder)
- func RequestPUT(url string, json string) (ctx echo.Context, rec *httptest.ResponseRecorder)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequestDELETE ¶
func RequestDELETE(url string) (ctx echo.Context, rec *httptest.ResponseRecorder)
RequestDELETE return echo.Context and httptest.ResponseRecorder for DELETE Request.
func RequestDELETEWithParam ¶
func RequestDELETEWithParam(url string, urlParams map[string]string) (echo.Context, *httptest.ResponseRecorder)
RequestDELETEWithParam return echo.Context and httptest.ResponseRecorder for DELETE Request with URL Param.
func RequestGET ¶
func RequestGET(url string) (echo.Context, *httptest.ResponseRecorder)
RequestGET return echo.Context and httptest.ResponseRecorder for GET Request.
func RequestGETWithParam ¶
func RequestGETWithParam(url string, urlParams map[string]string) (echo.Context, *httptest.ResponseRecorder)
RequestGETWithParam return echo.Context and httptest.ResponseRecorder for GET Request with URL Param.
func RequestPOST ¶
RequestPOST return echo.Context and httptest.ResponseRecorder for POST Request.
func RequestPUT ¶
RequestPUT return echo.Context and httptest.ResponseRecorder for POST Request.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.