Documentation ¶
Overview ¶
Package svcmocks is a generated GoMock package.
Package svcmocks is a generated GoMock package.
Package svcmocks is a generated GoMock package.
Index ¶
- type MockCodeService
- type MockCodeServiceMockRecorder
- type MockService
- type MockServiceMockRecorder
- type MockUserService
- func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
- func (m *MockUserService) FindOrCreate(ctx context.Context, phone string) (domain.User, error)
- func (m *MockUserService) Login(ctx context.Context, email, password string) (domain.User, error)
- func (m *MockUserService) Profile(ctx context.Context, id int64) (domain.User, error)
- func (m *MockUserService) SignUp(ctx context.Context, u domain.User) error
- type MockUserServiceMockRecorder
- func (mr *MockUserServiceMockRecorder) FindOrCreate(ctx, phone interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) Login(ctx, email, password interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) Profile(ctx, id interface{}) *gomock.Call
- func (mr *MockUserServiceMockRecorder) SignUp(ctx, u interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCodeService ¶
type MockCodeService struct {
// contains filtered or unexported fields
}
MockCodeService is a mock of CodeService interface.
func NewMockCodeService ¶
func NewMockCodeService(ctrl *gomock.Controller) *MockCodeService
NewMockCodeService creates a new mock instance.
func (*MockCodeService) EXPECT ¶
func (m *MockCodeService) EXPECT() *MockCodeServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockCodeServiceMockRecorder ¶
type MockCodeServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCodeServiceMockRecorder is the mock recorder for MockCodeService.
func (*MockCodeServiceMockRecorder) Send ¶
func (mr *MockCodeServiceMockRecorder) Send(ctx, biz, phone interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockCodeServiceMockRecorder) Verify ¶
func (mr *MockCodeServiceMockRecorder) Verify(ctx, biz, phone, inputCode interface{}) *gomock.Call
Verify indicates an expected call of Verify.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Send ¶
func (mr *MockServiceMockRecorder) Send(ctx, tpl, args interface{}, numbers ...interface{}) *gomock.Call
Send indicates an expected call of Send.
type MockUserService ¶
type MockUserService struct {
// contains filtered or unexported fields
}
MockUserService is a mock of UserService interface.
func NewMockUserService ¶
func NewMockUserService(ctrl *gomock.Controller) *MockUserService
NewMockUserService creates a new mock instance.
func (*MockUserService) EXPECT ¶
func (m *MockUserService) EXPECT() *MockUserServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUserService) FindOrCreate ¶
FindOrCreate mocks base method.
type MockUserServiceMockRecorder ¶
type MockUserServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockUserServiceMockRecorder is the mock recorder for MockUserService.
func (*MockUserServiceMockRecorder) FindOrCreate ¶
func (mr *MockUserServiceMockRecorder) FindOrCreate(ctx, phone interface{}) *gomock.Call
FindOrCreate indicates an expected call of FindOrCreate.
func (*MockUserServiceMockRecorder) Login ¶
func (mr *MockUserServiceMockRecorder) Login(ctx, email, password interface{}) *gomock.Call
Login indicates an expected call of Login.
func (*MockUserServiceMockRecorder) Profile ¶
func (mr *MockUserServiceMockRecorder) Profile(ctx, id interface{}) *gomock.Call
Profile indicates an expected call of Profile.
func (*MockUserServiceMockRecorder) SignUp ¶
func (mr *MockUserServiceMockRecorder) SignUp(ctx, u interface{}) *gomock.Call
SignUp indicates an expected call of SignUp.