apimocks

package
v1.2.27 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: AGPL-3.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 MockConsumeRefreshTokenService

type MockConsumeRefreshTokenService struct {
	mock.Mock
}

MockConsumeRefreshTokenService is an autogenerated mock type for the ConsumeRefreshTokenService type

func NewMockConsumeRefreshTokenService

func NewMockConsumeRefreshTokenService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockConsumeRefreshTokenService

NewMockConsumeRefreshTokenService creates a new instance of MockConsumeRefreshTokenService. 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 (*MockConsumeRefreshTokenService) ConsumeRefreshToken

ConsumeRefreshToken provides a mock function for the type MockConsumeRefreshTokenService

func (*MockConsumeRefreshTokenService) EXPECT

type MockConsumeRefreshTokenService_ConsumeRefreshToken_Call

type MockConsumeRefreshTokenService_ConsumeRefreshToken_Call struct {
	*mock.Call
}

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

func (*MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) Return

func (*MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) Run

func (*MockConsumeRefreshTokenService_ConsumeRefreshToken_Call) RunAndReturn

type MockConsumeRefreshTokenService_Expecter

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

func (*MockConsumeRefreshTokenService_Expecter) ConsumeRefreshToken

func (_e *MockConsumeRefreshTokenService_Expecter) ConsumeRefreshToken(ctx interface{}, request interface{}) *MockConsumeRefreshTokenService_ConsumeRefreshToken_Call

ConsumeRefreshToken is a helper method to define mock.On call

  • ctx context.Context
  • request services.ConsumeRefreshTokenRequest

type MockEmailExistsService

type MockEmailExistsService struct {
	mock.Mock
}

MockEmailExistsService is an autogenerated mock type for the EmailExistsService type

func NewMockEmailExistsService

func NewMockEmailExistsService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockEmailExistsService

NewMockEmailExistsService creates a new instance of MockEmailExistsService. 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 (*MockEmailExistsService) EXPECT

func (*MockEmailExistsService) EmailExists

func (_mock *MockEmailExistsService) EmailExists(ctx context.Context, request services.EmailExistsRequest) (bool, error)

EmailExists provides a mock function for the type MockEmailExistsService

type MockEmailExistsService_EmailExists_Call

type MockEmailExistsService_EmailExists_Call struct {
	*mock.Call
}

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

func (*MockEmailExistsService_EmailExists_Call) Return

func (*MockEmailExistsService_EmailExists_Call) Run

func (*MockEmailExistsService_EmailExists_Call) RunAndReturn

type MockEmailExistsService_Expecter

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

func (*MockEmailExistsService_Expecter) EmailExists

func (_e *MockEmailExistsService_Expecter) EmailExists(ctx interface{}, request interface{}) *MockEmailExistsService_EmailExists_Call

EmailExists is a helper method to define mock.On call

  • ctx context.Context
  • request services.EmailExistsRequest

type MockGetUserService

type MockGetUserService struct {
	mock.Mock
}

MockGetUserService is an autogenerated mock type for the GetUserService type

func NewMockGetUserService

func NewMockGetUserService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockGetUserService

NewMockGetUserService creates a new instance of MockGetUserService. 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 (*MockGetUserService) EXPECT

func (*MockGetUserService) SelectUser

func (_mock *MockGetUserService) SelectUser(ctx context.Context, request services.SelectUserRequest) (*models.User, error)

SelectUser provides a mock function for the type MockGetUserService

type MockGetUserService_Expecter

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

func (*MockGetUserService_Expecter) SelectUser

func (_e *MockGetUserService_Expecter) SelectUser(ctx interface{}, request interface{}) *MockGetUserService_SelectUser_Call

SelectUser is a helper method to define mock.On call

  • ctx context.Context
  • request services.SelectUserRequest

type MockGetUserService_SelectUser_Call

type MockGetUserService_SelectUser_Call struct {
	*mock.Call
}

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

func (*MockGetUserService_SelectUser_Call) Return

func (*MockGetUserService_SelectUser_Call) Run

func (*MockGetUserService_SelectUser_Call) RunAndReturn

type MockListUsersService

type MockListUsersService struct {
	mock.Mock
}

MockListUsersService is an autogenerated mock type for the ListUsersService type

func NewMockListUsersService

func NewMockListUsersService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockListUsersService

NewMockListUsersService creates a new instance of MockListUsersService. 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 (*MockListUsersService) EXPECT

func (*MockListUsersService) ListUsers

func (_mock *MockListUsersService) ListUsers(ctx context.Context, request services.ListUsersRequest) ([]*models.User, error)

ListUsers provides a mock function for the type MockListUsersService

type MockListUsersService_Expecter

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

func (*MockListUsersService_Expecter) ListUsers

func (_e *MockListUsersService_Expecter) ListUsers(ctx interface{}, request interface{}) *MockListUsersService_ListUsers_Call

ListUsers is a helper method to define mock.On call

  • ctx context.Context
  • request services.ListUsersRequest

type MockListUsersService_ListUsers_Call

type MockListUsersService_ListUsers_Call struct {
	*mock.Call
}

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

func (*MockListUsersService_ListUsers_Call) Return

func (*MockListUsersService_ListUsers_Call) Run

func (*MockListUsersService_ListUsers_Call) RunAndReturn

type MockLoginAnonService

type MockLoginAnonService struct {
	mock.Mock
}

MockLoginAnonService is an autogenerated mock type for the LoginAnonService type

func NewMockLoginAnonService

func NewMockLoginAnonService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLoginAnonService

NewMockLoginAnonService creates a new instance of MockLoginAnonService. 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 (*MockLoginAnonService) EXPECT

func (*MockLoginAnonService) LoginAnon

func (_mock *MockLoginAnonService) LoginAnon(ctx context.Context) (string, error)

LoginAnon provides a mock function for the type MockLoginAnonService

type MockLoginAnonService_Expecter

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

func (*MockLoginAnonService_Expecter) LoginAnon

LoginAnon is a helper method to define mock.On call

  • ctx context.Context

type MockLoginAnonService_LoginAnon_Call

type MockLoginAnonService_LoginAnon_Call struct {
	*mock.Call
}

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

func (*MockLoginAnonService_LoginAnon_Call) Return

func (*MockLoginAnonService_LoginAnon_Call) Run

func (*MockLoginAnonService_LoginAnon_Call) RunAndReturn

type MockLoginService

type MockLoginService struct {
	mock.Mock
}

MockLoginService is an autogenerated mock type for the LoginService type

func NewMockLoginService

func NewMockLoginService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockLoginService

NewMockLoginService creates a new instance of MockLoginService. 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 (*MockLoginService) EXPECT

func (*MockLoginService) Login

func (_mock *MockLoginService) Login(ctx context.Context, request services.LoginRequest) (*models.Token, error)

Login provides a mock function for the type MockLoginService

type MockLoginService_Expecter

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

func (*MockLoginService_Expecter) Login

func (_e *MockLoginService_Expecter) Login(ctx interface{}, request interface{}) *MockLoginService_Login_Call

Login is a helper method to define mock.On call

  • ctx context.Context
  • request services.LoginRequest

type MockLoginService_Login_Call

type MockLoginService_Login_Call struct {
	*mock.Call
}

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

func (*MockLoginService_Login_Call) Return

func (*MockLoginService_Login_Call) Run

func (*MockLoginService_Login_Call) RunAndReturn

type MockRegisterService

type MockRegisterService struct {
	mock.Mock
}

MockRegisterService is an autogenerated mock type for the RegisterService type

func NewMockRegisterService

func NewMockRegisterService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRegisterService

NewMockRegisterService creates a new instance of MockRegisterService. 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 (*MockRegisterService) EXPECT

func (*MockRegisterService) Register

func (_mock *MockRegisterService) Register(ctx context.Context, request services.RegisterRequest) (*models.Token, error)

Register provides a mock function for the type MockRegisterService

type MockRegisterService_Expecter

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

func (*MockRegisterService_Expecter) Register

func (_e *MockRegisterService_Expecter) Register(ctx interface{}, request interface{}) *MockRegisterService_Register_Call

Register is a helper method to define mock.On call

  • ctx context.Context
  • request services.RegisterRequest

type MockRegisterService_Register_Call

type MockRegisterService_Register_Call struct {
	*mock.Call
}

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

func (*MockRegisterService_Register_Call) Return

func (*MockRegisterService_Register_Call) Run

func (*MockRegisterService_Register_Call) RunAndReturn

type MockRequestEmailUpdateService

type MockRequestEmailUpdateService struct {
	mock.Mock
}

MockRequestEmailUpdateService is an autogenerated mock type for the RequestEmailUpdateService type

func NewMockRequestEmailUpdateService

func NewMockRequestEmailUpdateService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRequestEmailUpdateService

NewMockRequestEmailUpdateService creates a new instance of MockRequestEmailUpdateService. 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 (*MockRequestEmailUpdateService) EXPECT

func (*MockRequestEmailUpdateService) RequestEmailUpdate

RequestEmailUpdate provides a mock function for the type MockRequestEmailUpdateService

type MockRequestEmailUpdateService_Expecter

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

func (*MockRequestEmailUpdateService_Expecter) RequestEmailUpdate

func (_e *MockRequestEmailUpdateService_Expecter) RequestEmailUpdate(ctx interface{}, request interface{}) *MockRequestEmailUpdateService_RequestEmailUpdate_Call

RequestEmailUpdate is a helper method to define mock.On call

  • ctx context.Context
  • request services.RequestEmailUpdateRequest

type MockRequestEmailUpdateService_RequestEmailUpdate_Call

type MockRequestEmailUpdateService_RequestEmailUpdate_Call struct {
	*mock.Call
}

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

func (*MockRequestEmailUpdateService_RequestEmailUpdate_Call) Return

func (*MockRequestEmailUpdateService_RequestEmailUpdate_Call) Run

func (*MockRequestEmailUpdateService_RequestEmailUpdate_Call) RunAndReturn

type MockRequestPasswordResetService

type MockRequestPasswordResetService struct {
	mock.Mock
}

MockRequestPasswordResetService is an autogenerated mock type for the RequestPasswordResetService type

func NewMockRequestPasswordResetService

func NewMockRequestPasswordResetService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRequestPasswordResetService

NewMockRequestPasswordResetService creates a new instance of MockRequestPasswordResetService. 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 (*MockRequestPasswordResetService) EXPECT

func (*MockRequestPasswordResetService) RequestPasswordReset

RequestPasswordReset provides a mock function for the type MockRequestPasswordResetService

type MockRequestPasswordResetService_Expecter

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

func (*MockRequestPasswordResetService_Expecter) RequestPasswordReset

func (_e *MockRequestPasswordResetService_Expecter) RequestPasswordReset(ctx interface{}, request interface{}) *MockRequestPasswordResetService_RequestPasswordReset_Call

RequestPasswordReset is a helper method to define mock.On call

  • ctx context.Context
  • request services.RequestPasswordResetRequest

type MockRequestPasswordResetService_RequestPasswordReset_Call

type MockRequestPasswordResetService_RequestPasswordReset_Call struct {
	*mock.Call
}

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

func (*MockRequestPasswordResetService_RequestPasswordReset_Call) Return

func (*MockRequestPasswordResetService_RequestPasswordReset_Call) Run

type MockRequestRegisterService

type MockRequestRegisterService struct {
	mock.Mock
}

MockRequestRegisterService is an autogenerated mock type for the RequestRegisterService type

func NewMockRequestRegisterService

func NewMockRequestRegisterService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockRequestRegisterService

NewMockRequestRegisterService creates a new instance of MockRequestRegisterService. 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 (*MockRequestRegisterService) EXPECT

func (*MockRequestRegisterService) RequestRegister

RequestRegister provides a mock function for the type MockRequestRegisterService

type MockRequestRegisterService_Expecter

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

func (*MockRequestRegisterService_Expecter) RequestRegister

func (_e *MockRequestRegisterService_Expecter) RequestRegister(ctx interface{}, request interface{}) *MockRequestRegisterService_RequestRegister_Call

RequestRegister is a helper method to define mock.On call

  • ctx context.Context
  • request services.RequestRegisterRequest

type MockRequestRegisterService_RequestRegister_Call

type MockRequestRegisterService_RequestRegister_Call struct {
	*mock.Call
}

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

func (*MockRequestRegisterService_RequestRegister_Call) Return

func (*MockRequestRegisterService_RequestRegister_Call) Run

func (*MockRequestRegisterService_RequestRegister_Call) RunAndReturn

type MockUpdateEmailService

type MockUpdateEmailService struct {
	mock.Mock
}

MockUpdateEmailService is an autogenerated mock type for the UpdateEmailService type

func NewMockUpdateEmailService

func NewMockUpdateEmailService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUpdateEmailService

NewMockUpdateEmailService creates a new instance of MockUpdateEmailService. 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 (*MockUpdateEmailService) EXPECT

func (*MockUpdateEmailService) UpdateEmail

UpdateEmail provides a mock function for the type MockUpdateEmailService

type MockUpdateEmailService_Expecter

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

func (*MockUpdateEmailService_Expecter) UpdateEmail

func (_e *MockUpdateEmailService_Expecter) UpdateEmail(ctx interface{}, request interface{}) *MockUpdateEmailService_UpdateEmail_Call

UpdateEmail is a helper method to define mock.On call

  • ctx context.Context
  • request services.UpdateEmailRequest

type MockUpdateEmailService_UpdateEmail_Call

type MockUpdateEmailService_UpdateEmail_Call struct {
	*mock.Call
}

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

func (*MockUpdateEmailService_UpdateEmail_Call) Return

func (*MockUpdateEmailService_UpdateEmail_Call) Run

func (*MockUpdateEmailService_UpdateEmail_Call) RunAndReturn

type MockUpdatePasswordService

type MockUpdatePasswordService struct {
	mock.Mock
}

MockUpdatePasswordService is an autogenerated mock type for the UpdatePasswordService type

func NewMockUpdatePasswordService

func NewMockUpdatePasswordService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUpdatePasswordService

NewMockUpdatePasswordService creates a new instance of MockUpdatePasswordService. 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 (*MockUpdatePasswordService) EXPECT

func (*MockUpdatePasswordService) UpdatePassword

func (_mock *MockUpdatePasswordService) UpdatePassword(ctx context.Context, request services.UpdatePasswordRequest) error

UpdatePassword provides a mock function for the type MockUpdatePasswordService

type MockUpdatePasswordService_Expecter

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

func (*MockUpdatePasswordService_Expecter) UpdatePassword

func (_e *MockUpdatePasswordService_Expecter) UpdatePassword(ctx interface{}, request interface{}) *MockUpdatePasswordService_UpdatePassword_Call

UpdatePassword is a helper method to define mock.On call

  • ctx context.Context
  • request services.UpdatePasswordRequest

type MockUpdatePasswordService_UpdatePassword_Call

type MockUpdatePasswordService_UpdatePassword_Call struct {
	*mock.Call
}

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

func (*MockUpdatePasswordService_UpdatePassword_Call) Return

func (*MockUpdatePasswordService_UpdatePassword_Call) Run

func (*MockUpdatePasswordService_UpdatePassword_Call) RunAndReturn

type MockUpdateRoleService

type MockUpdateRoleService struct {
	mock.Mock
}

MockUpdateRoleService is an autogenerated mock type for the UpdateRoleService type

func NewMockUpdateRoleService

func NewMockUpdateRoleService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockUpdateRoleService

NewMockUpdateRoleService creates a new instance of MockUpdateRoleService. 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 (*MockUpdateRoleService) EXPECT

func (*MockUpdateRoleService) UpdateRole

func (_mock *MockUpdateRoleService) UpdateRole(ctx context.Context, request services.UpdateRoleRequest) (*models.User, error)

UpdateRole provides a mock function for the type MockUpdateRoleService

type MockUpdateRoleService_Expecter

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

func (*MockUpdateRoleService_Expecter) UpdateRole

func (_e *MockUpdateRoleService_Expecter) UpdateRole(ctx interface{}, request interface{}) *MockUpdateRoleService_UpdateRole_Call

UpdateRole is a helper method to define mock.On call

  • ctx context.Context
  • request services.UpdateRoleRequest

type MockUpdateRoleService_UpdateRole_Call

type MockUpdateRoleService_UpdateRole_Call struct {
	*mock.Call
}

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

func (*MockUpdateRoleService_UpdateRole_Call) Return

func (*MockUpdateRoleService_UpdateRole_Call) Run

func (*MockUpdateRoleService_UpdateRole_Call) RunAndReturn

Jump to

Keyboard shortcuts

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