mocks

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepository

type UserRepository struct {
	mock.Mock
}

UserRepository is an autogenerated mock type for the Repository type

func NewUserRepository added in v0.5.3

func NewUserRepository(t mockConstructorTestingTNewUserRepository) *UserRepository

NewUserRepository creates a new instance of UserRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*UserRepository) Create

func (_m *UserRepository) Create(ctx context.Context, u *user.User) (string, error)

Create provides a mock function with given fields: ctx, u

func (*UserRepository) EXPECT

func (*UserRepository) GetByEmail

func (_m *UserRepository) GetByEmail(ctx context.Context, email string) (user.User, error)

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

func (*UserRepository) GetOrInsertByEmail added in v0.7.11

func (_m *UserRepository) GetOrInsertByEmail(ctx context.Context, u *user.User) (string, error)

GetOrInsertByEmail provides a mock function with given fields: ctx, u

func (*UserRepository) InsertByEmail added in v0.7.11

func (_m *UserRepository) InsertByEmail(ctx context.Context, u *user.User) (string, error)

InsertByEmail provides a mock function with given fields: ctx, u

type UserRepository_Create_Call

type UserRepository_Create_Call struct {
	*mock.Call
}

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

func (*UserRepository_Create_Call) Return

func (*UserRepository_Create_Call) Run

func (*UserRepository_Create_Call) RunAndReturn added in v0.5.3

type UserRepository_Expecter

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

func (*UserRepository_Expecter) Create

func (_e *UserRepository_Expecter) Create(ctx interface{}, u interface{}) *UserRepository_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • u *user.User

func (*UserRepository_Expecter) GetByEmail

func (_e *UserRepository_Expecter) GetByEmail(ctx interface{}, email interface{}) *UserRepository_GetByEmail_Call

GetByEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*UserRepository_Expecter) GetOrInsertByEmail added in v0.7.11

func (_e *UserRepository_Expecter) GetOrInsertByEmail(ctx interface{}, u interface{}) *UserRepository_GetOrInsertByEmail_Call

GetOrInsertByEmail is a helper method to define mock.On call

  • ctx context.Context
  • u *user.User

func (*UserRepository_Expecter) InsertByEmail added in v0.7.11

func (_e *UserRepository_Expecter) InsertByEmail(ctx interface{}, u interface{}) *UserRepository_InsertByEmail_Call

InsertByEmail is a helper method to define mock.On call

  • ctx context.Context
  • u *user.User

type UserRepository_GetByEmail_Call

type UserRepository_GetByEmail_Call struct {
	*mock.Call
}

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

func (*UserRepository_GetByEmail_Call) Return

func (*UserRepository_GetByEmail_Call) Run

func (*UserRepository_GetByEmail_Call) RunAndReturn added in v0.5.3

type UserRepository_GetOrInsertByEmail_Call added in v0.7.11

type UserRepository_GetOrInsertByEmail_Call struct {
	*mock.Call
}

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

func (*UserRepository_GetOrInsertByEmail_Call) Return added in v0.7.11

func (*UserRepository_GetOrInsertByEmail_Call) Run added in v0.7.11

func (*UserRepository_GetOrInsertByEmail_Call) RunAndReturn added in v0.7.11

type UserRepository_InsertByEmail_Call added in v0.7.11

type UserRepository_InsertByEmail_Call struct {
	*mock.Call
}

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

func (*UserRepository_InsertByEmail_Call) Return added in v0.7.11

func (*UserRepository_InsertByEmail_Call) Run added in v0.7.11

func (*UserRepository_InsertByEmail_Call) RunAndReturn added in v0.7.11

Jump to

Keyboard shortcuts

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