mocks

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 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) GetByUUID

func (_m *UserRepository) GetByUUID(ctx context.Context, uuid string) (user.User, error)

GetByUUID provides a mock function with given fields: ctx, uuid

func (*UserRepository) UpsertByEmail

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

UpsertByEmail 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) GetByUUID

func (_e *UserRepository_Expecter) GetByUUID(ctx interface{}, uuid interface{}) *UserRepository_GetByUUID_Call

GetByUUID is a helper method to define mock.On call

  • ctx context.Context
  • uuid string

func (*UserRepository_Expecter) UpsertByEmail

func (_e *UserRepository_Expecter) UpsertByEmail(ctx interface{}, u interface{}) *UserRepository_UpsertByEmail_Call

UpsertByEmail 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_GetByUUID_Call

type UserRepository_GetByUUID_Call struct {
	*mock.Call
}

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

func (*UserRepository_GetByUUID_Call) Return

func (*UserRepository_GetByUUID_Call) Run

func (*UserRepository_GetByUUID_Call) RunAndReturn added in v0.5.3

type UserRepository_UpsertByEmail_Call

type UserRepository_UpsertByEmail_Call struct {
	*mock.Call
}

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

func (*UserRepository_UpsertByEmail_Call) Return

func (*UserRepository_UpsertByEmail_Call) Run

func (*UserRepository_UpsertByEmail_Call) RunAndReturn added in v0.5.3

Jump to

Keyboard shortcuts

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