mock

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

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

Go to latest
Published: Sep 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

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

Store indicates an expected call of Store.

func (*MockCodeRepositoryMockRecorder) Verify

func (mr *MockCodeRepositoryMockRecorder) Verify(ctx, biz, phone, inputCode any) *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, user 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.

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

Create indicates an expected call of Create.

func (*MockUserRepositoryMockRecorder) FindByEmail

func (mr *MockUserRepositoryMockRecorder) FindByEmail(ctx, email any) *gomock.Call

FindByEmail indicates an expected call of FindByEmail.

func (*MockUserRepositoryMockRecorder) FindById

func (mr *MockUserRepositoryMockRecorder) FindById(ctx, id any) *gomock.Call

FindById indicates an expected call of FindById.

func (*MockUserRepositoryMockRecorder) FindByPhone

func (mr *MockUserRepositoryMockRecorder) FindByPhone(ctx, phone any) *gomock.Call

FindByPhone indicates an expected call of FindByPhone.

Jump to

Keyboard shortcuts

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