mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 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 MockAccountDeletionServiceInterface

type MockAccountDeletionServiceInterface struct {
	mock.Mock
}

MockAccountDeletionServiceInterface is an autogenerated mock type for the AccountDeletionServiceInterface type

func NewMockAccountDeletionServiceInterface

func NewMockAccountDeletionServiceInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAccountDeletionServiceInterface

NewMockAccountDeletionServiceInterface creates a new instance of MockAccountDeletionServiceInterface. 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 (*MockAccountDeletionServiceInterface) DeleteAccount

func (_mock *MockAccountDeletionServiceInterface) DeleteAccount(ctx context.Context, userID int, username string, userEmail string) error

DeleteAccount provides a mock function for the type MockAccountDeletionServiceInterface

func (*MockAccountDeletionServiceInterface) EXPECT

func (*MockAccountDeletionServiceInterface) ValidateConfirmationString

func (_mock *MockAccountDeletionServiceInterface) ValidateConfirmationString(confirmation string) error

ValidateConfirmationString provides a mock function for the type MockAccountDeletionServiceInterface

type MockAccountDeletionServiceInterface_DeleteAccount_Call

type MockAccountDeletionServiceInterface_DeleteAccount_Call struct {
	*mock.Call
}

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

func (*MockAccountDeletionServiceInterface_DeleteAccount_Call) Return

func (*MockAccountDeletionServiceInterface_DeleteAccount_Call) Run

func (*MockAccountDeletionServiceInterface_DeleteAccount_Call) RunAndReturn

type MockAccountDeletionServiceInterface_Expecter

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

func (*MockAccountDeletionServiceInterface_Expecter) DeleteAccount

DeleteAccount is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • username string
  • userEmail string

func (*MockAccountDeletionServiceInterface_Expecter) ValidateConfirmationString

ValidateConfirmationString is a helper method to define mock.On call

  • confirmation string

type MockAccountDeletionServiceInterface_ValidateConfirmationString_Call

type MockAccountDeletionServiceInterface_ValidateConfirmationString_Call struct {
	*mock.Call
}

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

func (*MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) Return

func (*MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) Run

func (*MockAccountDeletionServiceInterface_ValidateConfirmationString_Call) RunAndReturn

type MockAdminCreateUserRepo

type MockAdminCreateUserRepo struct {
	mock.Mock
}

MockAdminCreateUserRepo is an autogenerated mock type for the AdminCreateUserRepo type

func NewMockAdminCreateUserRepo

func NewMockAdminCreateUserRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAdminCreateUserRepo

NewMockAdminCreateUserRepo creates a new instance of MockAdminCreateUserRepo. 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 (*MockAdminCreateUserRepo) CheckEmailExists

func (_mock *MockAdminCreateUserRepo) CheckEmailExists(ctx context.Context, email string) (bool, error)

CheckEmailExists provides a mock function for the type MockAdminCreateUserRepo

func (*MockAdminCreateUserRepo) CheckUsernameExists

func (_mock *MockAdminCreateUserRepo) CheckUsernameExists(ctx context.Context, username string) (bool, error)

CheckUsernameExists provides a mock function for the type MockAdminCreateUserRepo

func (*MockAdminCreateUserRepo) CreateUser

func (_mock *MockAdminCreateUserRepo) CreateUser(ctx context.Context, user *repository.User) error

CreateUser provides a mock function for the type MockAdminCreateUserRepo

func (*MockAdminCreateUserRepo) EXPECT

type MockAdminCreateUserRepo_CheckEmailExists_Call

type MockAdminCreateUserRepo_CheckEmailExists_Call struct {
	*mock.Call
}

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

func (*MockAdminCreateUserRepo_CheckEmailExists_Call) Return

func (*MockAdminCreateUserRepo_CheckEmailExists_Call) Run

func (*MockAdminCreateUserRepo_CheckEmailExists_Call) RunAndReturn

type MockAdminCreateUserRepo_CheckUsernameExists_Call

type MockAdminCreateUserRepo_CheckUsernameExists_Call struct {
	*mock.Call
}

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

func (*MockAdminCreateUserRepo_CheckUsernameExists_Call) Return

func (*MockAdminCreateUserRepo_CheckUsernameExists_Call) Run

func (*MockAdminCreateUserRepo_CheckUsernameExists_Call) RunAndReturn

type MockAdminCreateUserRepo_CreateUser_Call

type MockAdminCreateUserRepo_CreateUser_Call struct {
	*mock.Call
}

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

func (*MockAdminCreateUserRepo_CreateUser_Call) Return

func (*MockAdminCreateUserRepo_CreateUser_Call) Run

func (*MockAdminCreateUserRepo_CreateUser_Call) RunAndReturn

type MockAdminCreateUserRepo_Expecter

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

func (*MockAdminCreateUserRepo_Expecter) CheckEmailExists

CheckEmailExists is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*MockAdminCreateUserRepo_Expecter) CheckUsernameExists

CheckUsernameExists is a helper method to define mock.On call

  • ctx context.Context
  • username string

func (*MockAdminCreateUserRepo_Expecter) CreateUser

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • user *repository.User

type MockBlockedEmailRepo

type MockBlockedEmailRepo struct {
	mock.Mock
}

MockBlockedEmailRepo is an autogenerated mock type for the BlockedEmailRepo type

func NewMockBlockedEmailRepo

func NewMockBlockedEmailRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockBlockedEmailRepo

NewMockBlockedEmailRepo creates a new instance of MockBlockedEmailRepo. 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 (*MockBlockedEmailRepo) BlockEmail

func (_mock *MockBlockedEmailRepo) BlockEmail(ctx context.Context, email string, reason string) error

BlockEmail provides a mock function for the type MockBlockedEmailRepo

func (*MockBlockedEmailRepo) EXPECT

func (*MockBlockedEmailRepo) IsEmailBlocked

func (_mock *MockBlockedEmailRepo) IsEmailBlocked(ctx context.Context, email string) (bool, error)

IsEmailBlocked provides a mock function for the type MockBlockedEmailRepo

func (*MockBlockedEmailRepo) UnblockEmail

func (_mock *MockBlockedEmailRepo) UnblockEmail(ctx context.Context, email string) error

UnblockEmail provides a mock function for the type MockBlockedEmailRepo

type MockBlockedEmailRepo_BlockEmail_Call

type MockBlockedEmailRepo_BlockEmail_Call struct {
	*mock.Call
}

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

func (*MockBlockedEmailRepo_BlockEmail_Call) Return

func (*MockBlockedEmailRepo_BlockEmail_Call) Run

func (*MockBlockedEmailRepo_BlockEmail_Call) RunAndReturn

type MockBlockedEmailRepo_Expecter

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

func (*MockBlockedEmailRepo_Expecter) BlockEmail

BlockEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string
  • reason string

func (*MockBlockedEmailRepo_Expecter) IsEmailBlocked

IsEmailBlocked is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*MockBlockedEmailRepo_Expecter) UnblockEmail

UnblockEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

type MockBlockedEmailRepo_IsEmailBlocked_Call

type MockBlockedEmailRepo_IsEmailBlocked_Call struct {
	*mock.Call
}

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

func (*MockBlockedEmailRepo_IsEmailBlocked_Call) Return

func (*MockBlockedEmailRepo_IsEmailBlocked_Call) Run

func (*MockBlockedEmailRepo_IsEmailBlocked_Call) RunAndReturn

type MockBlockedEmailRepo_UnblockEmail_Call

type MockBlockedEmailRepo_UnblockEmail_Call struct {
	*mock.Call
}

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

func (*MockBlockedEmailRepo_UnblockEmail_Call) Return

func (*MockBlockedEmailRepo_UnblockEmail_Call) Run

func (*MockBlockedEmailRepo_UnblockEmail_Call) RunAndReturn

type MockProfileServiceInterface

type MockProfileServiceInterface struct {
	mock.Mock
}

MockProfileServiceInterface is an autogenerated mock type for the ProfileServiceInterface type

func NewMockProfileServiceInterface

func NewMockProfileServiceInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockProfileServiceInterface

NewMockProfileServiceInterface creates a new instance of MockProfileServiceInterface. 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 (*MockProfileServiceInterface) ChangePassword

func (_mock *MockProfileServiceInterface) ChangePassword(ctx context.Context, userID int, currentPassword string, newPassword string) error

ChangePassword provides a mock function for the type MockProfileServiceInterface

func (*MockProfileServiceInterface) EXPECT

func (*MockProfileServiceInterface) ExportUserData

func (_mock *MockProfileServiceInterface) ExportUserData(ctx context.Context, userID int) (*repository.UserDataExport, error)

ExportUserData provides a mock function for the type MockProfileServiceInterface

func (*MockProfileServiceInterface) GetProfile

func (_mock *MockProfileServiceInterface) GetProfile(ctx context.Context, userID int) (*user.Profile, error)

GetProfile provides a mock function for the type MockProfileServiceInterface

func (*MockProfileServiceInterface) UpdateCustomFields

func (_mock *MockProfileServiceInterface) UpdateCustomFields(ctx context.Context, userID int, customFields map[string]any, isAdmin bool) error

UpdateCustomFields provides a mock function for the type MockProfileServiceInterface

func (*MockProfileServiceInterface) UpdateEmail

func (_mock *MockProfileServiceInterface) UpdateEmail(ctx context.Context, userID int, newEmail string, currentPasswordHash string) error

UpdateEmail provides a mock function for the type MockProfileServiceInterface

func (*MockProfileServiceInterface) UpdateName added in v0.2.0

func (_mock *MockProfileServiceInterface) UpdateName(ctx context.Context, userID int, name string) error

UpdateName provides a mock function for the type MockProfileServiceInterface

func (*MockProfileServiceInterface) VerifyEmailUpdate

func (_mock *MockProfileServiceInterface) VerifyEmailUpdate(ctx context.Context, token string) (int, string, error)

VerifyEmailUpdate provides a mock function for the type MockProfileServiceInterface

type MockProfileServiceInterface_ChangePassword_Call

type MockProfileServiceInterface_ChangePassword_Call struct {
	*mock.Call
}

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

func (*MockProfileServiceInterface_ChangePassword_Call) Return

func (*MockProfileServiceInterface_ChangePassword_Call) Run

func (*MockProfileServiceInterface_ChangePassword_Call) RunAndReturn

func (_c *MockProfileServiceInterface_ChangePassword_Call) RunAndReturn(run func(ctx context.Context, userID int, currentPassword string, newPassword string) error) *MockProfileServiceInterface_ChangePassword_Call

type MockProfileServiceInterface_Expecter

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

func (*MockProfileServiceInterface_Expecter) ChangePassword

func (_e *MockProfileServiceInterface_Expecter) ChangePassword(ctx any, userID any, currentPassword any, newPassword any) *MockProfileServiceInterface_ChangePassword_Call

ChangePassword is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • currentPassword string
  • newPassword string

func (*MockProfileServiceInterface_Expecter) ExportUserData

ExportUserData is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockProfileServiceInterface_Expecter) GetProfile

GetProfile is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockProfileServiceInterface_Expecter) UpdateCustomFields

func (_e *MockProfileServiceInterface_Expecter) UpdateCustomFields(ctx any, userID any, customFields any, isAdmin any) *MockProfileServiceInterface_UpdateCustomFields_Call

UpdateCustomFields is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • customFields map[string]any
  • isAdmin bool

func (*MockProfileServiceInterface_Expecter) UpdateEmail

func (_e *MockProfileServiceInterface_Expecter) UpdateEmail(ctx any, userID any, newEmail any, currentPasswordHash any) *MockProfileServiceInterface_UpdateEmail_Call

UpdateEmail is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • newEmail string
  • currentPasswordHash string

func (*MockProfileServiceInterface_Expecter) UpdateName added in v0.2.0

UpdateName is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • name string

func (*MockProfileServiceInterface_Expecter) VerifyEmailUpdate

VerifyEmailUpdate is a helper method to define mock.On call

  • ctx context.Context
  • token string

type MockProfileServiceInterface_ExportUserData_Call

type MockProfileServiceInterface_ExportUserData_Call struct {
	*mock.Call
}

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

func (*MockProfileServiceInterface_ExportUserData_Call) Return

func (*MockProfileServiceInterface_ExportUserData_Call) Run

func (*MockProfileServiceInterface_ExportUserData_Call) RunAndReturn

type MockProfileServiceInterface_GetProfile_Call

type MockProfileServiceInterface_GetProfile_Call struct {
	*mock.Call
}

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

func (*MockProfileServiceInterface_GetProfile_Call) Return

func (*MockProfileServiceInterface_GetProfile_Call) Run

func (*MockProfileServiceInterface_GetProfile_Call) RunAndReturn

type MockProfileServiceInterface_UpdateCustomFields_Call

type MockProfileServiceInterface_UpdateCustomFields_Call struct {
	*mock.Call
}

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

func (*MockProfileServiceInterface_UpdateCustomFields_Call) Return

func (*MockProfileServiceInterface_UpdateCustomFields_Call) Run

func (*MockProfileServiceInterface_UpdateCustomFields_Call) RunAndReturn

type MockProfileServiceInterface_UpdateEmail_Call

type MockProfileServiceInterface_UpdateEmail_Call struct {
	*mock.Call
}

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

func (*MockProfileServiceInterface_UpdateEmail_Call) Return

func (*MockProfileServiceInterface_UpdateEmail_Call) Run

func (_c *MockProfileServiceInterface_UpdateEmail_Call) Run(run func(ctx context.Context, userID int, newEmail string, currentPasswordHash string)) *MockProfileServiceInterface_UpdateEmail_Call

func (*MockProfileServiceInterface_UpdateEmail_Call) RunAndReturn

func (_c *MockProfileServiceInterface_UpdateEmail_Call) RunAndReturn(run func(ctx context.Context, userID int, newEmail string, currentPasswordHash string) error) *MockProfileServiceInterface_UpdateEmail_Call

type MockProfileServiceInterface_UpdateName_Call added in v0.2.0

type MockProfileServiceInterface_UpdateName_Call struct {
	*mock.Call
}

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

func (*MockProfileServiceInterface_UpdateName_Call) Return added in v0.2.0

func (*MockProfileServiceInterface_UpdateName_Call) Run added in v0.2.0

func (*MockProfileServiceInterface_UpdateName_Call) RunAndReturn added in v0.2.0

type MockProfileServiceInterface_VerifyEmailUpdate_Call

type MockProfileServiceInterface_VerifyEmailUpdate_Call struct {
	*mock.Call
}

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

func (*MockProfileServiceInterface_VerifyEmailUpdate_Call) Return

func (*MockProfileServiceInterface_VerifyEmailUpdate_Call) Run

func (*MockProfileServiceInterface_VerifyEmailUpdate_Call) RunAndReturn

type MockUserRepo

type MockUserRepo struct {
	mock.Mock
}

MockUserRepo is an autogenerated mock type for the UserRepo type

func NewMockUserRepo

func NewMockUserRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUserRepo

NewMockUserRepo creates a new instance of MockUserRepo. 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 (*MockUserRepo) CheckEmailExistsForOtherUser

func (_mock *MockUserRepo) CheckEmailExistsForOtherUser(ctx context.Context, userID int, email string) (bool, error)

CheckEmailExistsForOtherUser provides a mock function for the type MockUserRepo

func (*MockUserRepo) DeleteUser

func (_mock *MockUserRepo) DeleteUser(ctx context.Context, userID int) error

DeleteUser provides a mock function for the type MockUserRepo

func (*MockUserRepo) EXPECT

func (_m *MockUserRepo) EXPECT() *MockUserRepo_Expecter

func (*MockUserRepo) GetAllUsers

func (_mock *MockUserRepo) GetAllUsers(ctx context.Context, status string, limit int, offset int) ([]*repository.User, error)

GetAllUsers provides a mock function for the type MockUserRepo

func (*MockUserRepo) GetPendingUsers

func (_mock *MockUserRepo) GetPendingUsers(ctx context.Context, limit int, offset int) ([]*repository.User, error)

GetPendingUsers provides a mock function for the type MockUserRepo

func (*MockUserRepo) GetUserByID

func (_mock *MockUserRepo) GetUserByID(ctx context.Context, userID int) (*repository.User, error)

GetUserByID provides a mock function for the type MockUserRepo

func (*MockUserRepo) GetUserStatus

func (_mock *MockUserRepo) GetUserStatus(ctx context.Context, userID int) (string, error)

GetUserStatus provides a mock function for the type MockUserRepo

func (*MockUserRepo) SoftDeleteUser

func (_mock *MockUserRepo) SoftDeleteUser(ctx context.Context, userID int) error

SoftDeleteUser provides a mock function for the type MockUserRepo

func (*MockUserRepo) SuspendUser

func (_mock *MockUserRepo) SuspendUser(ctx context.Context, userID int) error

SuspendUser provides a mock function for the type MockUserRepo

func (*MockUserRepo) UnsuspendUser

func (_mock *MockUserRepo) UnsuspendUser(ctx context.Context, userID int) error

UnsuspendUser provides a mock function for the type MockUserRepo

func (*MockUserRepo) UpdateProfile

func (_mock *MockUserRepo) UpdateProfile(ctx context.Context, userID int, name string, email string, role string, customFields map[string]any) error

UpdateProfile provides a mock function for the type MockUserRepo

func (*MockUserRepo) UpdateUserStatus

func (_mock *MockUserRepo) UpdateUserStatus(ctx context.Context, userID int, status string) error

UpdateUserStatus provides a mock function for the type MockUserRepo

func (*MockUserRepo) UpdateUserStatusIfCurrentStatus

func (_mock *MockUserRepo) UpdateUserStatusIfCurrentStatus(ctx context.Context, userID int, currentStatus string, newStatus string) error

UpdateUserStatusIfCurrentStatus provides a mock function for the type MockUserRepo

type MockUserRepo_CheckEmailExistsForOtherUser_Call

type MockUserRepo_CheckEmailExistsForOtherUser_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_CheckEmailExistsForOtherUser_Call) Return

func (*MockUserRepo_CheckEmailExistsForOtherUser_Call) Run

func (*MockUserRepo_CheckEmailExistsForOtherUser_Call) RunAndReturn

type MockUserRepo_DeleteUser_Call

type MockUserRepo_DeleteUser_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_DeleteUser_Call) Return

func (*MockUserRepo_DeleteUser_Call) Run

func (*MockUserRepo_DeleteUser_Call) RunAndReturn

func (_c *MockUserRepo_DeleteUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_DeleteUser_Call

type MockUserRepo_Expecter

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

func (*MockUserRepo_Expecter) CheckEmailExistsForOtherUser

func (_e *MockUserRepo_Expecter) CheckEmailExistsForOtherUser(ctx any, userID any, email any) *MockUserRepo_CheckEmailExistsForOtherUser_Call

CheckEmailExistsForOtherUser is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • email string

func (*MockUserRepo_Expecter) DeleteUser

func (_e *MockUserRepo_Expecter) DeleteUser(ctx any, userID any) *MockUserRepo_DeleteUser_Call

DeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserRepo_Expecter) GetAllUsers

func (_e *MockUserRepo_Expecter) GetAllUsers(ctx any, status any, limit any, offset any) *MockUserRepo_GetAllUsers_Call

GetAllUsers is a helper method to define mock.On call

  • ctx context.Context
  • status string
  • limit int
  • offset int

func (*MockUserRepo_Expecter) GetPendingUsers

func (_e *MockUserRepo_Expecter) GetPendingUsers(ctx any, limit any, offset any) *MockUserRepo_GetPendingUsers_Call

GetPendingUsers is a helper method to define mock.On call

  • ctx context.Context
  • limit int
  • offset int

func (*MockUserRepo_Expecter) GetUserByID

func (_e *MockUserRepo_Expecter) GetUserByID(ctx any, userID any) *MockUserRepo_GetUserByID_Call

GetUserByID is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserRepo_Expecter) GetUserStatus

func (_e *MockUserRepo_Expecter) GetUserStatus(ctx any, userID any) *MockUserRepo_GetUserStatus_Call

GetUserStatus is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserRepo_Expecter) SoftDeleteUser

func (_e *MockUserRepo_Expecter) SoftDeleteUser(ctx any, userID any) *MockUserRepo_SoftDeleteUser_Call

SoftDeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserRepo_Expecter) SuspendUser

func (_e *MockUserRepo_Expecter) SuspendUser(ctx any, userID any) *MockUserRepo_SuspendUser_Call

SuspendUser is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserRepo_Expecter) UnsuspendUser

func (_e *MockUserRepo_Expecter) UnsuspendUser(ctx any, userID any) *MockUserRepo_UnsuspendUser_Call

UnsuspendUser is a helper method to define mock.On call

  • ctx context.Context
  • userID int

func (*MockUserRepo_Expecter) UpdateProfile

func (_e *MockUserRepo_Expecter) UpdateProfile(ctx any, userID any, name any, email any, role any, customFields any) *MockUserRepo_UpdateProfile_Call

UpdateProfile is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • name string
  • email string
  • role string
  • customFields map[string]any

func (*MockUserRepo_Expecter) UpdateUserStatus

func (_e *MockUserRepo_Expecter) UpdateUserStatus(ctx any, userID any, status any) *MockUserRepo_UpdateUserStatus_Call

UpdateUserStatus is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • status string

func (*MockUserRepo_Expecter) UpdateUserStatusIfCurrentStatus

func (_e *MockUserRepo_Expecter) UpdateUserStatusIfCurrentStatus(ctx any, userID any, currentStatus any, newStatus any) *MockUserRepo_UpdateUserStatusIfCurrentStatus_Call

UpdateUserStatusIfCurrentStatus is a helper method to define mock.On call

  • ctx context.Context
  • userID int
  • currentStatus string
  • newStatus string

type MockUserRepo_GetAllUsers_Call

type MockUserRepo_GetAllUsers_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_GetAllUsers_Call) Return

func (*MockUserRepo_GetAllUsers_Call) Run

func (_c *MockUserRepo_GetAllUsers_Call) Run(run func(ctx context.Context, status string, limit int, offset int)) *MockUserRepo_GetAllUsers_Call

func (*MockUserRepo_GetAllUsers_Call) RunAndReturn

func (_c *MockUserRepo_GetAllUsers_Call) RunAndReturn(run func(ctx context.Context, status string, limit int, offset int) ([]*repository.User, error)) *MockUserRepo_GetAllUsers_Call

type MockUserRepo_GetPendingUsers_Call

type MockUserRepo_GetPendingUsers_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_GetPendingUsers_Call) Return

func (*MockUserRepo_GetPendingUsers_Call) Run

func (*MockUserRepo_GetPendingUsers_Call) RunAndReturn

func (_c *MockUserRepo_GetPendingUsers_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*repository.User, error)) *MockUserRepo_GetPendingUsers_Call

type MockUserRepo_GetUserByID_Call

type MockUserRepo_GetUserByID_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_GetUserByID_Call) Return

func (*MockUserRepo_GetUserByID_Call) Run

func (*MockUserRepo_GetUserByID_Call) RunAndReturn

type MockUserRepo_GetUserStatus_Call

type MockUserRepo_GetUserStatus_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_GetUserStatus_Call) Return

func (*MockUserRepo_GetUserStatus_Call) Run

func (*MockUserRepo_GetUserStatus_Call) RunAndReturn

type MockUserRepo_SoftDeleteUser_Call

type MockUserRepo_SoftDeleteUser_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_SoftDeleteUser_Call) Return

func (*MockUserRepo_SoftDeleteUser_Call) Run

func (*MockUserRepo_SoftDeleteUser_Call) RunAndReturn

type MockUserRepo_SuspendUser_Call

type MockUserRepo_SuspendUser_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_SuspendUser_Call) Return

func (*MockUserRepo_SuspendUser_Call) Run

func (*MockUserRepo_SuspendUser_Call) RunAndReturn

func (_c *MockUserRepo_SuspendUser_Call) RunAndReturn(run func(ctx context.Context, userID int) error) *MockUserRepo_SuspendUser_Call

type MockUserRepo_UnsuspendUser_Call

type MockUserRepo_UnsuspendUser_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_UnsuspendUser_Call) Return

func (*MockUserRepo_UnsuspendUser_Call) Run

func (*MockUserRepo_UnsuspendUser_Call) RunAndReturn

type MockUserRepo_UpdateProfile_Call

type MockUserRepo_UpdateProfile_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_UpdateProfile_Call) Return

func (*MockUserRepo_UpdateProfile_Call) Run

func (_c *MockUserRepo_UpdateProfile_Call) Run(run func(ctx context.Context, userID int, name string, email string, role string, customFields map[string]any)) *MockUserRepo_UpdateProfile_Call

func (*MockUserRepo_UpdateProfile_Call) RunAndReturn

func (_c *MockUserRepo_UpdateProfile_Call) RunAndReturn(run func(ctx context.Context, userID int, name string, email string, role string, customFields map[string]any) error) *MockUserRepo_UpdateProfile_Call

type MockUserRepo_UpdateUserStatusIfCurrentStatus_Call

type MockUserRepo_UpdateUserStatusIfCurrentStatus_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Return

func (*MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) Run

func (*MockUserRepo_UpdateUserStatusIfCurrentStatus_Call) RunAndReturn

type MockUserRepo_UpdateUserStatus_Call

type MockUserRepo_UpdateUserStatus_Call struct {
	*mock.Call
}

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

func (*MockUserRepo_UpdateUserStatus_Call) Return

func (*MockUserRepo_UpdateUserStatus_Call) Run

func (*MockUserRepo_UpdateUserStatus_Call) RunAndReturn

func (_c *MockUserRepo_UpdateUserStatus_Call) RunAndReturn(run func(ctx context.Context, userID int, status string) error) *MockUserRepo_UpdateUserStatus_Call

Jump to

Keyboard shortcuts

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