mock_manager

package
v0.0.0-...-64e8fac Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mock_manager is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockManager

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

MockManager is a mock of Manager interface.

func NewMockManager

func NewMockManager(ctrl *gomock.Controller) *MockManager

NewMockManager creates a new mock instance.

func (*MockManager) Create

func (m *MockManager) Create(ctx context.Context, user *models.User) (*models.User, error)

Create mocks base method.

func (*MockManager) DeleteUser

func (m *MockManager) DeleteUser(ctx context.Context, id uint) error

DeleteUser mocks base method.

func (*MockManager) EXPECT

func (m *MockManager) EXPECT() *MockManagerMockRecorder

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

func (*MockManager) GetUserByID

func (m *MockManager) GetUserByID(ctx context.Context, userID uint) (*models.User, error)

GetUserByID mocks base method.

func (*MockManager) GetUserByIDP

func (m *MockManager) GetUserByIDP(ctx context.Context, email, idp string) (*models.User, error)

GetUserByIDP mocks base method.

func (*MockManager) GetUserByIDs

func (m *MockManager) GetUserByIDs(ctx context.Context, userIDs []uint) ([]*models.User, error)

GetUserByIDs mocks base method.

func (*MockManager) GetUserMapByIDs

func (m *MockManager) GetUserMapByIDs(ctx context.Context, userIDs []uint) (map[uint]*models.User, error)

GetUserMapByIDs mocks base method.

func (*MockManager) List

func (m *MockManager) List(ctx context.Context, query *q.Query) (int64, []*models.User, error)

List mocks base method.

func (*MockManager) ListByEmail

func (m *MockManager) ListByEmail(ctx context.Context, emails []string) ([]*models.User, error)

ListByEmail mocks base method.

func (*MockManager) UpdateByID

func (m *MockManager) UpdateByID(ctx context.Context, id uint, db *models.User) (*models.User, error)

UpdateByID mocks base method.

type MockManagerMockRecorder

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

MockManagerMockRecorder is the mock recorder for MockManager.

func (*MockManagerMockRecorder) Create

func (mr *MockManagerMockRecorder) Create(ctx, user interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockManagerMockRecorder) DeleteUser

func (mr *MockManagerMockRecorder) DeleteUser(ctx, id interface{}) *gomock.Call

DeleteUser indicates an expected call of DeleteUser.

func (*MockManagerMockRecorder) GetUserByID

func (mr *MockManagerMockRecorder) GetUserByID(ctx, userID interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockManagerMockRecorder) GetUserByIDP

func (mr *MockManagerMockRecorder) GetUserByIDP(ctx, email, idp interface{}) *gomock.Call

GetUserByIDP indicates an expected call of GetUserByIDP.

func (*MockManagerMockRecorder) GetUserByIDs

func (mr *MockManagerMockRecorder) GetUserByIDs(ctx, userIDs interface{}) *gomock.Call

GetUserByIDs indicates an expected call of GetUserByIDs.

func (*MockManagerMockRecorder) GetUserMapByIDs

func (mr *MockManagerMockRecorder) GetUserMapByIDs(ctx, userIDs interface{}) *gomock.Call

GetUserMapByIDs indicates an expected call of GetUserMapByIDs.

func (*MockManagerMockRecorder) List

func (mr *MockManagerMockRecorder) List(ctx, query interface{}) *gomock.Call

List indicates an expected call of List.

func (*MockManagerMockRecorder) ListByEmail

func (mr *MockManagerMockRecorder) ListByEmail(ctx, emails interface{}) *gomock.Call

ListByEmail indicates an expected call of ListByEmail.

func (*MockManagerMockRecorder) UpdateByID

func (mr *MockManagerMockRecorder) UpdateByID(ctx, id, db interface{}) *gomock.Call

UpdateByID indicates an expected call of UpdateByID.

Jump to

Keyboard shortcuts

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