go17/vblog/apps/user/impl_test.go

24 lines
465 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 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)
}