mocks_repository_user

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepositoryMock

type UserRepositoryMock struct {
	mock.Mock
}

UserRepositoryMock is an autogenerated mock type for the UserRepositoryInterface type

func NewUserRepositoryMock

func NewUserRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserRepositoryMock

NewUserRepositoryMock creates a new instance of UserRepositoryMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*UserRepositoryMock) Authenticate

func (_m *UserRepositoryMock) Authenticate(ctx context.Context, email string, password string) (*ent.User, error)

Authenticate provides a mock function with given fields: ctx, email, password

func (*UserRepositoryMock) EXPECT

func (*UserRepositoryMock) GetByEmail

func (_m *UserRepositoryMock) GetByEmail(ctx context.Context, email string) (*ent.User, error)

GetByEmail provides a mock function with given fields: ctx, email

func (*UserRepositoryMock) GetByID

func (_m *UserRepositoryMock) GetByID(ctx context.Context, id uuid.UUID) (*ent.User, error)

GetByID provides a mock function with given fields: ctx, id

func (*UserRepositoryMock) GetGroups

func (_m *UserRepositoryMock) GetGroups(ctx context.Context, userID uuid.UUID) ([]*ent.Group, error)

GetGroups provides a mock function with given fields: ctx, userID

func (*UserRepositoryMock) GetOrCreate

func (_m *UserRepositoryMock) GetOrCreate(ctx context.Context, email string) (*ent.User, error)

GetOrCreate provides a mock function with given fields: ctx, email

type UserRepositoryMock_Authenticate_Call

type UserRepositoryMock_Authenticate_Call struct {
	*mock.Call
}

UserRepositoryMock_Authenticate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authenticate'

func (*UserRepositoryMock_Authenticate_Call) Return

func (*UserRepositoryMock_Authenticate_Call) Run

func (*UserRepositoryMock_Authenticate_Call) RunAndReturn

type UserRepositoryMock_Expecter

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

func (*UserRepositoryMock_Expecter) Authenticate

func (_e *UserRepositoryMock_Expecter) Authenticate(ctx interface{}, email interface{}, password interface{}) *UserRepositoryMock_Authenticate_Call

Authenticate is a helper method to define mock.On call

  • ctx context.Context
  • email string
  • password string

func (*UserRepositoryMock_Expecter) GetByEmail

func (_e *UserRepositoryMock_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserRepositoryMock_GetByEmail_Call

GetByEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*UserRepositoryMock_Expecter) GetByID

func (_e *UserRepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *UserRepositoryMock_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*UserRepositoryMock_Expecter) GetGroups

func (_e *UserRepositoryMock_Expecter) GetGroups(ctx interface{}, userID interface{}) *UserRepositoryMock_GetGroups_Call

GetGroups is a helper method to define mock.On call

  • ctx context.Context
  • userID uuid.UUID

func (*UserRepositoryMock_Expecter) GetOrCreate

func (_e *UserRepositoryMock_Expecter) GetOrCreate(ctx interface{}, email interface{}) *UserRepositoryMock_GetOrCreate_Call

GetOrCreate is a helper method to define mock.On call

  • ctx context.Context
  • email string

type UserRepositoryMock_GetByEmail_Call

type UserRepositoryMock_GetByEmail_Call struct {
	*mock.Call
}

UserRepositoryMock_GetByEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByEmail'

func (*UserRepositoryMock_GetByEmail_Call) Return

func (*UserRepositoryMock_GetByEmail_Call) Run

func (*UserRepositoryMock_GetByEmail_Call) RunAndReturn

type UserRepositoryMock_GetByID_Call

type UserRepositoryMock_GetByID_Call struct {
	*mock.Call
}

UserRepositoryMock_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*UserRepositoryMock_GetByID_Call) Return

func (*UserRepositoryMock_GetByID_Call) Run

func (*UserRepositoryMock_GetByID_Call) RunAndReturn

type UserRepositoryMock_GetGroups_Call

type UserRepositoryMock_GetGroups_Call struct {
	*mock.Call
}

UserRepositoryMock_GetGroups_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGroups'

func (*UserRepositoryMock_GetGroups_Call) Return

func (*UserRepositoryMock_GetGroups_Call) Run

func (*UserRepositoryMock_GetGroups_Call) RunAndReturn

type UserRepositoryMock_GetOrCreate_Call

type UserRepositoryMock_GetOrCreate_Call struct {
	*mock.Call
}

UserRepositoryMock_GetOrCreate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOrCreate'

func (*UserRepositoryMock_GetOrCreate_Call) Return

func (*UserRepositoryMock_GetOrCreate_Call) Run

func (*UserRepositoryMock_GetOrCreate_Call) RunAndReturn

Jump to

Keyboard shortcuts

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