repomocks

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 repomocks is a generated GoMock package.

Package repomocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCodeRepository

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

MockCodeRepository is a mock of CodeRepository interface.

func NewMockCodeRepository

func NewMockCodeRepository(ctrl *gomock.Controller) *MockCodeRepository

NewMockCodeRepository creates a new mock instance.

func (*MockCodeRepository) EXPECT

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

func (*MockCodeRepository) Store

func (m *MockCodeRepository) Store(ctx context.Context, biz, phone, code string) error

Store mocks base method.

func (*MockCodeRepository) Verify

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

Verify mocks base method.

type MockCodeRepositoryMockRecorder

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

MockCodeRepositoryMockRecorder is the mock recorder for MockCodeRepository.

func (*MockCodeRepositoryMockRecorder) Store

func (mr *MockCodeRepositoryMockRecorder) Store(ctx, biz, phone, code interface{}) *gomock.Call

Store indicates an expected call of Store.

func (*MockCodeRepositoryMockRecorder) Verify

func (mr *MockCodeRepositoryMockRecorder) Verify(ctx, biz, phone, inputCode interface{}) *gomock.Call

Verify indicates an expected call of Verify.

type MockUserRepository

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

MockUserRepository is a mock of UserRepository interface.

func NewMockUserRepository

func NewMockUserRepository(ctrl *gomock.Controller) *MockUserRepository

NewMockUserRepository creates a new mock instance.

func (*MockUserRepository) Create

func (m *MockUserRepository) Create(ctx context.Context, u domain.User) error

Create mocks base method.

func (*MockUserRepository) EXPECT

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

func (*MockUserRepository) FindByEmail

func (m *MockUserRepository) FindByEmail(ctx context.Context, email string) (domain.User, error)

FindByEmail mocks base method.

func (*MockUserRepository) FindById

func (m *MockUserRepository) FindById(ctx context.Context, id int64) (domain.User, error)

FindById mocks base method.

func (*MockUserRepository) FindByPhone

func (m *MockUserRepository) FindByPhone(ctx context.Context, phone string) (domain.User, error)

FindByPhone mocks base method.

func (*MockUserRepository) FindByWechat

func (m *MockUserRepository) FindByWechat(ctx context.Context, openID string) (domain.User, error)

FindByWechat mocks base method.

type MockUserRepositoryMockRecorder

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

MockUserRepositoryMockRecorder is the mock recorder for MockUserRepository.

func (*MockUserRepositoryMockRecorder) Create

func (mr *MockUserRepositoryMockRecorder) Create(ctx, u interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserRepositoryMockRecorder) FindByEmail

func (mr *MockUserRepositoryMockRecorder) FindByEmail(ctx, email interface{}) *gomock.Call

FindByEmail indicates an expected call of FindByEmail.

func (*MockUserRepositoryMockRecorder) FindById

func (mr *MockUserRepositoryMockRecorder) FindById(ctx, id interface{}) *gomock.Call

FindById indicates an expected call of FindById.

func (*MockUserRepositoryMockRecorder) FindByPhone

func (mr *MockUserRepositoryMockRecorder) FindByPhone(ctx, phone interface{}) *gomock.Call

FindByPhone indicates an expected call of FindByPhone.

func (*MockUserRepositoryMockRecorder) FindByWechat

func (mr *MockUserRepositoryMockRecorder) FindByWechat(ctx, openID interface{}) *gomock.Call

FindByWechat indicates an expected call of FindByWechat.

Jump to

Keyboard shortcuts

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