Documentation ¶
Index ¶
- func ContextAndRecorderGet(path string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)
- func ContextAndRecorderPost(path, file string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)
- func ContextAndRecorderPut(path, file string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)
- func HTTPResponse200(body string, req *http.Request) *http.Response
- func HTTPResponse201(body string, req *http.Request) *http.Response
- func HTTPResponse400(body string, req *http.Request) *http.Response
- func HTTPResponse402(body string, req *http.Request) *http.Response
- func HTTPResponse403(body string, req *http.Request) *http.Response
- func HTTPResponse422(body string, req *http.Request) *http.Response
- func HTTPResponse500(body string, req *http.Request) *http.Response
- func Read(file string) string
- func RemoveEnterAndTabs(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextAndRecorderGet ¶
func ContextAndRecorderGet(path string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)
ContextAndRecorderGet context and recorder for Get method
func ContextAndRecorderPost ¶
func ContextAndRecorderPost(path, file string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)
ContextAndRecorderPost context and recorder Put method
func ContextAndRecorderPut ¶
func ContextAndRecorderPut(path, file string, e *echo.Echo) (echo.Context, *httptest.ResponseRecorder)
ContextAndRecorderPut context and recorder Put method
func HTTPResponse200 ¶
HTTPResponse200 return http response with status code 200
func HTTPResponse201 ¶
HTTPResponse201 return http response with status code 201
func HTTPResponse400 ¶
HTTPResponse400 return http response with status code 400
func HTTPResponse402 ¶
HTTPResponse402 return http response with status code 402
func HTTPResponse403 ¶
HTTPResponse403 return http response with status code 403
func HTTPResponse422 ¶
HTTPResponse422 return http response with status code 422
func HTTPResponse500 ¶
HTTPResponse500 return http response with status code 500
func RemoveEnterAndTabs ¶
RemoveEnterAndTabs removes enters and tabs
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.