hertz101/app/user/biz/service/register_test.go
2025-01-20 16:01:57 +08:00

22 lines
376 B
Go

package service
import (
"context"
user "github.com/suyiiyii/hertz101/rpc_gen/kitex_gen/user"
"testing"
)
func TestRegister_Run(t *testing.T) {
ctx := context.Background()
s := NewRegisterService(ctx)
// init req and assert value
req := &user.RegisterReq{}
resp, err := s.Run(req)
t.Logf("err: %v", err)
t.Logf("resp: %v", resp)
// todo: edit your unit test
}