Documentation ¶
Index ¶
- type BannedTokenRepositoryMock
- func (_m *BannedTokenRepositoryMock) CreateOrUpdateBannedToken(ctx context.Context, bannedToken *model.BannedTokenEntity) (*model.BannedTokenEntity, error)
- func (_m *BannedTokenRepositoryMock) DeleteExpiredBannedToken(ctx context.Context) error
- func (_m *BannedTokenRepositoryMock) EXPECT() *BannedTokenRepositoryMock_Expecter
- func (_m *BannedTokenRepositoryMock) ExistsBannedTokenByJTI(ctx context.Context, jti string) (bool, error)
- type BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call
- func (_c *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) Return(_a0 *model.BannedTokenEntity, _a1 error) *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call
- func (_c *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) Run(run func(ctx context.Context, bannedToken *model.BannedTokenEntity)) *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call
- func (_c *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) RunAndReturn(...) *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call
- type BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call
- func (_c *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) Return(_a0 error) *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call
- func (_c *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) Run(run func(ctx context.Context)) *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call
- func (_c *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) RunAndReturn(run func(context.Context) error) *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call
- type BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call
- func (_c *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) Return(_a0 bool, _a1 error) *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call
- func (_c *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) Run(run func(ctx context.Context, jti string)) *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call
- func (_c *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call
- type BannedTokenRepositoryMock_Expecter
- func (_e *BannedTokenRepositoryMock_Expecter) CreateOrUpdateBannedToken(ctx interface{}, bannedToken interface{}) *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call
- func (_e *BannedTokenRepositoryMock_Expecter) DeleteExpiredBannedToken(ctx interface{}) *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call
- func (_e *BannedTokenRepositoryMock_Expecter) ExistsBannedTokenByJTI(ctx interface{}, jti interface{}) *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call
- type MasterProfileRepositoryMock
- func (_m *MasterProfileRepositoryMock) CountMasterProfiles(ctx context.Context, filter map[model.MasterProfileFilter]interface{}) (int64, error)
- func (_m *MasterProfileRepositoryMock) CreateMasterProfile(ctx context.Context, masterProfile *model.MasterProfileEntity) (*model.MasterProfileEntity, error)
- func (_m *MasterProfileRepositoryMock) EXPECT() *MasterProfileRepositoryMock_Expecter
- func (_m *MasterProfileRepositoryMock) ExistsMasterProfileByUserId(ctx context.Context, id uuid.UUID) (bool, error)
- func (_m *MasterProfileRepositoryMock) FindEnabledMasterProfileByUsername(ctx context.Context, username string) (*model.MasterProfileEntity, error)
- func (_m *MasterProfileRepositoryMock) FindMasterProfileByUserId(ctx context.Context, id uuid.UUID) (*model.MasterProfileEntity, error)
- func (_m *MasterProfileRepositoryMock) FindMasterProfiles(ctx context.Context, filter map[model.MasterProfileFilter]interface{}, ...) ([]*model.MasterProfileEntity, error)
- func (_m *MasterProfileRepositoryMock) UpdateMasterProfile(ctx context.Context, masterProfile *model.MasterProfileEntity) (*model.MasterProfileEntity, error)
- type MasterProfileRepositoryMock_CountMasterProfiles_Call
- func (_c *MasterProfileRepositoryMock_CountMasterProfiles_Call) Return(_a0 int64, _a1 error) *MasterProfileRepositoryMock_CountMasterProfiles_Call
- func (_c *MasterProfileRepositoryMock_CountMasterProfiles_Call) Run(...) *MasterProfileRepositoryMock_CountMasterProfiles_Call
- func (_c *MasterProfileRepositoryMock_CountMasterProfiles_Call) RunAndReturn(...) *MasterProfileRepositoryMock_CountMasterProfiles_Call
- type MasterProfileRepositoryMock_CreateMasterProfile_Call
- func (_c *MasterProfileRepositoryMock_CreateMasterProfile_Call) Return(_a0 *model.MasterProfileEntity, _a1 error) *MasterProfileRepositoryMock_CreateMasterProfile_Call
- func (_c *MasterProfileRepositoryMock_CreateMasterProfile_Call) Run(run func(ctx context.Context, masterProfile *model.MasterProfileEntity)) *MasterProfileRepositoryMock_CreateMasterProfile_Call
- func (_c *MasterProfileRepositoryMock_CreateMasterProfile_Call) RunAndReturn(...) *MasterProfileRepositoryMock_CreateMasterProfile_Call
- type MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call
- func (_c *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) Return(_a0 bool, _a1 error) *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call
- func (_c *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) Run(run func(ctx context.Context, id uuid.UUID)) *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call
- func (_c *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) RunAndReturn(run func(context.Context, uuid.UUID) (bool, error)) *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call
- type MasterProfileRepositoryMock_Expecter
- func (_e *MasterProfileRepositoryMock_Expecter) CountMasterProfiles(ctx interface{}, filter interface{}) *MasterProfileRepositoryMock_CountMasterProfiles_Call
- func (_e *MasterProfileRepositoryMock_Expecter) CreateMasterProfile(ctx interface{}, masterProfile interface{}) *MasterProfileRepositoryMock_CreateMasterProfile_Call
- func (_e *MasterProfileRepositoryMock_Expecter) ExistsMasterProfileByUserId(ctx interface{}, id interface{}) *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call
- func (_e *MasterProfileRepositoryMock_Expecter) FindEnabledMasterProfileByUsername(ctx interface{}, username interface{}) *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call
- func (_e *MasterProfileRepositoryMock_Expecter) FindMasterProfileByUserId(ctx interface{}, id interface{}) *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call
- func (_e *MasterProfileRepositoryMock_Expecter) FindMasterProfiles(ctx interface{}, filter interface{}, pagination interface{}, sort interface{}) *MasterProfileRepositoryMock_FindMasterProfiles_Call
- func (_e *MasterProfileRepositoryMock_Expecter) UpdateMasterProfile(ctx interface{}, masterProfile interface{}) *MasterProfileRepositoryMock_UpdateMasterProfile_Call
- type MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call
- func (_c *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) Return(_a0 *model.MasterProfileEntity, _a1 error) *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call
- func (_c *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) Run(run func(ctx context.Context, username string)) *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call
- func (_c *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) RunAndReturn(run func(context.Context, string) (*model.MasterProfileEntity, error)) *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call
- type MasterProfileRepositoryMock_FindMasterProfileByUserId_Call
- func (_c *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) Return(_a0 *model.MasterProfileEntity, _a1 error) *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call
- func (_c *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) Run(run func(ctx context.Context, id uuid.UUID)) *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call
- func (_c *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*model.MasterProfileEntity, error)) *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call
- type MasterProfileRepositoryMock_FindMasterProfiles_Call
- func (_c *MasterProfileRepositoryMock_FindMasterProfiles_Call) Return(_a0 []*model.MasterProfileEntity, _a1 error) *MasterProfileRepositoryMock_FindMasterProfiles_Call
- func (_c *MasterProfileRepositoryMock_FindMasterProfiles_Call) Run(...) *MasterProfileRepositoryMock_FindMasterProfiles_Call
- func (_c *MasterProfileRepositoryMock_FindMasterProfiles_Call) RunAndReturn(...) *MasterProfileRepositoryMock_FindMasterProfiles_Call
- type MasterProfileRepositoryMock_UpdateMasterProfile_Call
- func (_c *MasterProfileRepositoryMock_UpdateMasterProfile_Call) Return(_a0 *model.MasterProfileEntity, _a1 error) *MasterProfileRepositoryMock_UpdateMasterProfile_Call
- func (_c *MasterProfileRepositoryMock_UpdateMasterProfile_Call) Run(run func(ctx context.Context, masterProfile *model.MasterProfileEntity)) *MasterProfileRepositoryMock_UpdateMasterProfile_Call
- func (_c *MasterProfileRepositoryMock_UpdateMasterProfile_Call) RunAndReturn(...) *MasterProfileRepositoryMock_UpdateMasterProfile_Call
- type UserRepositoryMock
- func (_m *UserRepositoryMock) CreateUser(ctx context.Context, user *model.UserEntity) (*model.UserEntity, error)
- func (_m *UserRepositoryMock) DeleteExpiredUser(ctx context.Context) (*model.UserEntity, error)
- func (_m *UserRepositoryMock) EXPECT() *UserRepositoryMock_Expecter
- func (_m *UserRepositoryMock) ExistsUserByEmail(ctx context.Context, email string) (bool, error)
- func (_m *UserRepositoryMock) ExistsUserById(ctx context.Context, id uuid.UUID) (bool, error)
- func (_m *UserRepositoryMock) ExistsUserByUsername(ctx context.Context, username string) (bool, error)
- func (_m *UserRepositoryMock) ExistsUserByUsernameOrEmail(ctx context.Context, username string, email string) (bool, error)
- func (_m *UserRepositoryMock) FindUserByEmail(ctx context.Context, email string, rolePreload bool) (*model.UserEntity, error)
- func (_m *UserRepositoryMock) FindUserById(ctx context.Context, id uuid.UUID, rolePreload bool) (*model.UserEntity, error)
- func (_m *UserRepositoryMock) FindUserByUsername(ctx context.Context, username string, rolePreload bool) (*model.UserEntity, error)
- func (_m *UserRepositoryMock) FindUserByUsernameOrEmail(ctx context.Context, login string, rolePreload bool) (*model.UserEntity, error)
- func (_m *UserRepositoryMock) UpdateUser(ctx context.Context, user *model.UserEntity) (*model.UserEntity, error)
- type UserRepositoryMock_CreateUser_Call
- func (_c *UserRepositoryMock_CreateUser_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_CreateUser_Call
- func (_c *UserRepositoryMock_CreateUser_Call) Run(run func(ctx context.Context, user *model.UserEntity)) *UserRepositoryMock_CreateUser_Call
- func (_c *UserRepositoryMock_CreateUser_Call) RunAndReturn(run func(context.Context, *model.UserEntity) (*model.UserEntity, error)) *UserRepositoryMock_CreateUser_Call
- type UserRepositoryMock_DeleteExpiredUser_Call
- func (_c *UserRepositoryMock_DeleteExpiredUser_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_DeleteExpiredUser_Call
- func (_c *UserRepositoryMock_DeleteExpiredUser_Call) Run(run func(ctx context.Context)) *UserRepositoryMock_DeleteExpiredUser_Call
- func (_c *UserRepositoryMock_DeleteExpiredUser_Call) RunAndReturn(run func(context.Context) (*model.UserEntity, error)) *UserRepositoryMock_DeleteExpiredUser_Call
- type UserRepositoryMock_ExistsUserByEmail_Call
- func (_c *UserRepositoryMock_ExistsUserByEmail_Call) Return(_a0 bool, _a1 error) *UserRepositoryMock_ExistsUserByEmail_Call
- func (_c *UserRepositoryMock_ExistsUserByEmail_Call) Run(run func(ctx context.Context, email string)) *UserRepositoryMock_ExistsUserByEmail_Call
- func (_c *UserRepositoryMock_ExistsUserByEmail_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *UserRepositoryMock_ExistsUserByEmail_Call
- type UserRepositoryMock_ExistsUserById_Call
- func (_c *UserRepositoryMock_ExistsUserById_Call) Return(_a0 bool, _a1 error) *UserRepositoryMock_ExistsUserById_Call
- func (_c *UserRepositoryMock_ExistsUserById_Call) Run(run func(ctx context.Context, id uuid.UUID)) *UserRepositoryMock_ExistsUserById_Call
- func (_c *UserRepositoryMock_ExistsUserById_Call) RunAndReturn(run func(context.Context, uuid.UUID) (bool, error)) *UserRepositoryMock_ExistsUserById_Call
- type UserRepositoryMock_ExistsUserByUsernameOrEmail_Call
- func (_c *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) Return(_a0 bool, _a1 error) *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call
- func (_c *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) Run(run func(ctx context.Context, username string, email string)) *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call
- func (_c *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call
- type UserRepositoryMock_ExistsUserByUsername_Call
- func (_c *UserRepositoryMock_ExistsUserByUsername_Call) Return(_a0 bool, _a1 error) *UserRepositoryMock_ExistsUserByUsername_Call
- func (_c *UserRepositoryMock_ExistsUserByUsername_Call) Run(run func(ctx context.Context, username string)) *UserRepositoryMock_ExistsUserByUsername_Call
- func (_c *UserRepositoryMock_ExistsUserByUsername_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *UserRepositoryMock_ExistsUserByUsername_Call
- type UserRepositoryMock_Expecter
- func (_e *UserRepositoryMock_Expecter) CreateUser(ctx interface{}, user interface{}) *UserRepositoryMock_CreateUser_Call
- func (_e *UserRepositoryMock_Expecter) DeleteExpiredUser(ctx interface{}) *UserRepositoryMock_DeleteExpiredUser_Call
- func (_e *UserRepositoryMock_Expecter) ExistsUserByEmail(ctx interface{}, email interface{}) *UserRepositoryMock_ExistsUserByEmail_Call
- func (_e *UserRepositoryMock_Expecter) ExistsUserById(ctx interface{}, id interface{}) *UserRepositoryMock_ExistsUserById_Call
- func (_e *UserRepositoryMock_Expecter) ExistsUserByUsername(ctx interface{}, username interface{}) *UserRepositoryMock_ExistsUserByUsername_Call
- func (_e *UserRepositoryMock_Expecter) ExistsUserByUsernameOrEmail(ctx interface{}, username interface{}, email interface{}) *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call
- func (_e *UserRepositoryMock_Expecter) FindUserByEmail(ctx interface{}, email interface{}, rolePreload interface{}) *UserRepositoryMock_FindUserByEmail_Call
- func (_e *UserRepositoryMock_Expecter) FindUserById(ctx interface{}, id interface{}, rolePreload interface{}) *UserRepositoryMock_FindUserById_Call
- func (_e *UserRepositoryMock_Expecter) FindUserByUsername(ctx interface{}, username interface{}, rolePreload interface{}) *UserRepositoryMock_FindUserByUsername_Call
- func (_e *UserRepositoryMock_Expecter) FindUserByUsernameOrEmail(ctx interface{}, login interface{}, rolePreload interface{}) *UserRepositoryMock_FindUserByUsernameOrEmail_Call
- func (_e *UserRepositoryMock_Expecter) UpdateUser(ctx interface{}, user interface{}) *UserRepositoryMock_UpdateUser_Call
- type UserRepositoryMock_FindUserByEmail_Call
- func (_c *UserRepositoryMock_FindUserByEmail_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_FindUserByEmail_Call
- func (_c *UserRepositoryMock_FindUserByEmail_Call) Run(run func(ctx context.Context, email string, rolePreload bool)) *UserRepositoryMock_FindUserByEmail_Call
- func (_c *UserRepositoryMock_FindUserByEmail_Call) RunAndReturn(run func(context.Context, string, bool) (*model.UserEntity, error)) *UserRepositoryMock_FindUserByEmail_Call
- type UserRepositoryMock_FindUserById_Call
- func (_c *UserRepositoryMock_FindUserById_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_FindUserById_Call
- func (_c *UserRepositoryMock_FindUserById_Call) Run(run func(ctx context.Context, id uuid.UUID, rolePreload bool)) *UserRepositoryMock_FindUserById_Call
- func (_c *UserRepositoryMock_FindUserById_Call) RunAndReturn(run func(context.Context, uuid.UUID, bool) (*model.UserEntity, error)) *UserRepositoryMock_FindUserById_Call
- type UserRepositoryMock_FindUserByUsernameOrEmail_Call
- func (_c *UserRepositoryMock_FindUserByUsernameOrEmail_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_FindUserByUsernameOrEmail_Call
- func (_c *UserRepositoryMock_FindUserByUsernameOrEmail_Call) Run(run func(ctx context.Context, login string, rolePreload bool)) *UserRepositoryMock_FindUserByUsernameOrEmail_Call
- func (_c *UserRepositoryMock_FindUserByUsernameOrEmail_Call) RunAndReturn(run func(context.Context, string, bool) (*model.UserEntity, error)) *UserRepositoryMock_FindUserByUsernameOrEmail_Call
- type UserRepositoryMock_FindUserByUsername_Call
- func (_c *UserRepositoryMock_FindUserByUsername_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_FindUserByUsername_Call
- func (_c *UserRepositoryMock_FindUserByUsername_Call) Run(run func(ctx context.Context, username string, rolePreload bool)) *UserRepositoryMock_FindUserByUsername_Call
- func (_c *UserRepositoryMock_FindUserByUsername_Call) RunAndReturn(run func(context.Context, string, bool) (*model.UserEntity, error)) *UserRepositoryMock_FindUserByUsername_Call
- type UserRepositoryMock_UpdateUser_Call
- func (_c *UserRepositoryMock_UpdateUser_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_UpdateUser_Call
- func (_c *UserRepositoryMock_UpdateUser_Call) Run(run func(ctx context.Context, user *model.UserEntity)) *UserRepositoryMock_UpdateUser_Call
- func (_c *UserRepositoryMock_UpdateUser_Call) RunAndReturn(run func(context.Context, *model.UserEntity) (*model.UserEntity, error)) *UserRepositoryMock_UpdateUser_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BannedTokenRepositoryMock ¶
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 (_m *BannedTokenRepositoryMock) EXPECT() *BannedTokenRepositoryMock_Expecter
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 ¶
BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateOrUpdateBannedToken'
func (*BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) Run ¶
func (_c *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) Run(run func(ctx context.Context, bannedToken *model.BannedTokenEntity)) *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call
func (*BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) RunAndReturn ¶
func (_c *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call) RunAndReturn(run func(context.Context, *model.BannedTokenEntity) (*model.BannedTokenEntity, error)) *BannedTokenRepositoryMock_CreateOrUpdateBannedToken_Call
type BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call ¶
BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteExpiredBannedToken'
func (*BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) Run ¶
func (_c *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) Run(run func(ctx context.Context)) *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call
func (*BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) RunAndReturn ¶
func (_c *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call) RunAndReturn(run func(context.Context) error) *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call
type BannedTokenRepositoryMock_ExistsBannedTokenByJTI_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 (_c *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) Return(_a0 bool, _a1 error) *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call
func (*BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) Run ¶
func (_c *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) Run(run func(ctx context.Context, jti string)) *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call
func (*BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) RunAndReturn ¶
func (_c *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *BannedTokenRepositoryMock_ExistsBannedTokenByJTI_Call
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 ¶
func (_e *BannedTokenRepositoryMock_Expecter) DeleteExpiredBannedToken(ctx interface{}) *BannedTokenRepositoryMock_DeleteExpiredBannedToken_Call
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 ¶
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 (_m *MasterProfileRepositoryMock) EXPECT() *MasterProfileRepositoryMock_Expecter
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 ¶
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 (_c *MasterProfileRepositoryMock_CountMasterProfiles_Call) Return(_a0 int64, _a1 error) *MasterProfileRepositoryMock_CountMasterProfiles_Call
func (*MasterProfileRepositoryMock_CountMasterProfiles_Call) Run ¶
func (_c *MasterProfileRepositoryMock_CountMasterProfiles_Call) Run(run func(ctx context.Context, filter map[model.MasterProfileFilter]interface{})) *MasterProfileRepositoryMock_CountMasterProfiles_Call
func (*MasterProfileRepositoryMock_CountMasterProfiles_Call) RunAndReturn ¶
func (_c *MasterProfileRepositoryMock_CountMasterProfiles_Call) RunAndReturn(run func(context.Context, map[model.MasterProfileFilter]interface{}) (int64, error)) *MasterProfileRepositoryMock_CountMasterProfiles_Call
type MasterProfileRepositoryMock_CreateMasterProfile_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 (_c *MasterProfileRepositoryMock_CreateMasterProfile_Call) Return(_a0 *model.MasterProfileEntity, _a1 error) *MasterProfileRepositoryMock_CreateMasterProfile_Call
func (*MasterProfileRepositoryMock_CreateMasterProfile_Call) Run ¶
func (_c *MasterProfileRepositoryMock_CreateMasterProfile_Call) Run(run func(ctx context.Context, masterProfile *model.MasterProfileEntity)) *MasterProfileRepositoryMock_CreateMasterProfile_Call
func (*MasterProfileRepositoryMock_CreateMasterProfile_Call) RunAndReturn ¶
func (_c *MasterProfileRepositoryMock_CreateMasterProfile_Call) RunAndReturn(run func(context.Context, *model.MasterProfileEntity) (*model.MasterProfileEntity, error)) *MasterProfileRepositoryMock_CreateMasterProfile_Call
type MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call ¶
MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExistsMasterProfileByUserId'
func (*MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) Run ¶
func (_c *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) Run(run func(ctx context.Context, id uuid.UUID)) *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call
func (*MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) RunAndReturn ¶
func (_c *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call) RunAndReturn(run func(context.Context, uuid.UUID) (bool, error)) *MasterProfileRepositoryMock_ExistsMasterProfileByUserId_Call
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 ¶
MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindEnabledMasterProfileByUsername'
func (*MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) Run ¶
func (_c *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) Run(run func(ctx context.Context, username string)) *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call
func (*MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) RunAndReturn ¶
func (_c *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call) RunAndReturn(run func(context.Context, string) (*model.MasterProfileEntity, error)) *MasterProfileRepositoryMock_FindEnabledMasterProfileByUsername_Call
type MasterProfileRepositoryMock_FindMasterProfileByUserId_Call ¶
MasterProfileRepositoryMock_FindMasterProfileByUserId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindMasterProfileByUserId'
func (*MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) Run ¶
func (_c *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) Run(run func(ctx context.Context, id uuid.UUID)) *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call
func (*MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) RunAndReturn ¶
func (_c *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*model.MasterProfileEntity, error)) *MasterProfileRepositoryMock_FindMasterProfileByUserId_Call
type MasterProfileRepositoryMock_FindMasterProfiles_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 (_c *MasterProfileRepositoryMock_FindMasterProfiles_Call) Return(_a0 []*model.MasterProfileEntity, _a1 error) *MasterProfileRepositoryMock_FindMasterProfiles_Call
func (*MasterProfileRepositoryMock_FindMasterProfiles_Call) Run ¶
func (_c *MasterProfileRepositoryMock_FindMasterProfiles_Call) Run(run func(ctx context.Context, filter map[model.MasterProfileFilter]interface{}, pagination *model.Pagination, sort []*model.Sort)) *MasterProfileRepositoryMock_FindMasterProfiles_Call
func (*MasterProfileRepositoryMock_FindMasterProfiles_Call) RunAndReturn ¶
func (_c *MasterProfileRepositoryMock_FindMasterProfiles_Call) RunAndReturn(run func(context.Context, map[model.MasterProfileFilter]interface{}, *model.Pagination, []*model.Sort) ([]*model.MasterProfileEntity, error)) *MasterProfileRepositoryMock_FindMasterProfiles_Call
type MasterProfileRepositoryMock_UpdateMasterProfile_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 (_c *MasterProfileRepositoryMock_UpdateMasterProfile_Call) Return(_a0 *model.MasterProfileEntity, _a1 error) *MasterProfileRepositoryMock_UpdateMasterProfile_Call
func (*MasterProfileRepositoryMock_UpdateMasterProfile_Call) Run ¶
func (_c *MasterProfileRepositoryMock_UpdateMasterProfile_Call) Run(run func(ctx context.Context, masterProfile *model.MasterProfileEntity)) *MasterProfileRepositoryMock_UpdateMasterProfile_Call
func (*MasterProfileRepositoryMock_UpdateMasterProfile_Call) RunAndReturn ¶
func (_c *MasterProfileRepositoryMock_UpdateMasterProfile_Call) RunAndReturn(run func(context.Context, *model.MasterProfileEntity) (*model.MasterProfileEntity, error)) *MasterProfileRepositoryMock_UpdateMasterProfile_Call
type UserRepositoryMock ¶
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 (_m *UserRepositoryMock) EXPECT() *UserRepositoryMock_Expecter
func (*UserRepositoryMock) ExistsUserByEmail ¶
ExistsUserByEmail provides a mock function with given fields: ctx, email
func (*UserRepositoryMock) ExistsUserById ¶
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 ¶
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 (_c *UserRepositoryMock_CreateUser_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_CreateUser_Call
func (*UserRepositoryMock_CreateUser_Call) Run ¶
func (_c *UserRepositoryMock_CreateUser_Call) Run(run func(ctx context.Context, user *model.UserEntity)) *UserRepositoryMock_CreateUser_Call
func (*UserRepositoryMock_CreateUser_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_CreateUser_Call) RunAndReturn(run func(context.Context, *model.UserEntity) (*model.UserEntity, error)) *UserRepositoryMock_CreateUser_Call
type UserRepositoryMock_DeleteExpiredUser_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 (_c *UserRepositoryMock_DeleteExpiredUser_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_DeleteExpiredUser_Call
func (*UserRepositoryMock_DeleteExpiredUser_Call) Run ¶
func (_c *UserRepositoryMock_DeleteExpiredUser_Call) Run(run func(ctx context.Context)) *UserRepositoryMock_DeleteExpiredUser_Call
func (*UserRepositoryMock_DeleteExpiredUser_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_DeleteExpiredUser_Call) RunAndReturn(run func(context.Context) (*model.UserEntity, error)) *UserRepositoryMock_DeleteExpiredUser_Call
type UserRepositoryMock_ExistsUserByEmail_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 (_c *UserRepositoryMock_ExistsUserByEmail_Call) Return(_a0 bool, _a1 error) *UserRepositoryMock_ExistsUserByEmail_Call
func (*UserRepositoryMock_ExistsUserByEmail_Call) Run ¶
func (_c *UserRepositoryMock_ExistsUserByEmail_Call) Run(run func(ctx context.Context, email string)) *UserRepositoryMock_ExistsUserByEmail_Call
func (*UserRepositoryMock_ExistsUserByEmail_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_ExistsUserByEmail_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *UserRepositoryMock_ExistsUserByEmail_Call
type UserRepositoryMock_ExistsUserById_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 (_c *UserRepositoryMock_ExistsUserById_Call) Return(_a0 bool, _a1 error) *UserRepositoryMock_ExistsUserById_Call
func (*UserRepositoryMock_ExistsUserById_Call) Run ¶
func (_c *UserRepositoryMock_ExistsUserById_Call) Run(run func(ctx context.Context, id uuid.UUID)) *UserRepositoryMock_ExistsUserById_Call
func (*UserRepositoryMock_ExistsUserById_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_ExistsUserById_Call) RunAndReturn(run func(context.Context, uuid.UUID) (bool, error)) *UserRepositoryMock_ExistsUserById_Call
type UserRepositoryMock_ExistsUserByUsernameOrEmail_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 (_c *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) Return(_a0 bool, _a1 error) *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call
func (*UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) Run ¶
func (_c *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) Run(run func(ctx context.Context, username string, email string)) *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call
func (*UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call) RunAndReturn(run func(context.Context, string, string) (bool, error)) *UserRepositoryMock_ExistsUserByUsernameOrEmail_Call
type UserRepositoryMock_ExistsUserByUsername_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 (_c *UserRepositoryMock_ExistsUserByUsername_Call) Return(_a0 bool, _a1 error) *UserRepositoryMock_ExistsUserByUsername_Call
func (*UserRepositoryMock_ExistsUserByUsername_Call) Run ¶
func (_c *UserRepositoryMock_ExistsUserByUsername_Call) Run(run func(ctx context.Context, username string)) *UserRepositoryMock_ExistsUserByUsername_Call
func (*UserRepositoryMock_ExistsUserByUsername_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_ExistsUserByUsername_Call) RunAndReturn(run func(context.Context, string) (bool, error)) *UserRepositoryMock_ExistsUserByUsername_Call
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 ¶
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 (_c *UserRepositoryMock_FindUserByEmail_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_FindUserByEmail_Call
func (*UserRepositoryMock_FindUserByEmail_Call) Run ¶
func (_c *UserRepositoryMock_FindUserByEmail_Call) Run(run func(ctx context.Context, email string, rolePreload bool)) *UserRepositoryMock_FindUserByEmail_Call
func (*UserRepositoryMock_FindUserByEmail_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_FindUserByEmail_Call) RunAndReturn(run func(context.Context, string, bool) (*model.UserEntity, error)) *UserRepositoryMock_FindUserByEmail_Call
type UserRepositoryMock_FindUserById_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 (_c *UserRepositoryMock_FindUserById_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_FindUserById_Call
func (*UserRepositoryMock_FindUserById_Call) Run ¶
func (_c *UserRepositoryMock_FindUserById_Call) Run(run func(ctx context.Context, id uuid.UUID, rolePreload bool)) *UserRepositoryMock_FindUserById_Call
func (*UserRepositoryMock_FindUserById_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_FindUserById_Call) RunAndReturn(run func(context.Context, uuid.UUID, bool) (*model.UserEntity, error)) *UserRepositoryMock_FindUserById_Call
type UserRepositoryMock_FindUserByUsernameOrEmail_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 (_c *UserRepositoryMock_FindUserByUsernameOrEmail_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_FindUserByUsernameOrEmail_Call
func (*UserRepositoryMock_FindUserByUsernameOrEmail_Call) Run ¶
func (_c *UserRepositoryMock_FindUserByUsernameOrEmail_Call) Run(run func(ctx context.Context, login string, rolePreload bool)) *UserRepositoryMock_FindUserByUsernameOrEmail_Call
func (*UserRepositoryMock_FindUserByUsernameOrEmail_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_FindUserByUsernameOrEmail_Call) RunAndReturn(run func(context.Context, string, bool) (*model.UserEntity, error)) *UserRepositoryMock_FindUserByUsernameOrEmail_Call
type UserRepositoryMock_FindUserByUsername_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 (_c *UserRepositoryMock_FindUserByUsername_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_FindUserByUsername_Call
func (*UserRepositoryMock_FindUserByUsername_Call) Run ¶
func (_c *UserRepositoryMock_FindUserByUsername_Call) Run(run func(ctx context.Context, username string, rolePreload bool)) *UserRepositoryMock_FindUserByUsername_Call
func (*UserRepositoryMock_FindUserByUsername_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_FindUserByUsername_Call) RunAndReturn(run func(context.Context, string, bool) (*model.UserEntity, error)) *UserRepositoryMock_FindUserByUsername_Call
type UserRepositoryMock_UpdateUser_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 (_c *UserRepositoryMock_UpdateUser_Call) Return(_a0 *model.UserEntity, _a1 error) *UserRepositoryMock_UpdateUser_Call
func (*UserRepositoryMock_UpdateUser_Call) Run ¶
func (_c *UserRepositoryMock_UpdateUser_Call) Run(run func(ctx context.Context, user *model.UserEntity)) *UserRepositoryMock_UpdateUser_Call
func (*UserRepositoryMock_UpdateUser_Call) RunAndReturn ¶
func (_c *UserRepositoryMock_UpdateUser_Call) RunAndReturn(run func(context.Context, *model.UserEntity) (*model.UserEntity, error)) *UserRepositoryMock_UpdateUser_Call