tests

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisClient

func NewRedisClient() *redis.Client

NewRedisClient 创建一个新的Redis客户端 每次单测只创建一次

Types

type Student

type Student struct {
	Name string `json:"name"`
	Age  int    `json:"age"`
	Time int64  `json:"time"`
}

Student 测试用对象示例

func (*Student) Decode

func (s *Student) Decode(buf []byte) error

func (*Student) Key

func (s *Student) Key() string

func (*Student) Value

func (s *Student) Value() ([]byte, error)

func (*Student) Zero

func (s *Student) Zero() bool

Jump to

Keyboard shortcuts

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