test

package
v0.0.0-...-65df244 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEngine

func CreateEngine(controller func() config.MotionController) *gin.Engine

Types

type SignUpTestDto

type SignUpTestDto struct {
	Name  string               `json:"name"`
	Roles []sqlDomain.RoleEnum `json:"roles"`
	// contains filtered or unexported fields
}

func PerformRequest

func PerformRequest(r http.Handler, method, path, role, loggedUserToken string, body io.Reader) (*httptest.ResponseRecorder, SignUpTestDto)

func Token

func Token(roles ...sqlDomain.RoleEnum) (string, SignUpTestDto)

Jump to

Keyboard shortcuts

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