tests

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestingAdminAuthConfig = configstc.AuthConfig{
	Enable:      true,
	SecretKey:   "F6A4F5F8AF809C80ECD435BAF63EE826",
	AuthExpired: 3600,
}
View Source
var TestingApiServer = configstc.ServerConfig{
	Enable:         true,
	ServerBindAddr: "",
	Port:           utils.TrueScopeRand(10000, 10100),
}
View Source
var TestingDBConfig = configstc.DBConfig{
	DbConn:      consts.DB_MYSQL,
	DbHost:      "192.168.149.128",
	DbPort:      "3306",
	DbUser:      "root",
	DbPassword:  "root",
	DbName:      "db_ubd_frame",
	TablePrefix: "test_",
}
View Source
var TestingDataDBConfig = configstc.DBConfig{
	DbConn:      consts.DB_MYSQL,
	DbHost:      "192.168.149.128",
	DbPort:      "3306",
	DbUser:      "root",
	DbPassword:  "root",
	DbName:      "db_ubd_frame_data",
	TablePrefix: "test_",
}
View Source
var TestingUserAuthConfig = configstc.AuthConfig{
	Enable:      true,
	SecretKey:   "CAD234260A43FF8E215CD45CFE335655",
	AuthExpired: 3600,
}

Functions

func GetTestAuthDataPacket added in v1.0.5

func GetTestAuthDataPacket() *dto.AuthDataPacket

func GetTestingDBConfig added in v1.0.4

func GetTestingDBConfig() configstc.DBConfig

func NewDi

func NewDi(t *testing.T) *dig.Container

Types

type Person

type Person struct {
	Id      int64  `json:"id"`
	Name    string `json:"name"`    //姓名
	Age     int    `json:"age"`     //年龄
	Address string `json:"address"` //地址
}

func NewPerson

func NewPerson() *Person

Jump to

Keyboard shortcuts

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