mock

package
v0.0.0-...-e639f2f Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthHandler

type MockAuthHandler struct {
	mock.Mock
}

MockAuthHandler is an autogenerated mock type for the AuthHandler type

func NewMockAuthHandler

func NewMockAuthHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthHandler

NewMockAuthHandler creates a new instance of MockAuthHandler. 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 (*MockAuthHandler) CreateAccount

func (_mock *MockAuthHandler) CreateAccount(c echo.Context) error

CreateAccount provides a mock function for the type MockAuthHandler

func (*MockAuthHandler) DeleteUser

func (_mock *MockAuthHandler) DeleteUser(c echo.Context) error

DeleteUser provides a mock function for the type MockAuthHandler

func (*MockAuthHandler) EXPECT

func (*MockAuthHandler) Login

func (_mock *MockAuthHandler) Login(c echo.Context) error

Login provides a mock function for the type MockAuthHandler

func (*MockAuthHandler) Logout

func (_mock *MockAuthHandler) Logout(c echo.Context) error

Logout provides a mock function for the type MockAuthHandler

func (*MockAuthHandler) Me

func (_mock *MockAuthHandler) Me(c echo.Context) error

Me provides a mock function for the type MockAuthHandler

func (*MockAuthHandler) ReactivateAccount

func (_mock *MockAuthHandler) ReactivateAccount(c echo.Context) error

ReactivateAccount provides a mock function for the type MockAuthHandler

func (*MockAuthHandler) UpdatePassword

func (_mock *MockAuthHandler) UpdatePassword(c echo.Context) error

UpdatePassword provides a mock function for the type MockAuthHandler

func (*MockAuthHandler) UpdateUser

func (_mock *MockAuthHandler) UpdateUser(c echo.Context) error

UpdateUser provides a mock function for the type MockAuthHandler

type MockAuthHandler_CreateAccount_Call

type MockAuthHandler_CreateAccount_Call struct {
	*mock.Call
}

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

func (*MockAuthHandler_CreateAccount_Call) Return

func (*MockAuthHandler_CreateAccount_Call) Run

func (*MockAuthHandler_CreateAccount_Call) RunAndReturn

type MockAuthHandler_DeleteUser_Call

type MockAuthHandler_DeleteUser_Call struct {
	*mock.Call
}

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

func (*MockAuthHandler_DeleteUser_Call) Return

func (*MockAuthHandler_DeleteUser_Call) Run

func (*MockAuthHandler_DeleteUser_Call) RunAndReturn

type MockAuthHandler_Expecter

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

func (*MockAuthHandler_Expecter) CreateAccount

func (_e *MockAuthHandler_Expecter) CreateAccount(c interface{}) *MockAuthHandler_CreateAccount_Call

CreateAccount is a helper method to define mock.On call

  • c echo.Context

func (*MockAuthHandler_Expecter) DeleteUser

func (_e *MockAuthHandler_Expecter) DeleteUser(c interface{}) *MockAuthHandler_DeleteUser_Call

DeleteUser is a helper method to define mock.On call

  • c echo.Context

func (*MockAuthHandler_Expecter) Login

func (_e *MockAuthHandler_Expecter) Login(c interface{}) *MockAuthHandler_Login_Call

Login is a helper method to define mock.On call

  • c echo.Context

func (*MockAuthHandler_Expecter) Logout

func (_e *MockAuthHandler_Expecter) Logout(c interface{}) *MockAuthHandler_Logout_Call

Logout is a helper method to define mock.On call

  • c echo.Context

func (*MockAuthHandler_Expecter) Me

func (_e *MockAuthHandler_Expecter) Me(c interface{}) *MockAuthHandler_Me_Call

Me is a helper method to define mock.On call

  • c echo.Context

func (*MockAuthHandler_Expecter) ReactivateAccount

func (_e *MockAuthHandler_Expecter) ReactivateAccount(c interface{}) *MockAuthHandler_ReactivateAccount_Call

ReactivateAccount is a helper method to define mock.On call

  • c echo.Context

func (*MockAuthHandler_Expecter) UpdatePassword

func (_e *MockAuthHandler_Expecter) UpdatePassword(c interface{}) *MockAuthHandler_UpdatePassword_Call

UpdatePassword is a helper method to define mock.On call

  • c echo.Context

func (*MockAuthHandler_Expecter) UpdateUser

func (_e *MockAuthHandler_Expecter) UpdateUser(c interface{}) *MockAuthHandler_UpdateUser_Call

UpdateUser is a helper method to define mock.On call

  • c echo.Context

type MockAuthHandler_Login_Call

type MockAuthHandler_Login_Call struct {
	*mock.Call
}

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

func (*MockAuthHandler_Login_Call) Return

func (*MockAuthHandler_Login_Call) Run

func (*MockAuthHandler_Login_Call) RunAndReturn

type MockAuthHandler_Logout_Call

type MockAuthHandler_Logout_Call struct {
	*mock.Call
}

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

func (*MockAuthHandler_Logout_Call) Return

func (*MockAuthHandler_Logout_Call) Run

func (*MockAuthHandler_Logout_Call) RunAndReturn

type MockAuthHandler_Me_Call

type MockAuthHandler_Me_Call struct {
	*mock.Call
}

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

func (*MockAuthHandler_Me_Call) Return

func (*MockAuthHandler_Me_Call) Run

func (*MockAuthHandler_Me_Call) RunAndReturn

func (_c *MockAuthHandler_Me_Call) RunAndReturn(run func(c echo.Context) error) *MockAuthHandler_Me_Call

type MockAuthHandler_ReactivateAccount_Call

type MockAuthHandler_ReactivateAccount_Call struct {
	*mock.Call
}

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

func (*MockAuthHandler_ReactivateAccount_Call) Return

func (*MockAuthHandler_ReactivateAccount_Call) Run

func (*MockAuthHandler_ReactivateAccount_Call) RunAndReturn

type MockAuthHandler_UpdatePassword_Call

type MockAuthHandler_UpdatePassword_Call struct {
	*mock.Call
}

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

func (*MockAuthHandler_UpdatePassword_Call) Return

func (*MockAuthHandler_UpdatePassword_Call) Run

func (*MockAuthHandler_UpdatePassword_Call) RunAndReturn

type MockAuthHandler_UpdateUser_Call

type MockAuthHandler_UpdateUser_Call struct {
	*mock.Call
}

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

func (*MockAuthHandler_UpdateUser_Call) Return

func (*MockAuthHandler_UpdateUser_Call) Run

func (*MockAuthHandler_UpdateUser_Call) RunAndReturn

type MockAuthRepository

type MockAuthRepository struct {
	mock.Mock
}

MockAuthRepository is an autogenerated mock type for the AuthRepository type

func NewMockAuthRepository

func NewMockAuthRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthRepository

NewMockAuthRepository creates a new instance of MockAuthRepository. 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 (*MockAuthRepository) CreateUser

func (_mock *MockAuthRepository) CreateUser(ctx context.Context, user *domain.User) error

CreateUser provides a mock function for the type MockAuthRepository

func (*MockAuthRepository) DeleteDeactivatedUsers

func (_mock *MockAuthRepository) DeleteDeactivatedUsers(ctx context.Context) (int64, error)

DeleteDeactivatedUsers provides a mock function for the type MockAuthRepository

func (*MockAuthRepository) DeleteUser

func (_mock *MockAuthRepository) DeleteUser(ctx context.Context, id uuid.UUID) error

DeleteUser provides a mock function for the type MockAuthRepository

func (*MockAuthRepository) EXPECT

func (*MockAuthRepository) FindUserByEmail

func (_mock *MockAuthRepository) FindUserByEmail(ctx context.Context, email string) (*domain.User, error)

FindUserByEmail provides a mock function for the type MockAuthRepository

func (*MockAuthRepository) FindUserByID

func (_mock *MockAuthRepository) FindUserByID(ctx context.Context, id uuid.UUID) (*domain.User, error)

FindUserByID provides a mock function for the type MockAuthRepository

func (*MockAuthRepository) UpdateUser

func (_mock *MockAuthRepository) UpdateUser(ctx context.Context, user *domain.User) error

UpdateUser provides a mock function for the type MockAuthRepository

type MockAuthRepository_CreateUser_Call

type MockAuthRepository_CreateUser_Call struct {
	*mock.Call
}

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

func (*MockAuthRepository_CreateUser_Call) Return

func (*MockAuthRepository_CreateUser_Call) Run

func (*MockAuthRepository_CreateUser_Call) RunAndReturn

type MockAuthRepository_DeleteDeactivatedUsers_Call

type MockAuthRepository_DeleteDeactivatedUsers_Call struct {
	*mock.Call
}

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

func (*MockAuthRepository_DeleteDeactivatedUsers_Call) Return

func (*MockAuthRepository_DeleteDeactivatedUsers_Call) Run

func (*MockAuthRepository_DeleteDeactivatedUsers_Call) RunAndReturn

type MockAuthRepository_DeleteUser_Call

type MockAuthRepository_DeleteUser_Call struct {
	*mock.Call
}

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

func (*MockAuthRepository_DeleteUser_Call) Return

func (*MockAuthRepository_DeleteUser_Call) Run

func (*MockAuthRepository_DeleteUser_Call) RunAndReturn

type MockAuthRepository_Expecter

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

func (*MockAuthRepository_Expecter) CreateUser

func (_e *MockAuthRepository_Expecter) CreateUser(ctx interface{}, user interface{}) *MockAuthRepository_CreateUser_Call

CreateUser is a helper method to define mock.On call

  • ctx context.Context
  • user *domain.User

func (*MockAuthRepository_Expecter) DeleteDeactivatedUsers

func (_e *MockAuthRepository_Expecter) DeleteDeactivatedUsers(ctx interface{}) *MockAuthRepository_DeleteDeactivatedUsers_Call

DeleteDeactivatedUsers is a helper method to define mock.On call

  • ctx context.Context

func (*MockAuthRepository_Expecter) DeleteUser

func (_e *MockAuthRepository_Expecter) DeleteUser(ctx interface{}, id interface{}) *MockAuthRepository_DeleteUser_Call

DeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*MockAuthRepository_Expecter) FindUserByEmail

func (_e *MockAuthRepository_Expecter) FindUserByEmail(ctx interface{}, email interface{}) *MockAuthRepository_FindUserByEmail_Call

FindUserByEmail is a helper method to define mock.On call

  • ctx context.Context
  • email string

func (*MockAuthRepository_Expecter) FindUserByID

func (_e *MockAuthRepository_Expecter) FindUserByID(ctx interface{}, id interface{}) *MockAuthRepository_FindUserByID_Call

FindUserByID is a helper method to define mock.On call

  • ctx context.Context
  • id uuid.UUID

func (*MockAuthRepository_Expecter) UpdateUser

func (_e *MockAuthRepository_Expecter) UpdateUser(ctx interface{}, user interface{}) *MockAuthRepository_UpdateUser_Call

UpdateUser is a helper method to define mock.On call

  • ctx context.Context
  • user *domain.User

type MockAuthRepository_FindUserByEmail_Call

type MockAuthRepository_FindUserByEmail_Call struct {
	*mock.Call
}

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

func (*MockAuthRepository_FindUserByEmail_Call) Return

func (*MockAuthRepository_FindUserByEmail_Call) Run

func (*MockAuthRepository_FindUserByEmail_Call) RunAndReturn

type MockAuthRepository_FindUserByID_Call

type MockAuthRepository_FindUserByID_Call struct {
	*mock.Call
}

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

func (*MockAuthRepository_FindUserByID_Call) Return

func (*MockAuthRepository_FindUserByID_Call) Run

func (*MockAuthRepository_FindUserByID_Call) RunAndReturn

type MockAuthRepository_UpdateUser_Call

type MockAuthRepository_UpdateUser_Call struct {
	*mock.Call
}

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

func (*MockAuthRepository_UpdateUser_Call) Return

func (*MockAuthRepository_UpdateUser_Call) Run

func (*MockAuthRepository_UpdateUser_Call) RunAndReturn

type MockAuthService

type MockAuthService struct {
	mock.Mock
}

MockAuthService is an autogenerated mock type for the AuthService type

func NewMockAuthService

func NewMockAuthService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockAuthService

NewMockAuthService creates a new instance of MockAuthService. 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 (*MockAuthService) CreateAccount

CreateAccount provides a mock function for the type MockAuthService

func (*MockAuthService) DeleteUser

func (_mock *MockAuthService) DeleteUser(ctx context.Context, userID string) error

DeleteUser provides a mock function for the type MockAuthService

func (*MockAuthService) EXPECT

func (*MockAuthService) Login

Login provides a mock function for the type MockAuthService

func (*MockAuthService) Logout

func (_mock *MockAuthService) Logout(ctx context.Context, sessionID string) error

Logout provides a mock function for the type MockAuthService

func (*MockAuthService) ReactivateAccount

func (_mock *MockAuthService) ReactivateAccount(ctx context.Context, req domain.LoginRequest, device domain.DeviceInfo) (*domain.AuthResponse, error)

ReactivateAccount provides a mock function for the type MockAuthService

func (*MockAuthService) UpdatePassword

func (_mock *MockAuthService) UpdatePassword(ctx context.Context, userID string, req domain.UpdatePasswordRequest) error

UpdatePassword provides a mock function for the type MockAuthService

func (*MockAuthService) UpdateUser

func (_mock *MockAuthService) UpdateUser(ctx context.Context, userID string, req domain.UpdateUserRequest) (*domain.UserResponse, error)

UpdateUser provides a mock function for the type MockAuthService

type MockAuthService_CreateAccount_Call

type MockAuthService_CreateAccount_Call struct {
	*mock.Call
}

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

func (*MockAuthService_CreateAccount_Call) Return

func (*MockAuthService_CreateAccount_Call) Run

func (*MockAuthService_CreateAccount_Call) RunAndReturn

type MockAuthService_DeleteUser_Call

type MockAuthService_DeleteUser_Call struct {
	*mock.Call
}

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

func (*MockAuthService_DeleteUser_Call) Return

func (*MockAuthService_DeleteUser_Call) Run

func (*MockAuthService_DeleteUser_Call) RunAndReturn

type MockAuthService_Expecter

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

func (*MockAuthService_Expecter) CreateAccount

func (_e *MockAuthService_Expecter) CreateAccount(ctx interface{}, req interface{}, device interface{}) *MockAuthService_CreateAccount_Call

CreateAccount is a helper method to define mock.On call

  • ctx context.Context
  • req domain.CreateAccountRequest
  • device domain.DeviceInfo

func (*MockAuthService_Expecter) DeleteUser

func (_e *MockAuthService_Expecter) DeleteUser(ctx interface{}, userID interface{}) *MockAuthService_DeleteUser_Call

DeleteUser is a helper method to define mock.On call

  • ctx context.Context
  • userID string

func (*MockAuthService_Expecter) Login

func (_e *MockAuthService_Expecter) Login(ctx interface{}, req interface{}, device interface{}) *MockAuthService_Login_Call

Login is a helper method to define mock.On call

  • ctx context.Context
  • req domain.LoginRequest
  • device domain.DeviceInfo

func (*MockAuthService_Expecter) Logout

func (_e *MockAuthService_Expecter) Logout(ctx interface{}, sessionID interface{}) *MockAuthService_Logout_Call

Logout is a helper method to define mock.On call

  • ctx context.Context
  • sessionID string

func (*MockAuthService_Expecter) ReactivateAccount

func (_e *MockAuthService_Expecter) ReactivateAccount(ctx interface{}, req interface{}, device interface{}) *MockAuthService_ReactivateAccount_Call

ReactivateAccount is a helper method to define mock.On call

  • ctx context.Context
  • req domain.LoginRequest
  • device domain.DeviceInfo

func (*MockAuthService_Expecter) UpdatePassword

func (_e *MockAuthService_Expecter) UpdatePassword(ctx interface{}, userID interface{}, req interface{}) *MockAuthService_UpdatePassword_Call

UpdatePassword is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • req domain.UpdatePasswordRequest

func (*MockAuthService_Expecter) UpdateUser

func (_e *MockAuthService_Expecter) UpdateUser(ctx interface{}, userID interface{}, req interface{}) *MockAuthService_UpdateUser_Call

UpdateUser is a helper method to define mock.On call

  • ctx context.Context
  • userID string
  • req domain.UpdateUserRequest

type MockAuthService_Login_Call

type MockAuthService_Login_Call struct {
	*mock.Call
}

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

func (*MockAuthService_Login_Call) Return

func (*MockAuthService_Login_Call) Run

func (*MockAuthService_Login_Call) RunAndReturn

type MockAuthService_Logout_Call

type MockAuthService_Logout_Call struct {
	*mock.Call
}

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

func (*MockAuthService_Logout_Call) Return

func (*MockAuthService_Logout_Call) Run

func (*MockAuthService_Logout_Call) RunAndReturn

func (_c *MockAuthService_Logout_Call) RunAndReturn(run func(ctx context.Context, sessionID string) error) *MockAuthService_Logout_Call

type MockAuthService_ReactivateAccount_Call

type MockAuthService_ReactivateAccount_Call struct {
	*mock.Call
}

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

func (*MockAuthService_ReactivateAccount_Call) Return

func (*MockAuthService_ReactivateAccount_Call) Run

func (*MockAuthService_ReactivateAccount_Call) RunAndReturn

type MockAuthService_UpdatePassword_Call

type MockAuthService_UpdatePassword_Call struct {
	*mock.Call
}

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

func (*MockAuthService_UpdatePassword_Call) Return

func (*MockAuthService_UpdatePassword_Call) Run

func (*MockAuthService_UpdatePassword_Call) RunAndReturn

type MockAuthService_UpdateUser_Call

type MockAuthService_UpdateUser_Call struct {
	*mock.Call
}

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

func (*MockAuthService_UpdateUser_Call) Return

func (*MockAuthService_UpdateUser_Call) Run

func (*MockAuthService_UpdateUser_Call) RunAndReturn

type MockDeviceRepository

type MockDeviceRepository struct {
	mock.Mock
}

MockDeviceRepository is an autogenerated mock type for the DeviceRepository type

func NewMockDeviceRepository

func NewMockDeviceRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockDeviceRepository

NewMockDeviceRepository creates a new instance of MockDeviceRepository. 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 (*MockDeviceRepository) CreateDevice

func (_mock *MockDeviceRepository) CreateDevice(ctx context.Context, device *domain.Device) error

CreateDevice provides a mock function for the type MockDeviceRepository

func (*MockDeviceRepository) DeleteDeviceBySessionID

func (_mock *MockDeviceRepository) DeleteDeviceBySessionID(ctx context.Context, sessionID uuid.UUID) error

DeleteDeviceBySessionID provides a mock function for the type MockDeviceRepository

func (*MockDeviceRepository) DeleteDevicesByUserID

func (_mock *MockDeviceRepository) DeleteDevicesByUserID(ctx context.Context, userID uuid.UUID) error

DeleteDevicesByUserID provides a mock function for the type MockDeviceRepository

func (*MockDeviceRepository) DeleteExpiredDevices

func (_mock *MockDeviceRepository) DeleteExpiredDevices(ctx context.Context) (int64, error)

DeleteExpiredDevices provides a mock function for the type MockDeviceRepository

func (*MockDeviceRepository) EXPECT

func (*MockDeviceRepository) FindDeviceBySessionID

func (_mock *MockDeviceRepository) FindDeviceBySessionID(ctx context.Context, sessionID uuid.UUID) (*domain.Device, error)

FindDeviceBySessionID provides a mock function for the type MockDeviceRepository

type MockDeviceRepository_CreateDevice_Call

type MockDeviceRepository_CreateDevice_Call struct {
	*mock.Call
}

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

func (*MockDeviceRepository_CreateDevice_Call) Return

func (*MockDeviceRepository_CreateDevice_Call) Run

func (*MockDeviceRepository_CreateDevice_Call) RunAndReturn

type MockDeviceRepository_DeleteDeviceBySessionID_Call

type MockDeviceRepository_DeleteDeviceBySessionID_Call struct {
	*mock.Call
}

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

func (*MockDeviceRepository_DeleteDeviceBySessionID_Call) Return

func (*MockDeviceRepository_DeleteDeviceBySessionID_Call) Run

func (*MockDeviceRepository_DeleteDeviceBySessionID_Call) RunAndReturn

type MockDeviceRepository_DeleteDevicesByUserID_Call

type MockDeviceRepository_DeleteDevicesByUserID_Call struct {
	*mock.Call
}

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

func (*MockDeviceRepository_DeleteDevicesByUserID_Call) Return

func (*MockDeviceRepository_DeleteDevicesByUserID_Call) Run

func (*MockDeviceRepository_DeleteDevicesByUserID_Call) RunAndReturn

type MockDeviceRepository_DeleteExpiredDevices_Call

type MockDeviceRepository_DeleteExpiredDevices_Call struct {
	*mock.Call
}

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

func (*MockDeviceRepository_DeleteExpiredDevices_Call) Return

func (*MockDeviceRepository_DeleteExpiredDevices_Call) Run

func (*MockDeviceRepository_DeleteExpiredDevices_Call) RunAndReturn

type MockDeviceRepository_Expecter

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

func (*MockDeviceRepository_Expecter) CreateDevice

func (_e *MockDeviceRepository_Expecter) CreateDevice(ctx interface{}, device interface{}) *MockDeviceRepository_CreateDevice_Call

CreateDevice is a helper method to define mock.On call

  • ctx context.Context
  • device *domain.Device

func (*MockDeviceRepository_Expecter) DeleteDeviceBySessionID

func (_e *MockDeviceRepository_Expecter) DeleteDeviceBySessionID(ctx interface{}, sessionID interface{}) *MockDeviceRepository_DeleteDeviceBySessionID_Call

DeleteDeviceBySessionID is a helper method to define mock.On call

  • ctx context.Context
  • sessionID uuid.UUID

func (*MockDeviceRepository_Expecter) DeleteDevicesByUserID

func (_e *MockDeviceRepository_Expecter) DeleteDevicesByUserID(ctx interface{}, userID interface{}) *MockDeviceRepository_DeleteDevicesByUserID_Call

DeleteDevicesByUserID is a helper method to define mock.On call

  • ctx context.Context
  • userID uuid.UUID

func (*MockDeviceRepository_Expecter) DeleteExpiredDevices

func (_e *MockDeviceRepository_Expecter) DeleteExpiredDevices(ctx interface{}) *MockDeviceRepository_DeleteExpiredDevices_Call

DeleteExpiredDevices is a helper method to define mock.On call

  • ctx context.Context

func (*MockDeviceRepository_Expecter) FindDeviceBySessionID

func (_e *MockDeviceRepository_Expecter) FindDeviceBySessionID(ctx interface{}, sessionID interface{}) *MockDeviceRepository_FindDeviceBySessionID_Call

FindDeviceBySessionID is a helper method to define mock.On call

  • ctx context.Context
  • sessionID uuid.UUID

type MockDeviceRepository_FindDeviceBySessionID_Call

type MockDeviceRepository_FindDeviceBySessionID_Call struct {
	*mock.Call
}

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

func (*MockDeviceRepository_FindDeviceBySessionID_Call) Return

func (*MockDeviceRepository_FindDeviceBySessionID_Call) Run

func (*MockDeviceRepository_FindDeviceBySessionID_Call) RunAndReturn

type MockHealthCheckHandler

type MockHealthCheckHandler struct {
	mock.Mock
}

MockHealthCheckHandler is an autogenerated mock type for the HealthCheckHandler type

func NewMockHealthCheckHandler

func NewMockHealthCheckHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthCheckHandler

NewMockHealthCheckHandler creates a new instance of MockHealthCheckHandler. 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 (*MockHealthCheckHandler) Check

func (_mock *MockHealthCheckHandler) Check(ctx echo.Context) error

Check provides a mock function for the type MockHealthCheckHandler

func (*MockHealthCheckHandler) EXPECT

type MockHealthCheckHandler_Check_Call

type MockHealthCheckHandler_Check_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckHandler_Check_Call) Return

func (*MockHealthCheckHandler_Check_Call) Run

func (*MockHealthCheckHandler_Check_Call) RunAndReturn

type MockHealthCheckHandler_Expecter

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

func (*MockHealthCheckHandler_Expecter) Check

Check is a helper method to define mock.On call

  • ctx echo.Context

type MockHealthCheckerService

type MockHealthCheckerService struct {
	mock.Mock
}

MockHealthCheckerService is an autogenerated mock type for the HealthCheckerService type

func NewMockHealthCheckerService

func NewMockHealthCheckerService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockHealthCheckerService

NewMockHealthCheckerService creates a new instance of MockHealthCheckerService. 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 (*MockHealthCheckerService) Check

func (_mock *MockHealthCheckerService) Check() (domain.HealthCheck, []error)

Check provides a mock function for the type MockHealthCheckerService

func (*MockHealthCheckerService) EXPECT

type MockHealthCheckerService_Check_Call

type MockHealthCheckerService_Check_Call struct {
	*mock.Call
}

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

func (*MockHealthCheckerService_Check_Call) Return

func (*MockHealthCheckerService_Check_Call) Run

func (*MockHealthCheckerService_Check_Call) RunAndReturn

type MockHealthCheckerService_Expecter

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

func (*MockHealthCheckerService_Expecter) Check

Check is a helper method to define mock.On call

type MockPasswordHasher

type MockPasswordHasher struct {
	mock.Mock
}

MockPasswordHasher is an autogenerated mock type for the PasswordHasher type

func NewMockPasswordHasher

func NewMockPasswordHasher(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockPasswordHasher

NewMockPasswordHasher creates a new instance of MockPasswordHasher. 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 (*MockPasswordHasher) Check

func (_mock *MockPasswordHasher) Check(password string, hash string) error

Check provides a mock function for the type MockPasswordHasher

func (*MockPasswordHasher) EXPECT

func (*MockPasswordHasher) Hash

func (_mock *MockPasswordHasher) Hash(password string) (string, error)

Hash provides a mock function for the type MockPasswordHasher

type MockPasswordHasher_Check_Call

type MockPasswordHasher_Check_Call struct {
	*mock.Call
}

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

func (*MockPasswordHasher_Check_Call) Return

func (*MockPasswordHasher_Check_Call) Run

func (_c *MockPasswordHasher_Check_Call) Run(run func(password string, hash string)) *MockPasswordHasher_Check_Call

func (*MockPasswordHasher_Check_Call) RunAndReturn

func (_c *MockPasswordHasher_Check_Call) RunAndReturn(run func(password string, hash string) error) *MockPasswordHasher_Check_Call

type MockPasswordHasher_Expecter

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

func (*MockPasswordHasher_Expecter) Check

func (_e *MockPasswordHasher_Expecter) Check(password interface{}, hash interface{}) *MockPasswordHasher_Check_Call

Check is a helper method to define mock.On call

  • password string
  • hash string

func (*MockPasswordHasher_Expecter) Hash

func (_e *MockPasswordHasher_Expecter) Hash(password interface{}) *MockPasswordHasher_Hash_Call

Hash is a helper method to define mock.On call

  • password string

type MockPasswordHasher_Hash_Call

type MockPasswordHasher_Hash_Call struct {
	*mock.Call
}

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

func (*MockPasswordHasher_Hash_Call) Return

func (*MockPasswordHasher_Hash_Call) Run

func (*MockPasswordHasher_Hash_Call) RunAndReturn

func (_c *MockPasswordHasher_Hash_Call) RunAndReturn(run func(password string) (string, error)) *MockPasswordHasher_Hash_Call

type MockQuerier

type MockQuerier struct {
	mock.Mock
}

MockQuerier is an autogenerated mock type for the Querier type

func NewMockQuerier

func NewMockQuerier(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockQuerier

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

func (_m *MockQuerier) EXPECT() *MockQuerier_Expecter

func (*MockQuerier) FindByEmail

func (_mock *MockQuerier) FindByEmail(ctx context.Context, table string, email string, dest any) error

FindByEmail provides a mock function for the type MockQuerier

func (*MockQuerier) FindByID

func (_mock *MockQuerier) FindByID(ctx context.Context, table string, id any, dest any) error

FindByID provides a mock function for the type MockQuerier

type MockQuerier_Expecter

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

func (*MockQuerier_Expecter) FindByEmail

func (_e *MockQuerier_Expecter) FindByEmail(ctx interface{}, table interface{}, email interface{}, dest interface{}) *MockQuerier_FindByEmail_Call

FindByEmail is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • email string
  • dest any

func (*MockQuerier_Expecter) FindByID

func (_e *MockQuerier_Expecter) FindByID(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockQuerier_FindByID_Call

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • id any
  • dest any

type MockQuerier_FindByEmail_Call

type MockQuerier_FindByEmail_Call struct {
	*mock.Call
}

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

func (*MockQuerier_FindByEmail_Call) Return

func (*MockQuerier_FindByEmail_Call) Run

func (_c *MockQuerier_FindByEmail_Call) Run(run func(ctx context.Context, table string, email string, dest any)) *MockQuerier_FindByEmail_Call

func (*MockQuerier_FindByEmail_Call) RunAndReturn

func (_c *MockQuerier_FindByEmail_Call) RunAndReturn(run func(ctx context.Context, table string, email string, dest any) error) *MockQuerier_FindByEmail_Call

type MockQuerier_FindByID_Call

type MockQuerier_FindByID_Call struct {
	*mock.Call
}

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

func (*MockQuerier_FindByID_Call) Return

func (*MockQuerier_FindByID_Call) Run

func (_c *MockQuerier_FindByID_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockQuerier_FindByID_Call

func (*MockQuerier_FindByID_Call) RunAndReturn

func (_c *MockQuerier_FindByID_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockQuerier_FindByID_Call

type MockReader

type MockReader struct {
	mock.Mock
}

MockReader is an autogenerated mock type for the Reader type

func NewMockReader

func NewMockReader(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockReader

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

func (_m *MockReader) EXPECT() *MockReader_Expecter

func (*MockReader) GetDB

func (_mock *MockReader) GetDB() any

GetDB provides a mock function for the type MockReader

type MockReader_Expecter

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

func (*MockReader_Expecter) GetDB

GetDB is a helper method to define mock.On call

type MockReader_GetDB_Call

type MockReader_GetDB_Call struct {
	*mock.Call
}

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

func (*MockReader_GetDB_Call) Return

func (*MockReader_GetDB_Call) Run

func (_c *MockReader_GetDB_Call) Run(run func()) *MockReader_GetDB_Call

func (*MockReader_GetDB_Call) RunAndReturn

func (_c *MockReader_GetDB_Call) RunAndReturn(run func() any) *MockReader_GetDB_Call

type MockSessionRepository

type MockSessionRepository struct {
	mock.Mock
}

MockSessionRepository is an autogenerated mock type for the SessionRepository type

func NewMockSessionRepository

func NewMockSessionRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockSessionRepository

NewMockSessionRepository creates a new instance of MockSessionRepository. 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 (*MockSessionRepository) CreateSession

func (_mock *MockSessionRepository) CreateSession(ctx context.Context, session *domain.Session) error

CreateSession provides a mock function for the type MockSessionRepository

func (*MockSessionRepository) DeleteExpiredSessions

func (_mock *MockSessionRepository) DeleteExpiredSessions(ctx context.Context) (int64, error)

DeleteExpiredSessions provides a mock function for the type MockSessionRepository

func (*MockSessionRepository) DeleteSession

func (_mock *MockSessionRepository) DeleteSession(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)

DeleteSession provides a mock function for the type MockSessionRepository

func (*MockSessionRepository) DeleteSessionsByUserID

func (_mock *MockSessionRepository) DeleteSessionsByUserID(ctx context.Context, userID uuid.UUID) error

DeleteSessionsByUserID provides a mock function for the type MockSessionRepository

func (*MockSessionRepository) EXPECT

func (*MockSessionRepository) FindSessionByID

func (_mock *MockSessionRepository) FindSessionByID(ctx context.Context, sessionID uuid.UUID) (*domain.Session, error)

FindSessionByID provides a mock function for the type MockSessionRepository

func (*MockSessionRepository) UpdateSessionExpiry

func (_mock *MockSessionRepository) UpdateSessionExpiry(ctx context.Context, sessionID uuid.UUID, expiresAt time.Time) error

UpdateSessionExpiry provides a mock function for the type MockSessionRepository

type MockSessionRepository_CreateSession_Call

type MockSessionRepository_CreateSession_Call struct {
	*mock.Call
}

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

func (*MockSessionRepository_CreateSession_Call) Return

func (*MockSessionRepository_CreateSession_Call) Run

func (*MockSessionRepository_CreateSession_Call) RunAndReturn

type MockSessionRepository_DeleteExpiredSessions_Call

type MockSessionRepository_DeleteExpiredSessions_Call struct {
	*mock.Call
}

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

func (*MockSessionRepository_DeleteExpiredSessions_Call) Return

func (*MockSessionRepository_DeleteExpiredSessions_Call) Run

func (*MockSessionRepository_DeleteExpiredSessions_Call) RunAndReturn

type MockSessionRepository_DeleteSession_Call

type MockSessionRepository_DeleteSession_Call struct {
	*mock.Call
}

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

func (*MockSessionRepository_DeleteSession_Call) Return

func (*MockSessionRepository_DeleteSession_Call) Run

func (*MockSessionRepository_DeleteSession_Call) RunAndReturn

type MockSessionRepository_DeleteSessionsByUserID_Call

type MockSessionRepository_DeleteSessionsByUserID_Call struct {
	*mock.Call
}

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

func (*MockSessionRepository_DeleteSessionsByUserID_Call) Return

func (*MockSessionRepository_DeleteSessionsByUserID_Call) Run

func (*MockSessionRepository_DeleteSessionsByUserID_Call) RunAndReturn

type MockSessionRepository_Expecter

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

func (*MockSessionRepository_Expecter) CreateSession

func (_e *MockSessionRepository_Expecter) CreateSession(ctx interface{}, session interface{}) *MockSessionRepository_CreateSession_Call

CreateSession is a helper method to define mock.On call

  • ctx context.Context
  • session *domain.Session

func (*MockSessionRepository_Expecter) DeleteExpiredSessions

func (_e *MockSessionRepository_Expecter) DeleteExpiredSessions(ctx interface{}) *MockSessionRepository_DeleteExpiredSessions_Call

DeleteExpiredSessions is a helper method to define mock.On call

  • ctx context.Context

func (*MockSessionRepository_Expecter) DeleteSession

func (_e *MockSessionRepository_Expecter) DeleteSession(ctx interface{}, sessionID interface{}) *MockSessionRepository_DeleteSession_Call

DeleteSession is a helper method to define mock.On call

  • ctx context.Context
  • sessionID uuid.UUID

func (*MockSessionRepository_Expecter) DeleteSessionsByUserID

func (_e *MockSessionRepository_Expecter) DeleteSessionsByUserID(ctx interface{}, userID interface{}) *MockSessionRepository_DeleteSessionsByUserID_Call

DeleteSessionsByUserID is a helper method to define mock.On call

  • ctx context.Context
  • userID uuid.UUID

func (*MockSessionRepository_Expecter) FindSessionByID

func (_e *MockSessionRepository_Expecter) FindSessionByID(ctx interface{}, sessionID interface{}) *MockSessionRepository_FindSessionByID_Call

FindSessionByID is a helper method to define mock.On call

  • ctx context.Context
  • sessionID uuid.UUID

func (*MockSessionRepository_Expecter) UpdateSessionExpiry

func (_e *MockSessionRepository_Expecter) UpdateSessionExpiry(ctx interface{}, sessionID interface{}, expiresAt interface{}) *MockSessionRepository_UpdateSessionExpiry_Call

UpdateSessionExpiry is a helper method to define mock.On call

  • ctx context.Context
  • sessionID uuid.UUID
  • expiresAt time.Time

type MockSessionRepository_FindSessionByID_Call

type MockSessionRepository_FindSessionByID_Call struct {
	*mock.Call
}

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

func (*MockSessionRepository_FindSessionByID_Call) Return

func (*MockSessionRepository_FindSessionByID_Call) Run

func (*MockSessionRepository_FindSessionByID_Call) RunAndReturn

type MockSessionRepository_UpdateSessionExpiry_Call

type MockSessionRepository_UpdateSessionExpiry_Call struct {
	*mock.Call
}

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

func (*MockSessionRepository_UpdateSessionExpiry_Call) Return

func (*MockSessionRepository_UpdateSessionExpiry_Call) Run

func (*MockSessionRepository_UpdateSessionExpiry_Call) RunAndReturn

type MockStorage

type MockStorage struct {
	mock.Mock
}

MockStorage is an autogenerated mock type for the Storage type

func NewMockStorage

func NewMockStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStorage

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

func (_m *MockStorage) EXPECT() *MockStorage_Expecter

func (*MockStorage) FindByEmail

func (_mock *MockStorage) FindByEmail(ctx context.Context, table string, email string, dest any) error

FindByEmail provides a mock function for the type MockStorage

func (*MockStorage) FindByID

func (_mock *MockStorage) FindByID(ctx context.Context, table string, id any, dest any) error

FindByID provides a mock function for the type MockStorage

func (*MockStorage) FindOneAndDelete

func (_mock *MockStorage) FindOneAndDelete(ctx context.Context, table string, id any, dest any) error

FindOneAndDelete provides a mock function for the type MockStorage

func (*MockStorage) GetDB

func (_mock *MockStorage) GetDB() any

GetDB provides a mock function for the type MockStorage

func (*MockStorage) Insert

func (_mock *MockStorage) Insert(ctx context.Context, table string, data any) error

Insert provides a mock function for the type MockStorage

func (*MockStorage) Ping

func (_mock *MockStorage) Ping(ctx context.Context) error

Ping provides a mock function for the type MockStorage

func (*MockStorage) Update

func (_mock *MockStorage) Update(ctx context.Context, table string, data any) error

Update provides a mock function for the type MockStorage

type MockStorage_Expecter

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

func (*MockStorage_Expecter) FindByEmail

func (_e *MockStorage_Expecter) FindByEmail(ctx interface{}, table interface{}, email interface{}, dest interface{}) *MockStorage_FindByEmail_Call

FindByEmail is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • email string
  • dest any

func (*MockStorage_Expecter) FindByID

func (_e *MockStorage_Expecter) FindByID(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockStorage_FindByID_Call

FindByID is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • id any
  • dest any

func (*MockStorage_Expecter) FindOneAndDelete

func (_e *MockStorage_Expecter) FindOneAndDelete(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockStorage_FindOneAndDelete_Call

FindOneAndDelete is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • id any
  • dest any

func (*MockStorage_Expecter) GetDB

GetDB is a helper method to define mock.On call

func (*MockStorage_Expecter) Insert

func (_e *MockStorage_Expecter) Insert(ctx interface{}, table interface{}, data interface{}) *MockStorage_Insert_Call

Insert is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • data any

func (*MockStorage_Expecter) Ping

func (_e *MockStorage_Expecter) Ping(ctx interface{}) *MockStorage_Ping_Call

Ping is a helper method to define mock.On call

  • ctx context.Context

func (*MockStorage_Expecter) Update

func (_e *MockStorage_Expecter) Update(ctx interface{}, table interface{}, data interface{}) *MockStorage_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • data any

type MockStorage_FindByEmail_Call

type MockStorage_FindByEmail_Call struct {
	*mock.Call
}

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

func (*MockStorage_FindByEmail_Call) Return

func (*MockStorage_FindByEmail_Call) Run

func (_c *MockStorage_FindByEmail_Call) Run(run func(ctx context.Context, table string, email string, dest any)) *MockStorage_FindByEmail_Call

func (*MockStorage_FindByEmail_Call) RunAndReturn

func (_c *MockStorage_FindByEmail_Call) RunAndReturn(run func(ctx context.Context, table string, email string, dest any) error) *MockStorage_FindByEmail_Call

type MockStorage_FindByID_Call

type MockStorage_FindByID_Call struct {
	*mock.Call
}

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

func (*MockStorage_FindByID_Call) Return

func (*MockStorage_FindByID_Call) Run

func (_c *MockStorage_FindByID_Call) Run(run func(ctx context.Context, table string, id any, dest any)) *MockStorage_FindByID_Call

func (*MockStorage_FindByID_Call) RunAndReturn

func (_c *MockStorage_FindByID_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockStorage_FindByID_Call

type MockStorage_FindOneAndDelete_Call

type MockStorage_FindOneAndDelete_Call struct {
	*mock.Call
}

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

func (*MockStorage_FindOneAndDelete_Call) Return

func (*MockStorage_FindOneAndDelete_Call) Run

func (*MockStorage_FindOneAndDelete_Call) RunAndReturn

func (_c *MockStorage_FindOneAndDelete_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockStorage_FindOneAndDelete_Call

type MockStorage_GetDB_Call

type MockStorage_GetDB_Call struct {
	*mock.Call
}

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

func (*MockStorage_GetDB_Call) Return

func (*MockStorage_GetDB_Call) Run

func (_c *MockStorage_GetDB_Call) Run(run func()) *MockStorage_GetDB_Call

func (*MockStorage_GetDB_Call) RunAndReturn

func (_c *MockStorage_GetDB_Call) RunAndReturn(run func() any) *MockStorage_GetDB_Call

type MockStorage_Insert_Call

type MockStorage_Insert_Call struct {
	*mock.Call
}

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

func (*MockStorage_Insert_Call) Return

func (*MockStorage_Insert_Call) Run

func (_c *MockStorage_Insert_Call) Run(run func(ctx context.Context, table string, data any)) *MockStorage_Insert_Call

func (*MockStorage_Insert_Call) RunAndReturn

func (_c *MockStorage_Insert_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockStorage_Insert_Call

type MockStorage_Ping_Call

type MockStorage_Ping_Call struct {
	*mock.Call
}

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

func (*MockStorage_Ping_Call) Return

func (*MockStorage_Ping_Call) Run

func (*MockStorage_Ping_Call) RunAndReturn

func (_c *MockStorage_Ping_Call) RunAndReturn(run func(ctx context.Context) error) *MockStorage_Ping_Call

type MockStorage_Update_Call

type MockStorage_Update_Call struct {
	*mock.Call
}

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

func (*MockStorage_Update_Call) Return

func (*MockStorage_Update_Call) Run

func (_c *MockStorage_Update_Call) Run(run func(ctx context.Context, table string, data any)) *MockStorage_Update_Call

func (*MockStorage_Update_Call) RunAndReturn

func (_c *MockStorage_Update_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockStorage_Update_Call

type MockTokenProvider

type MockTokenProvider struct {
	mock.Mock
}

MockTokenProvider is an autogenerated mock type for the TokenProvider type

func NewMockTokenProvider

func NewMockTokenProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockTokenProvider

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

func (*MockTokenProvider) GenerateAccessToken

func (_mock *MockTokenProvider) GenerateAccessToken(sessionID string) (string, error)

GenerateAccessToken provides a mock function for the type MockTokenProvider

func (*MockTokenProvider) GenerateRefreshToken

func (_mock *MockTokenProvider) GenerateRefreshToken(userID string, sessionID string) (string, error)

GenerateRefreshToken provides a mock function for the type MockTokenProvider

func (*MockTokenProvider) ParseAccessToken

func (_mock *MockTokenProvider) ParseAccessToken(tokenString string) (*domain.AccessTokenClaims, error)

ParseAccessToken provides a mock function for the type MockTokenProvider

func (*MockTokenProvider) ParseRefreshToken

func (_mock *MockTokenProvider) ParseRefreshToken(tokenString string) (*domain.RefreshTokenClaims, error)

ParseRefreshToken provides a mock function for the type MockTokenProvider

type MockTokenProvider_Expecter

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

func (*MockTokenProvider_Expecter) GenerateAccessToken

func (_e *MockTokenProvider_Expecter) GenerateAccessToken(sessionID interface{}) *MockTokenProvider_GenerateAccessToken_Call

GenerateAccessToken is a helper method to define mock.On call

  • sessionID string

func (*MockTokenProvider_Expecter) GenerateRefreshToken

func (_e *MockTokenProvider_Expecter) GenerateRefreshToken(userID interface{}, sessionID interface{}) *MockTokenProvider_GenerateRefreshToken_Call

GenerateRefreshToken is a helper method to define mock.On call

  • userID string
  • sessionID string

func (*MockTokenProvider_Expecter) ParseAccessToken

func (_e *MockTokenProvider_Expecter) ParseAccessToken(tokenString interface{}) *MockTokenProvider_ParseAccessToken_Call

ParseAccessToken is a helper method to define mock.On call

  • tokenString string

func (*MockTokenProvider_Expecter) ParseRefreshToken

func (_e *MockTokenProvider_Expecter) ParseRefreshToken(tokenString interface{}) *MockTokenProvider_ParseRefreshToken_Call

ParseRefreshToken is a helper method to define mock.On call

  • tokenString string

type MockTokenProvider_GenerateAccessToken_Call

type MockTokenProvider_GenerateAccessToken_Call struct {
	*mock.Call
}

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

func (*MockTokenProvider_GenerateAccessToken_Call) Return

func (*MockTokenProvider_GenerateAccessToken_Call) Run

func (*MockTokenProvider_GenerateAccessToken_Call) RunAndReturn

type MockTokenProvider_GenerateRefreshToken_Call

type MockTokenProvider_GenerateRefreshToken_Call struct {
	*mock.Call
}

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

func (*MockTokenProvider_GenerateRefreshToken_Call) Return

func (*MockTokenProvider_GenerateRefreshToken_Call) Run

func (*MockTokenProvider_GenerateRefreshToken_Call) RunAndReturn

type MockTokenProvider_ParseAccessToken_Call

type MockTokenProvider_ParseAccessToken_Call struct {
	*mock.Call
}

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

func (*MockTokenProvider_ParseAccessToken_Call) Return

func (*MockTokenProvider_ParseAccessToken_Call) Run

func (*MockTokenProvider_ParseAccessToken_Call) RunAndReturn

type MockTokenProvider_ParseRefreshToken_Call

type MockTokenProvider_ParseRefreshToken_Call struct {
	*mock.Call
}

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

func (*MockTokenProvider_ParseRefreshToken_Call) Return

func (*MockTokenProvider_ParseRefreshToken_Call) Run

func (*MockTokenProvider_ParseRefreshToken_Call) RunAndReturn

type MockWriter

type MockWriter struct {
	mock.Mock
}

MockWriter is an autogenerated mock type for the Writer type

func NewMockWriter

func NewMockWriter(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockWriter

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

func (_m *MockWriter) EXPECT() *MockWriter_Expecter

func (*MockWriter) FindOneAndDelete

func (_mock *MockWriter) FindOneAndDelete(ctx context.Context, table string, id any, dest any) error

FindOneAndDelete provides a mock function for the type MockWriter

func (*MockWriter) Insert

func (_mock *MockWriter) Insert(ctx context.Context, table string, data any) error

Insert provides a mock function for the type MockWriter

func (*MockWriter) Update

func (_mock *MockWriter) Update(ctx context.Context, table string, data any) error

Update provides a mock function for the type MockWriter

type MockWriter_Expecter

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

func (*MockWriter_Expecter) FindOneAndDelete

func (_e *MockWriter_Expecter) FindOneAndDelete(ctx interface{}, table interface{}, id interface{}, dest interface{}) *MockWriter_FindOneAndDelete_Call

FindOneAndDelete is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • id any
  • dest any

func (*MockWriter_Expecter) Insert

func (_e *MockWriter_Expecter) Insert(ctx interface{}, table interface{}, data interface{}) *MockWriter_Insert_Call

Insert is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • data any

func (*MockWriter_Expecter) Update

func (_e *MockWriter_Expecter) Update(ctx interface{}, table interface{}, data interface{}) *MockWriter_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • table string
  • data any

type MockWriter_FindOneAndDelete_Call

type MockWriter_FindOneAndDelete_Call struct {
	*mock.Call
}

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

func (*MockWriter_FindOneAndDelete_Call) Return

func (*MockWriter_FindOneAndDelete_Call) Run

func (*MockWriter_FindOneAndDelete_Call) RunAndReturn

func (_c *MockWriter_FindOneAndDelete_Call) RunAndReturn(run func(ctx context.Context, table string, id any, dest any) error) *MockWriter_FindOneAndDelete_Call

type MockWriter_Insert_Call

type MockWriter_Insert_Call struct {
	*mock.Call
}

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

func (*MockWriter_Insert_Call) Return

func (*MockWriter_Insert_Call) Run

func (_c *MockWriter_Insert_Call) Run(run func(ctx context.Context, table string, data any)) *MockWriter_Insert_Call

func (*MockWriter_Insert_Call) RunAndReturn

func (_c *MockWriter_Insert_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockWriter_Insert_Call

type MockWriter_Update_Call

type MockWriter_Update_Call struct {
	*mock.Call
}

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

func (*MockWriter_Update_Call) Return

func (*MockWriter_Update_Call) Run

func (_c *MockWriter_Update_Call) Run(run func(ctx context.Context, table string, data any)) *MockWriter_Update_Call

func (*MockWriter_Update_Call) RunAndReturn

func (_c *MockWriter_Update_Call) RunAndReturn(run func(ctx context.Context, table string, data any) error) *MockWriter_Update_Call

Jump to

Keyboard shortcuts

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