24 lines
465 B
Go
24 lines
465 B
Go
|
package user_test
|
|||
|
|
|||
|
import (
|
|||
|
"context"
|
|||
|
"testing"
|
|||
|
|
|||
|
"gitlab.com/go-course-project/go17/vblog/apps/user"
|
|||
|
"gitlab.com/go-course-project/go17/vblog/apps/user/impl"
|
|||
|
)
|
|||
|
|
|||
|
var (
|
|||
|
ctx = context.Background()
|
|||
|
)
|
|||
|
|
|||
|
// 我要测试的对象是什么?, 这个服务的具体实现
|
|||
|
// Service的具体实现?现在还没实现
|
|||
|
func TestRegistry(t *testing.T) {
|
|||
|
ins, err := impl.UserService.Registry(ctx, &user.RegistryRequest{})
|
|||
|
if err != nil {
|
|||
|
t.Fatal(err)
|
|||
|
}
|
|||
|
t.Log(ins)
|
|||
|
}
|