svcmocks

package
v0.0.0-...-2f866d2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./internal/service/code.go

Generated by this command:

mockgen -source=./internal/service/code.go -package=svcmocks -destination=./internal/service/mocks/code.mock.go

Package svcmocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./internal/service/user.go

Generated by this command:

mockgen -source=./internal/service/user.go -package=svcmocks -destination=./internal/service/mocks/user.mock.go

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 any) *gomock.Call

Send indicates an expected call of Send.

func (*MockCodeServiceMockRecorder) Verify

func (mr *MockCodeServiceMockRecorder) Verify(ctx, biz, phone, inputCode any) *gomock.Call

Verify indicates an expected call of Verify.

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) FindById

func (m *MockUserService) FindById(ctx context.Context, uid int64) (domain.User, error)

FindById mocks base method.

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) Signup

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

Signup mocks base method.

func (*MockUserService) UpdateNonSensitiveInfo

func (m *MockUserService) UpdateNonSensitiveInfo(ctx context.Context, user domain.User) error

UpdateNonSensitiveInfo mocks base method.

type MockUserServiceMockRecorder

type MockUserServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) FindById

func (mr *MockUserServiceMockRecorder) FindById(ctx, uid any) *gomock.Call

FindById indicates an expected call of FindById.

func (*MockUserServiceMockRecorder) FindOrCreate

func (mr *MockUserServiceMockRecorder) FindOrCreate(ctx, phone any) *gomock.Call

FindOrCreate indicates an expected call of FindOrCreate.

func (*MockUserServiceMockRecorder) Login

func (mr *MockUserServiceMockRecorder) Login(ctx, email, password any) *gomock.Call

Login indicates an expected call of Login.

func (*MockUserServiceMockRecorder) Signup

func (mr *MockUserServiceMockRecorder) Signup(ctx, u any) *gomock.Call

Signup indicates an expected call of Signup.

func (*MockUserServiceMockRecorder) UpdateNonSensitiveInfo

func (mr *MockUserServiceMockRecorder) UpdateNonSensitiveInfo(ctx, user any) *gomock.Call

UpdateNonSensitiveInfo indicates an expected call of UpdateNonSensitiveInfo.

Jump to

Keyboard shortcuts

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