Documentation ¶
Index ¶
- func ConvertToString(model interface{}) string
- func GetCookie(rec *httptest.ResponseRecorder, cookieName string) string
- func NewJSONRequest(method string, target string, param interface{}) *http.Request
- func PrepareForControllerTest(isSecurity bool) (*echo.Echo, container.Container)
- func PrepareForLoggerTest() (*echo.Echo, container.Container, *observer.ObservedLogs)
- func PrepareForServiceTest() container.Container
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertToString ¶
func ConvertToString(model interface{}) string
ConvertToString func converts model to string.
func GetCookie ¶ added in v1.5.3
func GetCookie(rec *httptest.ResponseRecorder, cookieName string) string
GetCookie func gets a cookie from a HTTP request.
func NewJSONRequest ¶ added in v1.5.3
NewJSONRequest func creates a new request using JSON format.
func PrepareForControllerTest ¶ added in v1.5.3
PrepareForControllerTest func prepares the controllers for testing.
func PrepareForLoggerTest ¶ added in v1.5.3
func PrepareForLoggerTest() (*echo.Echo, container.Container, *observer.ObservedLogs)
PrepareForLoggerTest func prepares the loggers for testing.
func PrepareForServiceTest ¶ added in v1.5.3
PrepareForServiceTest func prepares the services for testing.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.