test

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ApiHello      string
	ApiLogin      string
	ApiRefresh    string
	ApiLogout     string
	ApiUser       string
	ApiUserData   string
	ApiUserPublic string
)

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 GetTokenPair added in v1.2.0

func GetTokenPair(t *testing.T) (*auth.LoginOutput, error)

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