mock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

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 MockInteractor

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

MockInteractor is a mock of Interactor interface.

func NewMockInteractor

func NewMockInteractor(ctrl *gomock.Controller) *MockInteractor

NewMockInteractor creates a new mock instance.

func (*MockInteractor) DeleteUser

func (m *MockInteractor) DeleteUser(ctx context.Context, u *ent.User) error

DeleteUser mocks base method.

func (*MockInteractor) EXPECT

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

func (*MockInteractor) FindUserByID

func (m *MockInteractor) FindUserByID(ctx context.Context, id int64) (*ent.User, error)

FindUserByID mocks base method.

func (*MockInteractor) GetRateLimit

func (m *MockInteractor) GetRateLimit(ctx context.Context, u *ent.User) (*extent.RateLimit, error)

GetRateLimit mocks base method.

func (*MockInteractor) SearchUsers

func (m *MockInteractor) SearchUsers(ctx context.Context, opts *interactor.SearchUsersOptions) ([]*ent.User, error)

SearchUsers mocks base method.

func (*MockInteractor) UpdateUser

func (m *MockInteractor) UpdateUser(ctx context.Context, u *ent.User) (*ent.User, error)

UpdateUser mocks base method.

type MockInteractorMockRecorder

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

MockInteractorMockRecorder is the mock recorder for MockInteractor.

func (*MockInteractorMockRecorder) DeleteUser

func (mr *MockInteractorMockRecorder) DeleteUser(ctx, u interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockInteractorMockRecorder) FindUserByID

func (mr *MockInteractorMockRecorder) FindUserByID(ctx, id interface{}) *gomock.Call

FindUserByID indicates an expected call of FindUserByID.

func (*MockInteractorMockRecorder) GetRateLimit

func (mr *MockInteractorMockRecorder) GetRateLimit(ctx, u interface{}) *gomock.Call

GetRateLimit indicates an expected call of GetRateLimit.

func (*MockInteractorMockRecorder) SearchUsers

func (mr *MockInteractorMockRecorder) SearchUsers(ctx, opts interface{}) *gomock.Call

SearchUsers indicates an expected call of SearchUsers.

func (*MockInteractorMockRecorder) UpdateUser

func (mr *MockInteractorMockRecorder) UpdateUser(ctx, u interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

Jump to

Keyboard shortcuts

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