mock

package
v0.0.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BannedTokenRepositoryMock

type BannedTokenRepositoryMock struct {
	mock.Mock
}

BannedTokenRepositoryMock is an autogenerated mock type for the BannedTokenRepository type

func NewBannedTokenRepositoryMock

func NewBannedTokenRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *BannedTokenRepositoryMock

NewBannedTokenRepositoryMock creates a new instance of BannedTokenRepositoryMock. 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 (*BannedTokenRepositoryMock) CreateOrUpdateBannedToken

func (_m *BannedTokenRepositoryMock) CreateOrUpdateBannedToken(ctx context.Context, bannedToken *model.BannedTokenEntity) (*model.BannedTokenEntity, error)

CreateOrUpdateBannedToken provides a mock function with given fields: ctx, bannedToken

func (*BannedTokenRepositoryMock) DeleteExpiredBannedToken

func (_m *BannedTokenRepositoryMock) DeleteExpiredBannedToken(ctx context.Context) error

DeleteExpiredBannedToken provides a mock function with given fields: ctx

func (*BannedTokenRepositoryMock) EXPECT

func (*BannedTokenRepositoryMock) ExistsBannedTokenByJTI

func (_m *BannedTokenRepositoryMock) ExistsBannedTokenByJTI(ctx context.Context, jti string) (bool, error)

ExistsBannedTokenByJTI provides a mock function with given fields: ctx, jti

type BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call

type BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call struct {
	*mock.Call
}

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

func (*BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) Return

func (*BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) Run

type BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call

type BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call struct {
	*mock.Call
}

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

func (*BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) Return

func (*BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) Run

func (*BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) RunAndReturn

type BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call

type BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call struct {
	*mock.Call
}

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

func (*BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) Return

func (*BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) Run

func (*BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) RunAndReturn

type BannedTokenRepositoryMock_Expecter

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

func (*BannedTokenRepositoryMock_Expecter) CreateOrUpdateBannedToken

func (_e *BannedTokenRepositoryMock_Expecter) CreateOrUpdateBannedToken(ctx interface{}, bannedToken interface{}) *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call

CreateOrUpdateBannedToken is a helper method to define mock.On call

  • ctx context.Context
  • bannedToken *model.BannedTokenEntity

func (*BannedTokenRepositoryMock_Expecter) DeleteExpiredBannedToken

DeleteExpiredBannedToken is a helper method to define mock.On call

  • ctx context.Context

func (*BannedTokenRepositoryMock_Expecter) ExistsBannedTokenByJTI

func (_e *BannedTokenRepositoryMock_Expecter) ExistsBannedTokenByJTI(ctx interface{}, jti interface{}) *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call

ExistsBannedTokenByJTI is a helper method to define mock.On call

  • ctx context.Context
  • jti string

type MasterProfileRepositoryMock

type MasterProfileRepositoryMock struct {
	mock.Mock
}

MasterProfileRepositoryMock is an autogenerated mock type for the MasterProfileRepository type

func NewMasterProfileRepositoryMock

func NewMasterProfileRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *MasterProfileRepositoryMock

NewMasterProfileRepositoryMock creates a new instance of MasterProfileRepositoryMock. 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 (*MasterProfileRepositoryMock) CountMasterProfiles

func (_m *MasterProfileRepositoryMock) CountMasterProfiles(ctx context.Context, filter map[model.MasterProfileFilter]interface{}) (int64, error)

CountMasterProfiles provides a mock function with given fields: ctx, filter

func (*MasterProfileRepositoryMock) CreateMasterProfile

func (_m *MasterProfileRepositoryMock) CreateMasterProfile(ctx context.Context, masterProfile *model.MasterProfileEntity) (*model.MasterProfileEntity, error)

CreateMasterProfile provides a mock function with given fields: ctx, masterProfile

func (*MasterProfileRepositoryMock) EXPECT

func (*MasterProfileRepositoryMock) ExistsMasterProfileByUserId

func (_m *MasterProfileRepositoryMock) ExistsMasterProfileByUserId(ctx context.Context, id uuid.UUID) (bool, error)

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

func (*MasterProfileRepositoryMock) FindEnabledMasterProfileByUsername

func (_m *MasterProfileRepositoryMock) FindEnabledMasterProfileByUsername(ctx context.Context, username string) (*model.MasterProfileEntity, error)

FindEnabledMasterProfileByUsername provides a mock function with given fields: ctx, username

func (*MasterProfileRepositoryMock) FindMasterProfileByUserId

func (_m *MasterProfileRepositoryMock) FindMasterProfileByUserId(ctx context.Context, id uuid.UUID) (*model.MasterProfileEntity, error)

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

func (*MasterProfileRepositoryMock) FindMasterProfiles

func (_m *MasterProfileRepositoryMock) FindMasterProfiles(ctx context.Context, filter map[model.MasterProfileFilter]interface{}, pagination *model.Pagination, sort []*model.Sort) ([]*model.MasterProfileEntity, error)

FindMasterProfiles provides a mock function with given fields: ctx, filter, pagination, sort

func (*MasterProfileRepositoryMock) UpdateMasterProfile

func (_m *MasterProfileRepositoryMock) UpdateMasterProfile(ctx context.Context, masterProfile *model.MasterProfileEntity) (*model.MasterProfileEntity, error)

UpdateMasterProfile provides a mock function with given fields: ctx, masterProfile

type MasterProfileRepositoryMock_CountMasterProfiles_Call

type MasterProfileRepositoryMock_CountMasterProfiles_Call struct {
	*mock.Call
}

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

func (*MasterProfileRepositoryMock_CountMasterProfiles_Call) Return

func (*MasterProfileRepositoryMock_CountMasterProfiles_Call) Run

func (*MasterProfileRepositoryMock_CountMasterProfiles_Call) RunAndReturn

type MasterProfileRepositoryMock_CreateMasterProfile_Call

type MasterProfileRepositoryMock_CreateMasterProfile_Call struct {
	*mock.Call
}

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

func (*MasterProfileRepositoryMock_CreateMasterProfile_Call) Return

func (*MasterProfileRepositoryMock_CreateMasterProfile_Call) Run

type MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call

type MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call struct {
	*mock.Call
}

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

func (*MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) Return

func (*MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) Run

func (*MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) RunAndReturn

type MasterProfileRepositoryMock_Expecter

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

func (*MasterProfileRepositoryMock_Expecter) CountMasterProfiles

func (_e *MasterProfileRepositoryMock_Expecter) CountMasterProfiles(ctx interface{}, filter interface{}) *MasterProfileRepositoryMock_CountMasterProfiles_Call

CountMasterProfiles is a helper method to define mock.On call

  • ctx context.Context
  • filter map[model.MasterProfileFilter]interface{}

func (*MasterProfileRepositoryMock_Expecter) CreateMasterProfile

func (_e *MasterProfileRepositoryMock_Expecter) CreateMasterProfile(ctx interface{}, masterProfile interface{}) *MasterProfileRepositoryMock_CreateMasterProfile_Call

CreateMasterProfile is a helper method to define mock.On call

  • ctx context.Context
  • masterProfile *model.MasterProfileEntity

func (*MasterProfileRepositoryMock_Expecter) ExistsMasterProfileByUserId

func (_e *MasterProfileRepositoryMock_Expecter) ExistsMasterProfileByUserId(ctx interface{}, id interface{}) *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call

ExistsMasterProfileByUserId is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*MasterProfileRepositoryMock_Expecter) FindEnabledMasterProfileByUsername

func (_e *MasterProfileRepositoryMock_Expecter) FindEnabledMasterProfileByUsername(ctx interface{}, username interface{}) *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call

FindEnabledMasterProfileByUsername is a helper method to define mock.On call

  • ctx context.Context
  • username string

func (*MasterProfileRepositoryMock_Expecter) FindMasterProfileByUserId

func (_e *MasterProfileRepositoryMock_Expecter) FindMasterProfileByUserId(ctx interface{}, id interface{}) *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call

FindMasterProfileByUserId is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*MasterProfileRepositoryMock_Expecter) FindMasterProfiles

func (_e *MasterProfileRepositoryMock_Expecter) FindMasterProfiles(ctx interface{}, filter interface{}, pagination interface{}, sort interface{}) *MasterProfileRepositoryMock_FindMasterProfiles_Call

FindMasterProfiles is a helper method to define mock.On call

  • ctx context.Context
  • filter map[model.MasterProfileFilter]interface{}
  • pagination *model.Pagination
  • sort []*model.Sort

func (*MasterProfileRepositoryMock_Expecter) UpdateMasterProfile

func (_e *MasterProfileRepositoryMock_Expecter) UpdateMasterProfile(ctx interface{}, masterProfile interface{}) *MasterProfileRepositoryMock_UpdateMasterProfile_Call

UpdateMasterProfile is a helper method to define mock.On call

  • ctx context.Context
  • masterProfile *model.MasterProfileEntity

type MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call

type MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call struct {
	*mock.Call
}

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

func (*MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) Return

func (*MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) Run

type MasterProfileRepositoryMock_FindMasterProfileByUserId_Call

type MasterProfileRepositoryMock_FindMasterProfileByUserId_Call struct {
	*mock.Call
}

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

func (*MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) Return

func (*MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) Run

type MasterProfileRepositoryMock_FindMasterProfiles_Call

type MasterProfileRepositoryMock_FindMasterProfiles_Call struct {
	*mock.Call
}

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

func (*MasterProfileRepositoryMock_FindMasterProfiles_Call) Return

func (*MasterProfileRepositoryMock_FindMasterProfiles_Call) Run

func (*MasterProfileRepositoryMock_FindMasterProfiles_Call) RunAndReturn

type MasterProfileRepositoryMock_UpdateMasterProfile_Call

type MasterProfileRepositoryMock_UpdateMasterProfile_Call struct {
	*mock.Call
}

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

func (*MasterProfileRepositoryMock_UpdateMasterProfile_Call) Return

func (*MasterProfileRepositoryMock_UpdateMasterProfile_Call) Run

type UserRepositoryMock

type UserRepositoryMock struct {
	mock.Mock
}

UserRepositoryMock is an autogenerated mock type for the UserRepository 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) CreateUser

func (_m *UserRepositoryMock) CreateUser(ctx context.Context, user *model.UserEntity) (*model.UserEntity, error)

CreateUser provides a mock function with given fields: ctx, user

func (*UserRepositoryMock) DeleteExpiredUser

func (_m *UserRepositoryMock) DeleteExpiredUser(ctx context.Context) (*model.UserEntity, error)

DeleteExpiredUser provides a mock function with given fields: ctx

func (*UserRepositoryMock) EXPECT

func (*UserRepositoryMock) ExistsUserByEmail

func (_m *UserRepositoryMock) ExistsUserByEmail(ctx context.Context, email string) (bool, error)

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

func (*UserRepositoryMock) ExistsUserById

func (_m *UserRepositoryMock) ExistsUserById(ctx context.Context, id uuid.UUID) (bool, error)

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

func (*UserRepositoryMock) ExistsUserByUsername

func (_m *UserRepositoryMock) ExistsUserByUsername(ctx context.Context, username string) (bool, error)

ExistsUserByUsername provides a mock function with given fields: ctx, username

func (*UserRepositoryMock) ExistsUserByUsernameOrEmail

func (_m *UserRepositoryMock) ExistsUserByUsernameOrEmail(ctx context.Context, username string, email string) (bool, error)

ExistsUserByUsernameOrEmail provides a mock function with given fields: ctx, username, email

func (*UserRepositoryMock) FindUserByEmail

func (_m *UserRepositoryMock) FindUserByEmail(ctx context.Context, email string, rolePreload bool) (*model.UserEntity, error)

FindUserByEmail provides a mock function with given fields: ctx, email, rolePreload

func (*UserRepositoryMock) FindUserById

func (_m *UserRepositoryMock) FindUserById(ctx context.Context, id uuid.UUID, rolePreload bool) (*model.UserEntity, error)

FindUserById provides a mock function with given fields: ctx, id, rolePreload

func (*UserRepositoryMock) FindUserByUsername

func (_m *UserRepositoryMock) FindUserByUsername(ctx context.Context, username string, rolePreload bool) (*model.UserEntity, error)

FindUserByUsername provides a mock function with given fields: ctx, username, rolePreload

func (*UserRepositoryMock) FindUserByUsernameOrEmail

func (_m *UserRepositoryMock) FindUserByUsernameOrEmail(ctx context.Context, login string, rolePreload bool) (*model.UserEntity, error)

FindUserByUsernameOrEmail provides a mock function with given fields: ctx, login, rolePreload

func (*UserRepositoryMock) UpdateUser

func (_m *UserRepositoryMock) UpdateUser(ctx context.Context, user *model.UserEntity) (*model.UserEntity, error)

UpdateUser provides a mock function with given fields: ctx, user

type UserRepositoryMock_CreateUser_Call

type UserRepositoryMock_CreateUser_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_CreateUser_Call) Return

func (*UserRepositoryMock_CreateUser_Call) Run

func (*UserRepositoryMock_CreateUser_Call) RunAndReturn

type UserRepositoryMock_DeleteExpiredUser_Call

type UserRepositoryMock_DeleteExpiredUser_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_DeleteExpiredUser_Call) Return

func (*UserRepositoryMock_DeleteExpiredUser_Call) Run

func (*UserRepositoryMock_DeleteExpiredUser_Call) RunAndReturn

type UserRepositoryMock_ExistsUserByEmail_Call

type UserRepositoryMock_ExistsUserByEmail_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_ExistsUserByEmail_Call) Return

func (*UserRepositoryMock_ExistsUserByEmail_Call) Run

func (*UserRepositoryMock_ExistsUserByEmail_Call) RunAndReturn

type UserRepositoryMock_ExistsUserById_Call

type UserRepositoryMock_ExistsUserById_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_ExistsUserById_Call) Return

func (*UserRepositoryMock_ExistsUserById_Call) Run

func (*UserRepositoryMock_ExistsUserById_Call) RunAndReturn

type UserRepositoryMock_ExistsUserByUsernameOrEmail_Call

type UserRepositoryMock_ExistsUserByUsernameOrEmail_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) Return

func (*UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) Run

func (*UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) RunAndReturn

type UserRepositoryMock_ExistsUserByUsername_Call

type UserRepositoryMock_ExistsUserByUsername_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_ExistsUserByUsername_Call) Return

func (*UserRepositoryMock_ExistsUserByUsername_Call) Run

func (*UserRepositoryMock_ExistsUserByUsername_Call) RunAndReturn

type UserRepositoryMock_Expecter

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

func (*UserRepositoryMock_Expecter) CreateUser

func (_e *UserRepositoryMock_Expecter) CreateUser(ctx interface{}, user interface{}) *UserRepositoryMock_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • user *model.UserEntity

func (*UserRepositoryMock_Expecter) DeleteExpiredUser

func (_e *UserRepositoryMock_Expecter) DeleteExpiredUser(ctx interface{}) *UserRepositoryMock_DeleteExpiredUser_Call

DeleteExpiredUser is a helper method to define mock.On call

  • ctx context.Context

func (*UserRepositoryMock_Expecter) ExistsUserByEmail

func (_e *UserRepositoryMock_Expecter) ExistsUserByEmail(ctx interface{}, email interface{}) *UserRepositoryMock_ExistsUserByEmail_Call

ExistsUserByEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*UserRepositoryMock_Expecter) ExistsUserById

func (_e *UserRepositoryMock_Expecter) ExistsUserById(ctx interface{}, id interface{}) *UserRepositoryMock_ExistsUserById_Call

ExistsUserById is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*UserRepositoryMock_Expecter) ExistsUserByUsername

func (_e *UserRepositoryMock_Expecter) ExistsUserByUsername(ctx interface{}, username interface{}) *UserRepositoryMock_ExistsUserByUsername_Call

ExistsUserByUsername is a helper method to define mock.On call

  • ctx context.Context
  • username string

func (*UserRepositoryMock_Expecter) ExistsUserByUsernameOrEmail

func (_e *UserRepositoryMock_Expecter) ExistsUserByUsernameOrEmail(ctx interface{}, username interface{}, email interface{}) *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call

ExistsUserByUsernameOrEmail is a helper method to define mock.On call

  • ctx context.Context
  • username string
  • email string

func (*UserRepositoryMock_Expecter) FindUserByEmail

func (_e *UserRepositoryMock_Expecter) FindUserByEmail(ctx interface{}, email interface{}, rolePreload interface{}) *UserRepositoryMock_FindUserByEmail_Call

FindUserByEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string
  • rolePreload bool

func (*UserRepositoryMock_Expecter) FindUserById

func (_e *UserRepositoryMock_Expecter) FindUserById(ctx interface{}, id interface{}, rolePreload interface{}) *UserRepositoryMock_FindUserById_Call

FindUserById is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID
  • rolePreload bool

func (*UserRepositoryMock_Expecter) FindUserByUsername

func (_e *UserRepositoryMock_Expecter) FindUserByUsername(ctx interface{}, username interface{}, rolePreload interface{}) *UserRepositoryMock_FindUserByUsername_Call

FindUserByUsername is a helper method to define mock.On call

  • ctx context.Context
  • username string
  • rolePreload bool

func (*UserRepositoryMock_Expecter) FindUserByUsernameOrEmail

func (_e *UserRepositoryMock_Expecter) FindUserByUsernameOrEmail(ctx interface{}, login interface{}, rolePreload interface{}) *UserRepositoryMock_FindUserByUsernameOrEmail_Call

FindUserByUsernameOrEmail is a helper method to define mock.On call

  • ctx context.Context
  • login string
  • rolePreload bool

func (*UserRepositoryMock_Expecter) UpdateUser

func (_e *UserRepositoryMock_Expecter) UpdateUser(ctx interface{}, user interface{}) *UserRepositoryMock_UpdateUser_Call

UpdateUser is a helper method to define mock.On call

  • ctx context.Context
  • user *model.UserEntity

type UserRepositoryMock_FindUserByEmail_Call

type UserRepositoryMock_FindUserByEmail_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_FindUserByEmail_Call) Return

func (*UserRepositoryMock_FindUserByEmail_Call) Run

func (*UserRepositoryMock_FindUserByEmail_Call) RunAndReturn

type UserRepositoryMock_FindUserById_Call

type UserRepositoryMock_FindUserById_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_FindUserById_Call) Return

func (*UserRepositoryMock_FindUserById_Call) Run

func (*UserRepositoryMock_FindUserById_Call) RunAndReturn

type UserRepositoryMock_FindUserByUsernameOrEmail_Call

type UserRepositoryMock_FindUserByUsernameOrEmail_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_FindUserByUsernameOrEmail_Call) Return

func (*UserRepositoryMock_FindUserByUsernameOrEmail_Call) Run

func (*UserRepositoryMock_FindUserByUsernameOrEmail_Call) RunAndReturn

type UserRepositoryMock_FindUserByUsername_Call

type UserRepositoryMock_FindUserByUsername_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_FindUserByUsername_Call) Return

func (*UserRepositoryMock_FindUserByUsername_Call) Run

func (*UserRepositoryMock_FindUserByUsername_Call) RunAndReturn

type UserRepositoryMock_UpdateUser_Call

type UserRepositoryMock_UpdateUser_Call struct {
	*mock.Call
}

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

func (*UserRepositoryMock_UpdateUser_Call) Return

func (*UserRepositoryMock_UpdateUser_Call) Run

func (*UserRepositoryMock_UpdateUser_Call) RunAndReturn

Jump to

Keyboard shortcuts

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