tests

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, got, expect interface{})

AssertEqual 断言等

func AssertObjEqual

func AssertObjEqual(t *testing.T, r, e interface{}, names ...string)

AssertObjEqual 断言等

func Now

func Now() *time.Time

Now 获取当前时间

Types

type Base

type Base struct {
	ID        int64
	CreatedAt time.Time
	UpdatedAt time.Time
}

type User

type User struct {
	Base
	Username string
	Password string
	Address  string
	Age      int
	Phone    string
	Score    int
	Dept     string
}

func (User) TableName

func (User) TableName() string

Jump to

Keyboard shortcuts

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