Files
wechat_ipad_pro/clientsdk/clientsdk_db_test.go
2026-02-17 13:06:23 +08:00

18 lines
391 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package clientsdk_test
import (
"testing"
"xiawan/wx/clientsdk"
"xiawan/wx/clientsdk/baseinfo"
"xiawan/wx/db"
"github.com/google/uuid"
)
func TestDB(T *testing.T) {
db.InitDB()
// 补充缺少的参数第4个参数是 *baseinfo.UserInfo这里暂时传 nil
userInfo := clientsdk.NewUserInfo(uuid.New().String(), nil, baseinfo.ClientVersion, nil)
db.SaveUserInfo(userInfo)
}