test

package
v1.5.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

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

func NewJSONRequest(method string, target string, param interface{}) *http.Request

NewJSONRequest func creates a new request using JSON format.

func PrepareForControllerTest added in v1.5.3

func PrepareForControllerTest(isSecurity bool) (*echo.Echo, container.Container)

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

func PrepareForServiceTest() container.Container

PrepareForServiceTest func prepares the services for testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL