test

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ROOMID1    int64 = 1
	ROOMID2    int64 = 2
	UID1       int64 = 777
	UID2       int64 = 778
	UID3       int64 = 779
	DynamicID1 int64 = 1001
	DynamicID2 int64 = 1002
	MessageID1 int32 = 5001
	MessageID2 int32 = 5002
	G1         int64 = 123456
	G2         int64 = 654321
	TIMESTAMP1 int64 = 1624126814
	TIMESTAMP2 int64 = 1624126914

	NAME1 = "name1"
	NAME2 = "name2"

	CMD1 = "command1"
	CMD2 = "command2"

	BVID1 = "bvid1"
	BVID2 = "bvid2"

	ID1 = 2001
	ID2 = 2002

	VersionName = "testVersion"

	Site1 = "site1"
	Site2 = "site2"
	Site3 = "site3"

	Type1 = "type1"
	Type2 = "type2"
	Type3 = "type3"
)
View Source
const (
	BibiliLive   concern_type.Type = "bilibiliLive"
	BilibiliNews concern_type.Type = "bilibiliNews"
	DouyuLive    concern_type.Type = "douyuLive"
	YoutubeLive  concern_type.Type = "youtubeLive"
	YoutubeVideo concern_type.Type = "youtubeVideo"
	HuyaLive     concern_type.Type = "huyaLive"
	T1           concern_type.Type = "t1"
	T2           concern_type.Type = "t2"
	T3           concern_type.Type = "t3"
)

Variables

View Source
var (
	Sender1 = &message.Sender{
		Uin:      UID1,
		Nickname: NAME1,
	}

	Sender2 = &message.Sender{
		Uin:      UID2,
		Nickname: NAME2,
	}
)

Functions

func CloseBuntdb

func CloseBuntdb(t *testing.T)

func CloseMirai

func CloseMirai()

func FakeImage

func FakeImage(size int) string

func InitBuntdb

func InitBuntdb(t *testing.T)

func InitMirai

func InitMirai()

Types

This section is empty.

Jump to

Keyboard shortcuts

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