Documentation
¶
Index ¶
- type MockAuditLogRepository
- func (_mock *MockAuditLogRepository) Create(ctx context.Context, auditLog *domain.AuditLog) error
- func (_m *MockAuditLogRepository) EXPECT() *MockAuditLogRepository_Expecter
- func (_mock *MockAuditLogRepository) List(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, ...) ([]*domain.AuditLog, error)
- type MockAuditLogRepository_Create_Call
- func (_c *MockAuditLogRepository_Create_Call) Return(err error) *MockAuditLogRepository_Create_Call
- func (_c *MockAuditLogRepository_Create_Call) Run(run func(ctx context.Context, auditLog *domain.AuditLog)) *MockAuditLogRepository_Create_Call
- func (_c *MockAuditLogRepository_Create_Call) RunAndReturn(run func(ctx context.Context, auditLog *domain.AuditLog) error) *MockAuditLogRepository_Create_Call
- type MockAuditLogRepository_Expecter
- type MockAuditLogRepository_List_Call
- func (_c *MockAuditLogRepository_List_Call) Return(auditLogs []*domain.AuditLog, err error) *MockAuditLogRepository_List_Call
- func (_c *MockAuditLogRepository_List_Call) Run(...) *MockAuditLogRepository_List_Call
- func (_c *MockAuditLogRepository_List_Call) RunAndReturn(...) *MockAuditLogRepository_List_Call
- type MockAuditLogUseCase
- func (_mock *MockAuditLogUseCase) Create(ctx context.Context, requestID uuid.UUID, clientID uuid.UUID, ...) error
- func (_m *MockAuditLogUseCase) EXPECT() *MockAuditLogUseCase_Expecter
- func (_mock *MockAuditLogUseCase) List(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, ...) ([]*domain.AuditLog, error)
- type MockAuditLogUseCase_Create_Call
- func (_c *MockAuditLogUseCase_Create_Call) Return(err error) *MockAuditLogUseCase_Create_Call
- func (_c *MockAuditLogUseCase_Create_Call) Run(run func(ctx context.Context, requestID uuid.UUID, clientID uuid.UUID, ...)) *MockAuditLogUseCase_Create_Call
- func (_c *MockAuditLogUseCase_Create_Call) RunAndReturn(...) *MockAuditLogUseCase_Create_Call
- type MockAuditLogUseCase_Expecter
- type MockAuditLogUseCase_List_Call
- type MockClientRepository
- func (_mock *MockClientRepository) Create(ctx context.Context, client *domain.Client) error
- func (_m *MockClientRepository) EXPECT() *MockClientRepository_Expecter
- func (_mock *MockClientRepository) Get(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)
- func (_mock *MockClientRepository) List(ctx context.Context, offset int, limit int) ([]*domain.Client, error)
- func (_mock *MockClientRepository) Update(ctx context.Context, client *domain.Client) error
- type MockClientRepository_Create_Call
- func (_c *MockClientRepository_Create_Call) Return(err error) *MockClientRepository_Create_Call
- func (_c *MockClientRepository_Create_Call) Run(run func(ctx context.Context, client *domain.Client)) *MockClientRepository_Create_Call
- func (_c *MockClientRepository_Create_Call) RunAndReturn(run func(ctx context.Context, client *domain.Client) error) *MockClientRepository_Create_Call
- type MockClientRepository_Expecter
- func (_e *MockClientRepository_Expecter) Create(ctx interface{}, client interface{}) *MockClientRepository_Create_Call
- func (_e *MockClientRepository_Expecter) Get(ctx interface{}, clientID interface{}) *MockClientRepository_Get_Call
- func (_e *MockClientRepository_Expecter) List(ctx interface{}, offset interface{}, limit interface{}) *MockClientRepository_List_Call
- func (_e *MockClientRepository_Expecter) Update(ctx interface{}, client interface{}) *MockClientRepository_Update_Call
- type MockClientRepository_Get_Call
- func (_c *MockClientRepository_Get_Call) Return(client *domain.Client, err error) *MockClientRepository_Get_Call
- func (_c *MockClientRepository_Get_Call) Run(run func(ctx context.Context, clientID uuid.UUID)) *MockClientRepository_Get_Call
- func (_c *MockClientRepository_Get_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)) *MockClientRepository_Get_Call
- type MockClientRepository_List_Call
- func (_c *MockClientRepository_List_Call) Return(clients []*domain.Client, err error) *MockClientRepository_List_Call
- func (_c *MockClientRepository_List_Call) Run(run func(ctx context.Context, offset int, limit int)) *MockClientRepository_List_Call
- func (_c *MockClientRepository_List_Call) RunAndReturn(run func(ctx context.Context, offset int, limit int) ([]*domain.Client, error)) *MockClientRepository_List_Call
- type MockClientRepository_Update_Call
- func (_c *MockClientRepository_Update_Call) Return(err error) *MockClientRepository_Update_Call
- func (_c *MockClientRepository_Update_Call) Run(run func(ctx context.Context, client *domain.Client)) *MockClientRepository_Update_Call
- func (_c *MockClientRepository_Update_Call) RunAndReturn(run func(ctx context.Context, client *domain.Client) error) *MockClientRepository_Update_Call
- type MockClientUseCase
- func (_mock *MockClientUseCase) Create(ctx context.Context, createClientInput *domain.CreateClientInput) (*domain.CreateClientOutput, error)
- func (_mock *MockClientUseCase) Delete(ctx context.Context, clientID uuid.UUID) error
- func (_m *MockClientUseCase) EXPECT() *MockClientUseCase_Expecter
- func (_mock *MockClientUseCase) Get(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)
- func (_mock *MockClientUseCase) List(ctx context.Context, offset int, limit int) ([]*domain.Client, error)
- func (_mock *MockClientUseCase) Update(ctx context.Context, clientID uuid.UUID, ...) error
- type MockClientUseCase_Create_Call
- func (_c *MockClientUseCase_Create_Call) Return(createClientOutput *domain.CreateClientOutput, err error) *MockClientUseCase_Create_Call
- func (_c *MockClientUseCase_Create_Call) Run(run func(ctx context.Context, createClientInput *domain.CreateClientInput)) *MockClientUseCase_Create_Call
- func (_c *MockClientUseCase_Create_Call) RunAndReturn(...) *MockClientUseCase_Create_Call
- type MockClientUseCase_Delete_Call
- func (_c *MockClientUseCase_Delete_Call) Return(err error) *MockClientUseCase_Delete_Call
- func (_c *MockClientUseCase_Delete_Call) Run(run func(ctx context.Context, clientID uuid.UUID)) *MockClientUseCase_Delete_Call
- func (_c *MockClientUseCase_Delete_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID) error) *MockClientUseCase_Delete_Call
- type MockClientUseCase_Expecter
- func (_e *MockClientUseCase_Expecter) Create(ctx interface{}, createClientInput interface{}) *MockClientUseCase_Create_Call
- func (_e *MockClientUseCase_Expecter) Delete(ctx interface{}, clientID interface{}) *MockClientUseCase_Delete_Call
- func (_e *MockClientUseCase_Expecter) Get(ctx interface{}, clientID interface{}) *MockClientUseCase_Get_Call
- func (_e *MockClientUseCase_Expecter) List(ctx interface{}, offset interface{}, limit interface{}) *MockClientUseCase_List_Call
- func (_e *MockClientUseCase_Expecter) Update(ctx interface{}, clientID interface{}, updateClientInput interface{}) *MockClientUseCase_Update_Call
- type MockClientUseCase_Get_Call
- func (_c *MockClientUseCase_Get_Call) Return(client *domain.Client, err error) *MockClientUseCase_Get_Call
- func (_c *MockClientUseCase_Get_Call) Run(run func(ctx context.Context, clientID uuid.UUID)) *MockClientUseCase_Get_Call
- func (_c *MockClientUseCase_Get_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)) *MockClientUseCase_Get_Call
- type MockClientUseCase_List_Call
- func (_c *MockClientUseCase_List_Call) Return(clients []*domain.Client, err error) *MockClientUseCase_List_Call
- func (_c *MockClientUseCase_List_Call) Run(run func(ctx context.Context, offset int, limit int)) *MockClientUseCase_List_Call
- func (_c *MockClientUseCase_List_Call) RunAndReturn(run func(ctx context.Context, offset int, limit int) ([]*domain.Client, error)) *MockClientUseCase_List_Call
- type MockClientUseCase_Update_Call
- func (_c *MockClientUseCase_Update_Call) Return(err error) *MockClientUseCase_Update_Call
- func (_c *MockClientUseCase_Update_Call) Run(run func(ctx context.Context, clientID uuid.UUID, ...)) *MockClientUseCase_Update_Call
- func (_c *MockClientUseCase_Update_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID, ...) error) *MockClientUseCase_Update_Call
- type MockTokenRepository
- func (_mock *MockTokenRepository) Create(ctx context.Context, token *domain.Token) error
- func (_m *MockTokenRepository) EXPECT() *MockTokenRepository_Expecter
- func (_mock *MockTokenRepository) Get(ctx context.Context, tokenID uuid.UUID) (*domain.Token, error)
- func (_mock *MockTokenRepository) GetByTokenHash(ctx context.Context, tokenHash string) (*domain.Token, error)
- func (_mock *MockTokenRepository) Update(ctx context.Context, token *domain.Token) error
- type MockTokenRepository_Create_Call
- func (_c *MockTokenRepository_Create_Call) Return(err error) *MockTokenRepository_Create_Call
- func (_c *MockTokenRepository_Create_Call) Run(run func(ctx context.Context, token *domain.Token)) *MockTokenRepository_Create_Call
- func (_c *MockTokenRepository_Create_Call) RunAndReturn(run func(ctx context.Context, token *domain.Token) error) *MockTokenRepository_Create_Call
- type MockTokenRepository_Expecter
- func (_e *MockTokenRepository_Expecter) Create(ctx interface{}, token interface{}) *MockTokenRepository_Create_Call
- func (_e *MockTokenRepository_Expecter) Get(ctx interface{}, tokenID interface{}) *MockTokenRepository_Get_Call
- func (_e *MockTokenRepository_Expecter) GetByTokenHash(ctx interface{}, tokenHash interface{}) *MockTokenRepository_GetByTokenHash_Call
- func (_e *MockTokenRepository_Expecter) Update(ctx interface{}, token interface{}) *MockTokenRepository_Update_Call
- type MockTokenRepository_GetByTokenHash_Call
- func (_c *MockTokenRepository_GetByTokenHash_Call) Return(token *domain.Token, err error) *MockTokenRepository_GetByTokenHash_Call
- func (_c *MockTokenRepository_GetByTokenHash_Call) Run(run func(ctx context.Context, tokenHash string)) *MockTokenRepository_GetByTokenHash_Call
- func (_c *MockTokenRepository_GetByTokenHash_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) (*domain.Token, error)) *MockTokenRepository_GetByTokenHash_Call
- type MockTokenRepository_Get_Call
- func (_c *MockTokenRepository_Get_Call) Return(token *domain.Token, err error) *MockTokenRepository_Get_Call
- func (_c *MockTokenRepository_Get_Call) Run(run func(ctx context.Context, tokenID uuid.UUID)) *MockTokenRepository_Get_Call
- func (_c *MockTokenRepository_Get_Call) RunAndReturn(run func(ctx context.Context, tokenID uuid.UUID) (*domain.Token, error)) *MockTokenRepository_Get_Call
- type MockTokenRepository_Update_Call
- func (_c *MockTokenRepository_Update_Call) Return(err error) *MockTokenRepository_Update_Call
- func (_c *MockTokenRepository_Update_Call) Run(run func(ctx context.Context, token *domain.Token)) *MockTokenRepository_Update_Call
- func (_c *MockTokenRepository_Update_Call) RunAndReturn(run func(ctx context.Context, token *domain.Token) error) *MockTokenRepository_Update_Call
- type MockTokenUseCase
- func (_mock *MockTokenUseCase) Authenticate(ctx context.Context, tokenHash string) (*domain.Client, error)
- func (_m *MockTokenUseCase) EXPECT() *MockTokenUseCase_Expecter
- func (_mock *MockTokenUseCase) Issue(ctx context.Context, issueTokenInput *domain.IssueTokenInput) (*domain.IssueTokenOutput, error)
- type MockTokenUseCase_Authenticate_Call
- func (_c *MockTokenUseCase_Authenticate_Call) Return(client *domain.Client, err error) *MockTokenUseCase_Authenticate_Call
- func (_c *MockTokenUseCase_Authenticate_Call) Run(run func(ctx context.Context, tokenHash string)) *MockTokenUseCase_Authenticate_Call
- func (_c *MockTokenUseCase_Authenticate_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) (*domain.Client, error)) *MockTokenUseCase_Authenticate_Call
- type MockTokenUseCase_Expecter
- type MockTokenUseCase_Issue_Call
- func (_c *MockTokenUseCase_Issue_Call) Return(issueTokenOutput *domain.IssueTokenOutput, err error) *MockTokenUseCase_Issue_Call
- func (_c *MockTokenUseCase_Issue_Call) Run(run func(ctx context.Context, issueTokenInput *domain.IssueTokenInput)) *MockTokenUseCase_Issue_Call
- func (_c *MockTokenUseCase_Issue_Call) RunAndReturn(...) *MockTokenUseCase_Issue_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuditLogRepository ¶
MockAuditLogRepository is an autogenerated mock type for the AuditLogRepository type
func NewMockAuditLogRepository ¶
func NewMockAuditLogRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuditLogRepository
NewMockAuditLogRepository creates a new instance of MockAuditLogRepository. 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 (*MockAuditLogRepository) Create ¶
Create provides a mock function for the type MockAuditLogRepository
func (*MockAuditLogRepository) EXPECT ¶
func (_m *MockAuditLogRepository) EXPECT() *MockAuditLogRepository_Expecter
type MockAuditLogRepository_Create_Call ¶
MockAuditLogRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockAuditLogRepository_Create_Call) Return ¶
func (_c *MockAuditLogRepository_Create_Call) Return(err error) *MockAuditLogRepository_Create_Call
func (*MockAuditLogRepository_Create_Call) Run ¶
func (_c *MockAuditLogRepository_Create_Call) Run(run func(ctx context.Context, auditLog *domain.AuditLog)) *MockAuditLogRepository_Create_Call
func (*MockAuditLogRepository_Create_Call) RunAndReturn ¶
func (_c *MockAuditLogRepository_Create_Call) RunAndReturn(run func(ctx context.Context, auditLog *domain.AuditLog) error) *MockAuditLogRepository_Create_Call
type MockAuditLogRepository_Expecter ¶
type MockAuditLogRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuditLogRepository_Expecter) Create ¶
func (_e *MockAuditLogRepository_Expecter) Create(ctx interface{}, auditLog interface{}) *MockAuditLogRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- auditLog *domain.AuditLog
func (*MockAuditLogRepository_Expecter) List ¶
func (_e *MockAuditLogRepository_Expecter) List(ctx interface{}, offset interface{}, limit interface{}, createdAtFrom interface{}, createdAtTo interface{}) *MockAuditLogRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- offset int
- limit int
- createdAtFrom *time.Time
- createdAtTo *time.Time
type MockAuditLogRepository_List_Call ¶
MockAuditLogRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockAuditLogRepository_List_Call) Return ¶
func (_c *MockAuditLogRepository_List_Call) Return(auditLogs []*domain.AuditLog, err error) *MockAuditLogRepository_List_Call
func (*MockAuditLogRepository_List_Call) Run ¶
func (_c *MockAuditLogRepository_List_Call) Run(run func(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, createdAtTo *time.Time)) *MockAuditLogRepository_List_Call
func (*MockAuditLogRepository_List_Call) RunAndReturn ¶
type MockAuditLogUseCase ¶
MockAuditLogUseCase is an autogenerated mock type for the AuditLogUseCase type
func NewMockAuditLogUseCase ¶
func NewMockAuditLogUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuditLogUseCase
NewMockAuditLogUseCase creates a new instance of MockAuditLogUseCase. 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 (*MockAuditLogUseCase) Create ¶
func (_mock *MockAuditLogUseCase) Create(ctx context.Context, requestID uuid.UUID, clientID uuid.UUID, capability domain.Capability, path string, metadata map[string]any) error
Create provides a mock function for the type MockAuditLogUseCase
func (*MockAuditLogUseCase) EXPECT ¶
func (_m *MockAuditLogUseCase) EXPECT() *MockAuditLogUseCase_Expecter
type MockAuditLogUseCase_Create_Call ¶
MockAuditLogUseCase_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockAuditLogUseCase_Create_Call) Return ¶
func (_c *MockAuditLogUseCase_Create_Call) Return(err error) *MockAuditLogUseCase_Create_Call
func (*MockAuditLogUseCase_Create_Call) Run ¶
func (_c *MockAuditLogUseCase_Create_Call) Run(run func(ctx context.Context, requestID uuid.UUID, clientID uuid.UUID, capability domain.Capability, path string, metadata map[string]any)) *MockAuditLogUseCase_Create_Call
func (*MockAuditLogUseCase_Create_Call) RunAndReturn ¶
func (_c *MockAuditLogUseCase_Create_Call) RunAndReturn(run func(ctx context.Context, requestID uuid.UUID, clientID uuid.UUID, capability domain.Capability, path string, metadata map[string]any) error) *MockAuditLogUseCase_Create_Call
type MockAuditLogUseCase_Expecter ¶
type MockAuditLogUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuditLogUseCase_Expecter) Create ¶
func (_e *MockAuditLogUseCase_Expecter) Create(ctx interface{}, requestID interface{}, clientID interface{}, capability interface{}, path interface{}, metadata interface{}) *MockAuditLogUseCase_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- requestID uuid.UUID
- clientID uuid.UUID
- capability domain.Capability
- path string
- metadata map[string]any
func (*MockAuditLogUseCase_Expecter) List ¶
func (_e *MockAuditLogUseCase_Expecter) List(ctx interface{}, offset interface{}, limit interface{}, createdAtFrom interface{}, createdAtTo interface{}) *MockAuditLogUseCase_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- offset int
- limit int
- createdAtFrom *time.Time
- createdAtTo *time.Time
type MockAuditLogUseCase_List_Call ¶
MockAuditLogUseCase_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockAuditLogUseCase_List_Call) Return ¶
func (_c *MockAuditLogUseCase_List_Call) Return(auditLogs []*domain.AuditLog, err error) *MockAuditLogUseCase_List_Call
func (*MockAuditLogUseCase_List_Call) Run ¶
func (_c *MockAuditLogUseCase_List_Call) Run(run func(ctx context.Context, offset int, limit int, createdAtFrom *time.Time, createdAtTo *time.Time)) *MockAuditLogUseCase_List_Call
func (*MockAuditLogUseCase_List_Call) RunAndReturn ¶
type MockClientRepository ¶
MockClientRepository is an autogenerated mock type for the ClientRepository type
func NewMockClientRepository ¶
func NewMockClientRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockClientRepository
NewMockClientRepository creates a new instance of MockClientRepository. 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 (*MockClientRepository) Create ¶
Create provides a mock function for the type MockClientRepository
func (*MockClientRepository) EXPECT ¶
func (_m *MockClientRepository) EXPECT() *MockClientRepository_Expecter
func (*MockClientRepository) Get ¶
func (_mock *MockClientRepository) Get(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)
Get provides a mock function for the type MockClientRepository
type MockClientRepository_Create_Call ¶
MockClientRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockClientRepository_Create_Call) Return ¶
func (_c *MockClientRepository_Create_Call) Return(err error) *MockClientRepository_Create_Call
func (*MockClientRepository_Create_Call) Run ¶
func (_c *MockClientRepository_Create_Call) Run(run func(ctx context.Context, client *domain.Client)) *MockClientRepository_Create_Call
func (*MockClientRepository_Create_Call) RunAndReturn ¶
func (_c *MockClientRepository_Create_Call) RunAndReturn(run func(ctx context.Context, client *domain.Client) error) *MockClientRepository_Create_Call
type MockClientRepository_Expecter ¶
type MockClientRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClientRepository_Expecter) Create ¶
func (_e *MockClientRepository_Expecter) Create(ctx interface{}, client interface{}) *MockClientRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- client *domain.Client
func (*MockClientRepository_Expecter) Get ¶
func (_e *MockClientRepository_Expecter) Get(ctx interface{}, clientID interface{}) *MockClientRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- clientID uuid.UUID
func (*MockClientRepository_Expecter) List ¶
func (_e *MockClientRepository_Expecter) List(ctx interface{}, offset interface{}, limit interface{}) *MockClientRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- offset int
- limit int
func (*MockClientRepository_Expecter) Update ¶
func (_e *MockClientRepository_Expecter) Update(ctx interface{}, client interface{}) *MockClientRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- client *domain.Client
type MockClientRepository_Get_Call ¶
MockClientRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockClientRepository_Get_Call) Return ¶
func (_c *MockClientRepository_Get_Call) Return(client *domain.Client, err error) *MockClientRepository_Get_Call
func (*MockClientRepository_Get_Call) Run ¶
func (_c *MockClientRepository_Get_Call) Run(run func(ctx context.Context, clientID uuid.UUID)) *MockClientRepository_Get_Call
func (*MockClientRepository_Get_Call) RunAndReturn ¶
func (_c *MockClientRepository_Get_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)) *MockClientRepository_Get_Call
type MockClientRepository_List_Call ¶
MockClientRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockClientRepository_List_Call) Return ¶
func (_c *MockClientRepository_List_Call) Return(clients []*domain.Client, err error) *MockClientRepository_List_Call
func (*MockClientRepository_List_Call) Run ¶
func (_c *MockClientRepository_List_Call) Run(run func(ctx context.Context, offset int, limit int)) *MockClientRepository_List_Call
func (*MockClientRepository_List_Call) RunAndReturn ¶
func (_c *MockClientRepository_List_Call) RunAndReturn(run func(ctx context.Context, offset int, limit int) ([]*domain.Client, error)) *MockClientRepository_List_Call
type MockClientRepository_Update_Call ¶
MockClientRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockClientRepository_Update_Call) Return ¶
func (_c *MockClientRepository_Update_Call) Return(err error) *MockClientRepository_Update_Call
func (*MockClientRepository_Update_Call) Run ¶
func (_c *MockClientRepository_Update_Call) Run(run func(ctx context.Context, client *domain.Client)) *MockClientRepository_Update_Call
func (*MockClientRepository_Update_Call) RunAndReturn ¶
func (_c *MockClientRepository_Update_Call) RunAndReturn(run func(ctx context.Context, client *domain.Client) error) *MockClientRepository_Update_Call
type MockClientUseCase ¶
MockClientUseCase is an autogenerated mock type for the ClientUseCase type
func NewMockClientUseCase ¶
func NewMockClientUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockClientUseCase
NewMockClientUseCase creates a new instance of MockClientUseCase. 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 (*MockClientUseCase) Create ¶
func (_mock *MockClientUseCase) Create(ctx context.Context, createClientInput *domain.CreateClientInput) (*domain.CreateClientOutput, error)
Create provides a mock function for the type MockClientUseCase
func (*MockClientUseCase) EXPECT ¶
func (_m *MockClientUseCase) EXPECT() *MockClientUseCase_Expecter
func (*MockClientUseCase) Get ¶
func (_mock *MockClientUseCase) Get(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)
Get provides a mock function for the type MockClientUseCase
func (*MockClientUseCase) List ¶
func (_mock *MockClientUseCase) List(ctx context.Context, offset int, limit int) ([]*domain.Client, error)
List provides a mock function for the type MockClientUseCase
func (*MockClientUseCase) Update ¶
func (_mock *MockClientUseCase) Update(ctx context.Context, clientID uuid.UUID, updateClientInput *domain.UpdateClientInput) error
Update provides a mock function for the type MockClientUseCase
type MockClientUseCase_Create_Call ¶
MockClientUseCase_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockClientUseCase_Create_Call) Return ¶
func (_c *MockClientUseCase_Create_Call) Return(createClientOutput *domain.CreateClientOutput, err error) *MockClientUseCase_Create_Call
func (*MockClientUseCase_Create_Call) Run ¶
func (_c *MockClientUseCase_Create_Call) Run(run func(ctx context.Context, createClientInput *domain.CreateClientInput)) *MockClientUseCase_Create_Call
func (*MockClientUseCase_Create_Call) RunAndReturn ¶
func (_c *MockClientUseCase_Create_Call) RunAndReturn(run func(ctx context.Context, createClientInput *domain.CreateClientInput) (*domain.CreateClientOutput, error)) *MockClientUseCase_Create_Call
type MockClientUseCase_Delete_Call ¶
MockClientUseCase_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockClientUseCase_Delete_Call) Return ¶
func (_c *MockClientUseCase_Delete_Call) Return(err error) *MockClientUseCase_Delete_Call
func (*MockClientUseCase_Delete_Call) Run ¶
func (_c *MockClientUseCase_Delete_Call) Run(run func(ctx context.Context, clientID uuid.UUID)) *MockClientUseCase_Delete_Call
func (*MockClientUseCase_Delete_Call) RunAndReturn ¶
func (_c *MockClientUseCase_Delete_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID) error) *MockClientUseCase_Delete_Call
type MockClientUseCase_Expecter ¶
type MockClientUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClientUseCase_Expecter) Create ¶
func (_e *MockClientUseCase_Expecter) Create(ctx interface{}, createClientInput interface{}) *MockClientUseCase_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- createClientInput *domain.CreateClientInput
func (*MockClientUseCase_Expecter) Delete ¶
func (_e *MockClientUseCase_Expecter) Delete(ctx interface{}, clientID interface{}) *MockClientUseCase_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- clientID uuid.UUID
func (*MockClientUseCase_Expecter) Get ¶
func (_e *MockClientUseCase_Expecter) Get(ctx interface{}, clientID interface{}) *MockClientUseCase_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- clientID uuid.UUID
func (*MockClientUseCase_Expecter) List ¶
func (_e *MockClientUseCase_Expecter) List(ctx interface{}, offset interface{}, limit interface{}) *MockClientUseCase_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- offset int
- limit int
func (*MockClientUseCase_Expecter) Update ¶
func (_e *MockClientUseCase_Expecter) Update(ctx interface{}, clientID interface{}, updateClientInput interface{}) *MockClientUseCase_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- clientID uuid.UUID
- updateClientInput *domain.UpdateClientInput
type MockClientUseCase_Get_Call ¶
MockClientUseCase_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockClientUseCase_Get_Call) Return ¶
func (_c *MockClientUseCase_Get_Call) Return(client *domain.Client, err error) *MockClientUseCase_Get_Call
func (*MockClientUseCase_Get_Call) Run ¶
func (_c *MockClientUseCase_Get_Call) Run(run func(ctx context.Context, clientID uuid.UUID)) *MockClientUseCase_Get_Call
func (*MockClientUseCase_Get_Call) RunAndReturn ¶
func (_c *MockClientUseCase_Get_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID) (*domain.Client, error)) *MockClientUseCase_Get_Call
type MockClientUseCase_List_Call ¶
MockClientUseCase_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockClientUseCase_List_Call) Return ¶
func (_c *MockClientUseCase_List_Call) Return(clients []*domain.Client, err error) *MockClientUseCase_List_Call
func (*MockClientUseCase_List_Call) Run ¶
func (_c *MockClientUseCase_List_Call) Run(run func(ctx context.Context, offset int, limit int)) *MockClientUseCase_List_Call
func (*MockClientUseCase_List_Call) RunAndReturn ¶
func (_c *MockClientUseCase_List_Call) RunAndReturn(run func(ctx context.Context, offset int, limit int) ([]*domain.Client, error)) *MockClientUseCase_List_Call
type MockClientUseCase_Update_Call ¶
MockClientUseCase_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockClientUseCase_Update_Call) Return ¶
func (_c *MockClientUseCase_Update_Call) Return(err error) *MockClientUseCase_Update_Call
func (*MockClientUseCase_Update_Call) Run ¶
func (_c *MockClientUseCase_Update_Call) Run(run func(ctx context.Context, clientID uuid.UUID, updateClientInput *domain.UpdateClientInput)) *MockClientUseCase_Update_Call
func (*MockClientUseCase_Update_Call) RunAndReturn ¶
func (_c *MockClientUseCase_Update_Call) RunAndReturn(run func(ctx context.Context, clientID uuid.UUID, updateClientInput *domain.UpdateClientInput) error) *MockClientUseCase_Update_Call
type MockTokenRepository ¶
MockTokenRepository is an autogenerated mock type for the TokenRepository type
func NewMockTokenRepository ¶
func NewMockTokenRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockTokenRepository
NewMockTokenRepository creates a new instance of MockTokenRepository. 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 (*MockTokenRepository) Create ¶
Create provides a mock function for the type MockTokenRepository
func (*MockTokenRepository) EXPECT ¶
func (_m *MockTokenRepository) EXPECT() *MockTokenRepository_Expecter
func (*MockTokenRepository) Get ¶
func (_mock *MockTokenRepository) Get(ctx context.Context, tokenID uuid.UUID) (*domain.Token, error)
Get provides a mock function for the type MockTokenRepository
func (*MockTokenRepository) GetByTokenHash ¶
func (_mock *MockTokenRepository) GetByTokenHash(ctx context.Context, tokenHash string) (*domain.Token, error)
GetByTokenHash provides a mock function for the type MockTokenRepository
type MockTokenRepository_Create_Call ¶
MockTokenRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockTokenRepository_Create_Call) Return ¶
func (_c *MockTokenRepository_Create_Call) Return(err error) *MockTokenRepository_Create_Call
func (*MockTokenRepository_Create_Call) Run ¶
func (_c *MockTokenRepository_Create_Call) Run(run func(ctx context.Context, token *domain.Token)) *MockTokenRepository_Create_Call
func (*MockTokenRepository_Create_Call) RunAndReturn ¶
func (_c *MockTokenRepository_Create_Call) RunAndReturn(run func(ctx context.Context, token *domain.Token) error) *MockTokenRepository_Create_Call
type MockTokenRepository_Expecter ¶
type MockTokenRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTokenRepository_Expecter) Create ¶
func (_e *MockTokenRepository_Expecter) Create(ctx interface{}, token interface{}) *MockTokenRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- token *domain.Token
func (*MockTokenRepository_Expecter) Get ¶
func (_e *MockTokenRepository_Expecter) Get(ctx interface{}, tokenID interface{}) *MockTokenRepository_Get_Call
Get is a helper method to define mock.On call
- ctx context.Context
- tokenID uuid.UUID
func (*MockTokenRepository_Expecter) GetByTokenHash ¶
func (_e *MockTokenRepository_Expecter) GetByTokenHash(ctx interface{}, tokenHash interface{}) *MockTokenRepository_GetByTokenHash_Call
GetByTokenHash is a helper method to define mock.On call
- ctx context.Context
- tokenHash string
func (*MockTokenRepository_Expecter) Update ¶
func (_e *MockTokenRepository_Expecter) Update(ctx interface{}, token interface{}) *MockTokenRepository_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- token *domain.Token
type MockTokenRepository_GetByTokenHash_Call ¶
MockTokenRepository_GetByTokenHash_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByTokenHash'
func (*MockTokenRepository_GetByTokenHash_Call) Return ¶
func (_c *MockTokenRepository_GetByTokenHash_Call) Return(token *domain.Token, err error) *MockTokenRepository_GetByTokenHash_Call
func (*MockTokenRepository_GetByTokenHash_Call) Run ¶
func (_c *MockTokenRepository_GetByTokenHash_Call) Run(run func(ctx context.Context, tokenHash string)) *MockTokenRepository_GetByTokenHash_Call
func (*MockTokenRepository_GetByTokenHash_Call) RunAndReturn ¶
func (_c *MockTokenRepository_GetByTokenHash_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) (*domain.Token, error)) *MockTokenRepository_GetByTokenHash_Call
type MockTokenRepository_Get_Call ¶
MockTokenRepository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*MockTokenRepository_Get_Call) Return ¶
func (_c *MockTokenRepository_Get_Call) Return(token *domain.Token, err error) *MockTokenRepository_Get_Call
func (*MockTokenRepository_Get_Call) Run ¶
func (_c *MockTokenRepository_Get_Call) Run(run func(ctx context.Context, tokenID uuid.UUID)) *MockTokenRepository_Get_Call
func (*MockTokenRepository_Get_Call) RunAndReturn ¶
func (_c *MockTokenRepository_Get_Call) RunAndReturn(run func(ctx context.Context, tokenID uuid.UUID) (*domain.Token, error)) *MockTokenRepository_Get_Call
type MockTokenRepository_Update_Call ¶
MockTokenRepository_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*MockTokenRepository_Update_Call) Return ¶
func (_c *MockTokenRepository_Update_Call) Return(err error) *MockTokenRepository_Update_Call
func (*MockTokenRepository_Update_Call) Run ¶
func (_c *MockTokenRepository_Update_Call) Run(run func(ctx context.Context, token *domain.Token)) *MockTokenRepository_Update_Call
func (*MockTokenRepository_Update_Call) RunAndReturn ¶
func (_c *MockTokenRepository_Update_Call) RunAndReturn(run func(ctx context.Context, token *domain.Token) error) *MockTokenRepository_Update_Call
type MockTokenUseCase ¶
MockTokenUseCase is an autogenerated mock type for the TokenUseCase type
func NewMockTokenUseCase ¶
func NewMockTokenUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockTokenUseCase
NewMockTokenUseCase creates a new instance of MockTokenUseCase. 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 (*MockTokenUseCase) Authenticate ¶
func (_mock *MockTokenUseCase) Authenticate(ctx context.Context, tokenHash string) (*domain.Client, error)
Authenticate provides a mock function for the type MockTokenUseCase
func (*MockTokenUseCase) EXPECT ¶
func (_m *MockTokenUseCase) EXPECT() *MockTokenUseCase_Expecter
func (*MockTokenUseCase) Issue ¶
func (_mock *MockTokenUseCase) Issue(ctx context.Context, issueTokenInput *domain.IssueTokenInput) (*domain.IssueTokenOutput, error)
Issue provides a mock function for the type MockTokenUseCase
type MockTokenUseCase_Authenticate_Call ¶
MockTokenUseCase_Authenticate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Authenticate'
func (*MockTokenUseCase_Authenticate_Call) Return ¶
func (_c *MockTokenUseCase_Authenticate_Call) Return(client *domain.Client, err error) *MockTokenUseCase_Authenticate_Call
func (*MockTokenUseCase_Authenticate_Call) Run ¶
func (_c *MockTokenUseCase_Authenticate_Call) Run(run func(ctx context.Context, tokenHash string)) *MockTokenUseCase_Authenticate_Call
func (*MockTokenUseCase_Authenticate_Call) RunAndReturn ¶
func (_c *MockTokenUseCase_Authenticate_Call) RunAndReturn(run func(ctx context.Context, tokenHash string) (*domain.Client, error)) *MockTokenUseCase_Authenticate_Call
type MockTokenUseCase_Expecter ¶
type MockTokenUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockTokenUseCase_Expecter) Authenticate ¶
func (_e *MockTokenUseCase_Expecter) Authenticate(ctx interface{}, tokenHash interface{}) *MockTokenUseCase_Authenticate_Call
Authenticate is a helper method to define mock.On call
- ctx context.Context
- tokenHash string
func (*MockTokenUseCase_Expecter) Issue ¶
func (_e *MockTokenUseCase_Expecter) Issue(ctx interface{}, issueTokenInput interface{}) *MockTokenUseCase_Issue_Call
Issue is a helper method to define mock.On call
- ctx context.Context
- issueTokenInput *domain.IssueTokenInput
type MockTokenUseCase_Issue_Call ¶
MockTokenUseCase_Issue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Issue'
func (*MockTokenUseCase_Issue_Call) Return ¶
func (_c *MockTokenUseCase_Issue_Call) Return(issueTokenOutput *domain.IssueTokenOutput, err error) *MockTokenUseCase_Issue_Call
func (*MockTokenUseCase_Issue_Call) Run ¶
func (_c *MockTokenUseCase_Issue_Call) Run(run func(ctx context.Context, issueTokenInput *domain.IssueTokenInput)) *MockTokenUseCase_Issue_Call
func (*MockTokenUseCase_Issue_Call) RunAndReturn ¶
func (_c *MockTokenUseCase_Issue_Call) RunAndReturn(run func(ctx context.Context, issueTokenInput *domain.IssueTokenInput) (*domain.IssueTokenOutput, error)) *MockTokenUseCase_Issue_Call