repomocks

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/repository/code.go

Generated by this command:

mockgen -source=./internal/repository/code.go -package=repomocks -destination=./internal/repository/mocks/code.mock.go

Package repomocks is a generated GoMock package.

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

Generated by this command:

mockgen -source=./internal/repository/user.go -package=repomocks -destination=./internal/repository/mocks/user.mock.go

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

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

Set mocks base method.

func (*MockCodeRepository) Verify

func (m *MockCodeRepository) Verify(ctx context.Context, biz, phone, code 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) Set

func (mr *MockCodeRepositoryMockRecorder) Set(ctx, biz, phone, code any) *gomock.Call

Set indicates an expected call of Set.

func (*MockCodeRepositoryMockRecorder) Verify

func (mr *MockCodeRepositoryMockRecorder) Verify(ctx, biz, phone, code 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, 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, uid 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) UpdateNonZeroFields

func (m *MockUserRepository) UpdateNonZeroFields(ctx context.Context, user domain.User) error

UpdateNonZeroFields 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 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, uid 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.

func (*MockUserRepositoryMockRecorder) UpdateNonZeroFields

func (mr *MockUserRepositoryMockRecorder) UpdateNonZeroFields(ctx, user any) *gomock.Call

UpdateNonZeroFields indicates an expected call of UpdateNonZeroFields.

Jump to

Keyboard shortcuts

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