user_test.go 678 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4
package test

import (
	"git.hilo.cn/hilo-common/domain"
hujiebin's avatar
hujiebin committed
5
	"hilo-group/domain/cache/group_c"
hujiebin's avatar
hujiebin committed
6 7 8 9 10 11 12 13 14 15 16 17
	"hilo-group/domain/model/user_m"
	"testing"
)

func TestGetUserMap(t *testing.T) {
	var userIds []uint64
	for i := 0; i < 10502; i++ {
		userIds = append(userIds, 7642)
	}
	res, err := user_m.GetUserMapByIds(domain.CreateModelNil(), userIds)
	t.Logf("%v-%v", res, err)
}
iamhujiebin's avatar
iamhujiebin committed
18 19 20

func TestGetUserVipMap(t *testing.T) {
	var userIds []uint64
iamhujiebin's avatar
iamhujiebin committed
21
	for i := 0; i < 1500; i++ {
iamhujiebin's avatar
iamhujiebin committed
22 23 24 25 26
		userIds = append(userIds, 7642)
	}
	res, err := user_m.BatchGetVips(userIds)
	t.Logf("%v-%v", res, err)
}
hujiebin's avatar
hujiebin committed
27 28 29 30

func TestRemoveRoomVisit(t *testing.T) {
	group_c.RemoveRoomVisitors(domain.CreateModelNil(), "HTGS#a47478749")
}