mocks

package
v0.0.0-...-8f202a6 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthRepository

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

MockAuthRepository is a mock of AuthRepository interface.

func NewMockAuthRepository

func NewMockAuthRepository(ctrl *gomock.Controller) *MockAuthRepository

NewMockAuthRepository creates a new mock instance.

func (*MockAuthRepository) AssignRolesToUser

func (m *MockAuthRepository) AssignRolesToUser(ctx context.Context, userID string, roleIDs []string) error

AssignRolesToUser mocks base method.

func (*MockAuthRepository) CreateUser

func (m *MockAuthRepository) CreateUser(ctx context.Context, user *domain.User) error

CreateUser mocks base method.

func (*MockAuthRepository) CreateUserToken

func (m *MockAuthRepository) CreateUserToken(ctx context.Context, token *domain.UserToken) error

CreateUserToken mocks base method.

func (*MockAuthRepository) DeleteUser

func (m *MockAuthRepository) DeleteUser(ctx context.Context, id string) error

DeleteUser mocks base method.

func (*MockAuthRepository) EXPECT

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

func (*MockAuthRepository) GetRoleByID

func (m *MockAuthRepository) GetRoleByID(ctx context.Context, id string) (*domain.Role, error)

GetRoleByID mocks base method.

func (*MockAuthRepository) GetRolesByNames

func (m *MockAuthRepository) GetRolesByNames(ctx context.Context, names []string) ([]domain.Role, error)

GetRolesByNames mocks base method.

func (*MockAuthRepository) GetUserByEmail

func (m *MockAuthRepository) GetUserByEmail(ctx context.Context, email string) (*domain.User, error)

GetUserByEmail mocks base method.

func (*MockAuthRepository) GetUserByID

func (m *MockAuthRepository) GetUserByID(ctx context.Context, id string) (*domain.User, error)

GetUserByID mocks base method.

func (*MockAuthRepository) GetUserRoles

func (m *MockAuthRepository) GetUserRoles(ctx context.Context, userID string) ([]domain.Role, error)

GetUserRoles mocks base method.

func (*MockAuthRepository) GetUserTokenByIDAndToken

func (m *MockAuthRepository) GetUserTokenByIDAndToken(ctx context.Context, userID, token string) (*domain.UserToken, error)

GetUserTokenByIDAndToken mocks base method.

func (*MockAuthRepository) InvalidateUserToken

func (m *MockAuthRepository) InvalidateUserToken(ctx context.Context, userID, token string) error

InvalidateUserToken mocks base method.

func (*MockAuthRepository) InvalidateUserTokens

func (m *MockAuthRepository) InvalidateUserTokens(ctx context.Context, userID string) error

InvalidateUserTokens mocks base method.

func (*MockAuthRepository) UpdateUser

func (m *MockAuthRepository) UpdateUser(ctx context.Context, user *domain.User) error

UpdateUser mocks base method.

type MockAuthRepositoryMockRecorder

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

MockAuthRepositoryMockRecorder is the mock recorder for MockAuthRepository.

func (*MockAuthRepositoryMockRecorder) AssignRolesToUser

func (mr *MockAuthRepositoryMockRecorder) AssignRolesToUser(ctx, userID, roleIDs interface{}) *gomock.Call

AssignRolesToUser indicates an expected call of AssignRolesToUser.

func (*MockAuthRepositoryMockRecorder) CreateUser

func (mr *MockAuthRepositoryMockRecorder) CreateUser(ctx, user interface{}) *gomock.Call

CreateUser indicates an expected call of CreateUser.

func (*MockAuthRepositoryMockRecorder) CreateUserToken

func (mr *MockAuthRepositoryMockRecorder) CreateUserToken(ctx, token interface{}) *gomock.Call

CreateUserToken indicates an expected call of CreateUserToken.

func (*MockAuthRepositoryMockRecorder) DeleteUser

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

DeleteUser indicates an expected call of DeleteUser.

func (*MockAuthRepositoryMockRecorder) GetRoleByID

func (mr *MockAuthRepositoryMockRecorder) GetRoleByID(ctx, id interface{}) *gomock.Call

GetRoleByID indicates an expected call of GetRoleByID.

func (*MockAuthRepositoryMockRecorder) GetRolesByNames

func (mr *MockAuthRepositoryMockRecorder) GetRolesByNames(ctx, names interface{}) *gomock.Call

GetRolesByNames indicates an expected call of GetRolesByNames.

func (*MockAuthRepositoryMockRecorder) GetUserByEmail

func (mr *MockAuthRepositoryMockRecorder) GetUserByEmail(ctx, email interface{}) *gomock.Call

GetUserByEmail indicates an expected call of GetUserByEmail.

func (*MockAuthRepositoryMockRecorder) GetUserByID

func (mr *MockAuthRepositoryMockRecorder) GetUserByID(ctx, id interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockAuthRepositoryMockRecorder) GetUserRoles

func (mr *MockAuthRepositoryMockRecorder) GetUserRoles(ctx, userID interface{}) *gomock.Call

GetUserRoles indicates an expected call of GetUserRoles.

func (*MockAuthRepositoryMockRecorder) GetUserTokenByIDAndToken

func (mr *MockAuthRepositoryMockRecorder) GetUserTokenByIDAndToken(ctx, userID, token interface{}) *gomock.Call

GetUserTokenByIDAndToken indicates an expected call of GetUserTokenByIDAndToken.

func (*MockAuthRepositoryMockRecorder) InvalidateUserToken

func (mr *MockAuthRepositoryMockRecorder) InvalidateUserToken(ctx, userID, token interface{}) *gomock.Call

InvalidateUserToken indicates an expected call of InvalidateUserToken.

func (*MockAuthRepositoryMockRecorder) InvalidateUserTokens

func (mr *MockAuthRepositoryMockRecorder) InvalidateUserTokens(ctx, userID interface{}) *gomock.Call

InvalidateUserTokens indicates an expected call of InvalidateUserTokens.

func (*MockAuthRepositoryMockRecorder) UpdateUser

func (mr *MockAuthRepositoryMockRecorder) UpdateUser(ctx, user interface{}) *gomock.Call

UpdateUser indicates an expected call of UpdateUser.

type MockAuthUsecase

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

MockAuthUsecase is a mock of AuthUsecase interface.

func NewMockAuthUsecase

func NewMockAuthUsecase(ctrl *gomock.Controller) *MockAuthUsecase

NewMockAuthUsecase creates a new mock instance.

func (*MockAuthUsecase) AssignRoles

func (m *MockAuthUsecase) AssignRoles(ctx context.Context, userID string, roleNames []string) error

AssignRoles mocks base method.

func (*MockAuthUsecase) EXPECT

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

func (*MockAuthUsecase) GetUserByID

func (m *MockAuthUsecase) GetUserByID(ctx context.Context, id string) (*domain.User, error)

GetUserByID mocks base method.

func (*MockAuthUsecase) GetUserRoles

func (m *MockAuthUsecase) GetUserRoles(ctx context.Context, userID string) ([]domain.Role, error)

GetUserRoles mocks base method.

func (*MockAuthUsecase) Login

Login mocks base method.

func (*MockAuthUsecase) Logout

func (m *MockAuthUsecase) Logout(ctx context.Context, userID, token string) error

Logout mocks base method.

func (*MockAuthUsecase) Register

Register mocks base method.

func (*MockAuthUsecase) UpdateUser

func (m *MockAuthUsecase) UpdateUser(ctx context.Context, user *domain.User) error

UpdateUser mocks base method.

type MockAuthUsecaseMockRecorder

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

MockAuthUsecaseMockRecorder is the mock recorder for MockAuthUsecase.

func (*MockAuthUsecaseMockRecorder) AssignRoles

func (mr *MockAuthUsecaseMockRecorder) AssignRoles(ctx, userID, roleNames interface{}) *gomock.Call

AssignRoles indicates an expected call of AssignRoles.

func (*MockAuthUsecaseMockRecorder) GetUserByID

func (mr *MockAuthUsecaseMockRecorder) GetUserByID(ctx, id interface{}) *gomock.Call

GetUserByID indicates an expected call of GetUserByID.

func (*MockAuthUsecaseMockRecorder) GetUserRoles

func (mr *MockAuthUsecaseMockRecorder) GetUserRoles(ctx, userID interface{}) *gomock.Call

GetUserRoles indicates an expected call of GetUserRoles.

func (*MockAuthUsecaseMockRecorder) Login

func (mr *MockAuthUsecaseMockRecorder) Login(ctx, req interface{}) *gomock.Call

Login indicates an expected call of Login.

func (*MockAuthUsecaseMockRecorder) Logout

func (mr *MockAuthUsecaseMockRecorder) Logout(ctx, userID, token interface{}) *gomock.Call

Logout indicates an expected call of Logout.

func (*MockAuthUsecaseMockRecorder) Register

func (mr *MockAuthUsecaseMockRecorder) Register(ctx, req interface{}) *gomock.Call

Register indicates an expected call of Register.

func (*MockAuthUsecaseMockRecorder) UpdateUser

func (mr *MockAuthUsecaseMockRecorder) UpdateUser(ctx, user 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