svcmocks

package
v0.0.0-...-d13da26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package svcmocks is a generated GoMock package.

Package svcmocks is a generated GoMock package.

Package svcmocks is a generated GoMock package.

Index

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockCodeService) Send

func (m *MockCodeService) Send(ctx context.Context, biz, phone string) error

Send mocks base method.

func (*MockCodeService) Verify

func (m *MockCodeService) Verify(ctx context.Context, biz, phone, inputCode string) (bool, error)

Verify mocks base method.

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.

func (*MockService) Send

func (m *MockService) Send(ctx context.Context, tpl string, args []string, numbers ...string) error

Send mocks base method.

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockUserService) FindOrCreate

func (m *MockUserService) FindOrCreate(ctx context.Context, phone string) (domain.User, error)

FindOrCreate mocks base method.

func (*MockUserService) Login

func (m *MockUserService) Login(ctx context.Context, email, password string) (domain.User, error)

Login mocks base method.

func (*MockUserService) Profile

func (m *MockUserService) Profile(ctx context.Context, id int64) (domain.User, error)

Profile mocks base method.

func (*MockUserService) SignUp

func (m *MockUserService) SignUp(ctx context.Context, u domain.User) error

SignUp 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL