test

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiHello      = baseURL + "/hello"
	ApiLogin      = baseURL + "/login"
	ApiLogout     = baseURL + "/logout"
	ApiUser       = baseURL + "/user"
	ApiUserData   = baseURL + "/user/data"
	ApiUserPublic = baseURL + "/user/public"
)

Variables

This section is empty.

Functions

func Get

func Get(t *testing.T, token string, urlPath string, data ...interface{}) (*gtoken.DefaultResponse, error)

Get contains the logic of login

func GetToken

func GetToken(t *testing.T) (newToken string, err error)

GetToken performs login and get token from response

func Post

func Post(t *testing.T, token string, urlPath string, data ...interface{}) (*gtoken.DefaultResponse, error)

Post contains the logic of login

Types

This section is empty.

Jump to

Keyboard shortcuts

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