user_test.go 528 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package test

import (
	"git.hilo.cn/hilo-common/domain"
	"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
17 18 19

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