Documentation
¶
Index ¶
- type MockAuthAuditUseCase
- type MockAuthAuditUseCase_Audit_Call
- func (_c *MockAuthAuditUseCase_Audit_Call) Return(err error) *MockAuthAuditUseCase_Audit_Call
- func (_c *MockAuthAuditUseCase_Audit_Call) Run(run func(ctx context.Context, data *domain.AuthAudit)) *MockAuthAuditUseCase_Audit_Call
- func (_c *MockAuthAuditUseCase_Audit_Call) RunAndReturn(run func(ctx context.Context, data *domain.AuthAudit) error) *MockAuthAuditUseCase_Audit_Call
- type MockAuthAuditUseCase_Expecter
- type MockAuthListByPeriodUseCase
- type MockAuthListByPeriodUseCase_Expecter
- type MockAuthListByPeriodUseCase_List_Call
- func (_c *MockAuthListByPeriodUseCase_List_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthListByPeriodUseCase_List_Call
- func (_c *MockAuthListByPeriodUseCase_List_Call) Run(...) *MockAuthListByPeriodUseCase_List_Call
- func (_c *MockAuthListByPeriodUseCase_List_Call) RunAndReturn(...) *MockAuthListByPeriodUseCase_List_Call
- type MockAuthListByUsernameUseCase
- type MockAuthListByUsernameUseCase_Expecter
- type MockAuthListByUsernameUseCase_List_Call
- func (_c *MockAuthListByUsernameUseCase_List_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthListByUsernameUseCase_List_Call
- func (_c *MockAuthListByUsernameUseCase_List_Call) Run(run func(ctx context.Context, username string, limit int, offset int)) *MockAuthListByUsernameUseCase_List_Call
- func (_c *MockAuthListByUsernameUseCase_List_Call) RunAndReturn(...) *MockAuthListByUsernameUseCase_List_Call
- type MockDataAuditUseCase
- type MockDataAuditUseCase_Audit_Call
- func (_c *MockDataAuditUseCase_Audit_Call) Return(err error) *MockDataAuditUseCase_Audit_Call
- func (_c *MockDataAuditUseCase_Audit_Call) Run(run func(ctx context.Context, data *domain.DataAudit)) *MockDataAuditUseCase_Audit_Call
- func (_c *MockDataAuditUseCase_Audit_Call) RunAndReturn(run func(ctx context.Context, data *domain.DataAudit) error) *MockDataAuditUseCase_Audit_Call
- type MockDataAuditUseCase_Expecter
- type MockDataListByInstanceUseCase
- type MockDataListByInstanceUseCase_Expecter
- type MockDataListByInstanceUseCase_List_Call
- func (_c *MockDataListByInstanceUseCase_List_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataListByInstanceUseCase_List_Call
- func (_c *MockDataListByInstanceUseCase_List_Call) Run(...) *MockDataListByInstanceUseCase_List_Call
- func (_c *MockDataListByInstanceUseCase_List_Call) RunAndReturn(...) *MockDataListByInstanceUseCase_List_Call
- type MockDataListByPeriodUseCase
- type MockDataListByPeriodUseCase_Expecter
- type MockDataListByPeriodUseCase_List_Call
- func (_c *MockDataListByPeriodUseCase_List_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataListByPeriodUseCase_List_Call
- func (_c *MockDataListByPeriodUseCase_List_Call) Run(...) *MockDataListByPeriodUseCase_List_Call
- func (_c *MockDataListByPeriodUseCase_List_Call) RunAndReturn(...) *MockDataListByPeriodUseCase_List_Call
- type MockTailCutUseCase
- type MockTailCutUseCase_Cut_Call
- func (_c *MockTailCutUseCase_Cut_Call[ID]) Return(err error) *MockTailCutUseCase_Cut_Call[ID]
- func (_c *MockTailCutUseCase_Cut_Call[ID]) Run(run func(ctx context.Context, id ID)) *MockTailCutUseCase_Cut_Call[ID]
- func (_c *MockTailCutUseCase_Cut_Call[ID]) RunAndReturn(run func(ctx context.Context, id ID) error) *MockTailCutUseCase_Cut_Call[ID]
- type MockTailCutUseCase_Expecter
- type MockTailGetUseCase
- type MockTailGetUseCase_Expecter
- type MockTailGetUseCase_GetTail_Call
- func (_c *MockTailGetUseCase_GetTail_Call[ID]) Return(vs []ID, err error) *MockTailGetUseCase_GetTail_Call[ID]
- func (_c *MockTailGetUseCase_GetTail_Call[ID]) Run(run func(ctx context.Context, tail time.Time)) *MockTailGetUseCase_GetTail_Call[ID]
- func (_c *MockTailGetUseCase_GetTail_Call[ID]) RunAndReturn(run func(ctx context.Context, tail time.Time) ([]ID, error)) *MockTailGetUseCase_GetTail_Call[ID]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthAuditUseCase ¶
MockAuthAuditUseCase is an autogenerated mock type for the AuthAuditUseCase type
func NewMockAuthAuditUseCase ¶
func NewMockAuthAuditUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthAuditUseCase
NewMockAuthAuditUseCase creates a new instance of MockAuthAuditUseCase. 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 (*MockAuthAuditUseCase) Audit ¶
Audit provides a mock function for the type MockAuthAuditUseCase
func (*MockAuthAuditUseCase) EXPECT ¶
func (_m *MockAuthAuditUseCase) EXPECT() *MockAuthAuditUseCase_Expecter
type MockAuthAuditUseCase_Audit_Call ¶
MockAuthAuditUseCase_Audit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Audit'
func (*MockAuthAuditUseCase_Audit_Call) Return ¶
func (_c *MockAuthAuditUseCase_Audit_Call) Return(err error) *MockAuthAuditUseCase_Audit_Call
func (*MockAuthAuditUseCase_Audit_Call) Run ¶
func (_c *MockAuthAuditUseCase_Audit_Call) Run(run func(ctx context.Context, data *domain.AuthAudit)) *MockAuthAuditUseCase_Audit_Call
func (*MockAuthAuditUseCase_Audit_Call) RunAndReturn ¶
func (_c *MockAuthAuditUseCase_Audit_Call) RunAndReturn(run func(ctx context.Context, data *domain.AuthAudit) error) *MockAuthAuditUseCase_Audit_Call
type MockAuthAuditUseCase_Expecter ¶
type MockAuthAuditUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthAuditUseCase_Expecter) Audit ¶
func (_e *MockAuthAuditUseCase_Expecter) Audit(ctx interface{}, data interface{}) *MockAuthAuditUseCase_Audit_Call
Audit is a helper method to define mock.On call
- ctx context.Context
- data *domain.AuthAudit
type MockAuthListByPeriodUseCase ¶
MockAuthListByPeriodUseCase is an autogenerated mock type for the AuthListByPeriodUseCase type
func NewMockAuthListByPeriodUseCase ¶
func NewMockAuthListByPeriodUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthListByPeriodUseCase
NewMockAuthListByPeriodUseCase creates a new instance of MockAuthListByPeriodUseCase. 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 (*MockAuthListByPeriodUseCase) EXPECT ¶
func (_m *MockAuthListByPeriodUseCase) EXPECT() *MockAuthListByPeriodUseCase_Expecter
type MockAuthListByPeriodUseCase_Expecter ¶
type MockAuthListByPeriodUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthListByPeriodUseCase_Expecter) List ¶
func (_e *MockAuthListByPeriodUseCase_Expecter) List(ctx interface{}, from interface{}, till interface{}, limit interface{}, offset interface{}) *MockAuthListByPeriodUseCase_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- from time.Time
- till time.Time
- limit int
- offset int
type MockAuthListByPeriodUseCase_List_Call ¶
MockAuthListByPeriodUseCase_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockAuthListByPeriodUseCase_List_Call) Return ¶
func (_c *MockAuthListByPeriodUseCase_List_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthListByPeriodUseCase_List_Call
func (*MockAuthListByPeriodUseCase_List_Call) Run ¶
func (_c *MockAuthListByPeriodUseCase_List_Call) Run(run func(ctx context.Context, from time.Time, till time.Time, limit int, offset int)) *MockAuthListByPeriodUseCase_List_Call
func (*MockAuthListByPeriodUseCase_List_Call) RunAndReturn ¶
type MockAuthListByUsernameUseCase ¶
MockAuthListByUsernameUseCase is an autogenerated mock type for the AuthListByUsernameUseCase type
func NewMockAuthListByUsernameUseCase ¶
func NewMockAuthListByUsernameUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthListByUsernameUseCase
NewMockAuthListByUsernameUseCase creates a new instance of MockAuthListByUsernameUseCase. 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 (*MockAuthListByUsernameUseCase) EXPECT ¶
func (_m *MockAuthListByUsernameUseCase) EXPECT() *MockAuthListByUsernameUseCase_Expecter
type MockAuthListByUsernameUseCase_Expecter ¶
type MockAuthListByUsernameUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthListByUsernameUseCase_Expecter) List ¶
func (_e *MockAuthListByUsernameUseCase_Expecter) List(ctx interface{}, username interface{}, limit interface{}, offset interface{}) *MockAuthListByUsernameUseCase_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- username string
- limit int
- offset int
type MockAuthListByUsernameUseCase_List_Call ¶
MockAuthListByUsernameUseCase_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockAuthListByUsernameUseCase_List_Call) Return ¶
func (_c *MockAuthListByUsernameUseCase_List_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthListByUsernameUseCase_List_Call
func (*MockAuthListByUsernameUseCase_List_Call) Run ¶
func (_c *MockAuthListByUsernameUseCase_List_Call) Run(run func(ctx context.Context, username string, limit int, offset int)) *MockAuthListByUsernameUseCase_List_Call
func (*MockAuthListByUsernameUseCase_List_Call) RunAndReturn ¶
func (_c *MockAuthListByUsernameUseCase_List_Call) RunAndReturn(run func(ctx context.Context, username string, limit int, offset int) ([]*domain.AuthAudit, error)) *MockAuthListByUsernameUseCase_List_Call
type MockDataAuditUseCase ¶
MockDataAuditUseCase is an autogenerated mock type for the DataAuditUseCase type
func NewMockDataAuditUseCase ¶
func NewMockDataAuditUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockDataAuditUseCase
NewMockDataAuditUseCase creates a new instance of MockDataAuditUseCase. 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 (*MockDataAuditUseCase) Audit ¶
Audit provides a mock function for the type MockDataAuditUseCase
func (*MockDataAuditUseCase) EXPECT ¶
func (_m *MockDataAuditUseCase) EXPECT() *MockDataAuditUseCase_Expecter
type MockDataAuditUseCase_Audit_Call ¶
MockDataAuditUseCase_Audit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Audit'
func (*MockDataAuditUseCase_Audit_Call) Return ¶
func (_c *MockDataAuditUseCase_Audit_Call) Return(err error) *MockDataAuditUseCase_Audit_Call
func (*MockDataAuditUseCase_Audit_Call) Run ¶
func (_c *MockDataAuditUseCase_Audit_Call) Run(run func(ctx context.Context, data *domain.DataAudit)) *MockDataAuditUseCase_Audit_Call
func (*MockDataAuditUseCase_Audit_Call) RunAndReturn ¶
func (_c *MockDataAuditUseCase_Audit_Call) RunAndReturn(run func(ctx context.Context, data *domain.DataAudit) error) *MockDataAuditUseCase_Audit_Call
type MockDataAuditUseCase_Expecter ¶
type MockDataAuditUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDataAuditUseCase_Expecter) Audit ¶
func (_e *MockDataAuditUseCase_Expecter) Audit(ctx interface{}, data interface{}) *MockDataAuditUseCase_Audit_Call
Audit is a helper method to define mock.On call
- ctx context.Context
- data *domain.DataAudit
type MockDataListByInstanceUseCase ¶
MockDataListByInstanceUseCase is an autogenerated mock type for the DataListByInstanceUseCase type
func NewMockDataListByInstanceUseCase ¶
func NewMockDataListByInstanceUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockDataListByInstanceUseCase
NewMockDataListByInstanceUseCase creates a new instance of MockDataListByInstanceUseCase. 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 (*MockDataListByInstanceUseCase) EXPECT ¶
func (_m *MockDataListByInstanceUseCase) EXPECT() *MockDataListByInstanceUseCase_Expecter
type MockDataListByInstanceUseCase_Expecter ¶
type MockDataListByInstanceUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDataListByInstanceUseCase_Expecter) List ¶
func (_e *MockDataListByInstanceUseCase_Expecter) List(ctx interface{}, typeName interface{}, instanceID interface{}, limit interface{}, offset interface{}) *MockDataListByInstanceUseCase_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- typeName string
- instanceID string
- limit int
- offset int
type MockDataListByInstanceUseCase_List_Call ¶
MockDataListByInstanceUseCase_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockDataListByInstanceUseCase_List_Call) Return ¶
func (_c *MockDataListByInstanceUseCase_List_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataListByInstanceUseCase_List_Call
func (*MockDataListByInstanceUseCase_List_Call) Run ¶
func (_c *MockDataListByInstanceUseCase_List_Call) Run(run func(ctx context.Context, typeName string, instanceID string, limit int, offset int)) *MockDataListByInstanceUseCase_List_Call
func (*MockDataListByInstanceUseCase_List_Call) RunAndReturn ¶
type MockDataListByPeriodUseCase ¶
MockDataListByPeriodUseCase is an autogenerated mock type for the DataListByPeriodUseCase type
func NewMockDataListByPeriodUseCase ¶
func NewMockDataListByPeriodUseCase(t interface {
mock.TestingT
Cleanup(func())
}) *MockDataListByPeriodUseCase
NewMockDataListByPeriodUseCase creates a new instance of MockDataListByPeriodUseCase. 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 (*MockDataListByPeriodUseCase) EXPECT ¶
func (_m *MockDataListByPeriodUseCase) EXPECT() *MockDataListByPeriodUseCase_Expecter
type MockDataListByPeriodUseCase_Expecter ¶
type MockDataListByPeriodUseCase_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDataListByPeriodUseCase_Expecter) List ¶
func (_e *MockDataListByPeriodUseCase_Expecter) List(ctx interface{}, from interface{}, till interface{}, limit interface{}, offset interface{}) *MockDataListByPeriodUseCase_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- from time.Time
- till time.Time
- limit int
- offset int
type MockDataListByPeriodUseCase_List_Call ¶
MockDataListByPeriodUseCase_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockDataListByPeriodUseCase_List_Call) Return ¶
func (_c *MockDataListByPeriodUseCase_List_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataListByPeriodUseCase_List_Call
func (*MockDataListByPeriodUseCase_List_Call) Run ¶
func (_c *MockDataListByPeriodUseCase_List_Call) Run(run func(ctx context.Context, from time.Time, till time.Time, limit int, offset int)) *MockDataListByPeriodUseCase_List_Call
func (*MockDataListByPeriodUseCase_List_Call) RunAndReturn ¶
type MockTailCutUseCase ¶
type MockTailCutUseCase[ID comparable] struct { mock.Mock }
MockTailCutUseCase is an autogenerated mock type for the TailCutUseCase type
func NewMockTailCutUseCase ¶
func NewMockTailCutUseCase[ID comparable](t interface { mock.TestingT Cleanup(func()) }) *MockTailCutUseCase[ID]
NewMockTailCutUseCase creates a new instance of MockTailCutUseCase. 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 (*MockTailCutUseCase[ID]) Cut ¶
func (_mock *MockTailCutUseCase[ID]) Cut(ctx context.Context, id ID) error
Cut provides a mock function for the type MockTailCutUseCase
func (*MockTailCutUseCase[ID]) EXPECT ¶
func (_m *MockTailCutUseCase[ID]) EXPECT() *MockTailCutUseCase_Expecter[ID]
type MockTailCutUseCase_Cut_Call ¶
type MockTailCutUseCase_Cut_Call[ID comparable] struct { *mock.Call }
MockTailCutUseCase_Cut_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Cut'
func (*MockTailCutUseCase_Cut_Call[ID]) Return ¶
func (_c *MockTailCutUseCase_Cut_Call[ID]) Return(err error) *MockTailCutUseCase_Cut_Call[ID]
func (*MockTailCutUseCase_Cut_Call[ID]) Run ¶
func (_c *MockTailCutUseCase_Cut_Call[ID]) Run(run func(ctx context.Context, id ID)) *MockTailCutUseCase_Cut_Call[ID]
func (*MockTailCutUseCase_Cut_Call[ID]) RunAndReturn ¶
func (_c *MockTailCutUseCase_Cut_Call[ID]) RunAndReturn(run func(ctx context.Context, id ID) error) *MockTailCutUseCase_Cut_Call[ID]
type MockTailCutUseCase_Expecter ¶
type MockTailCutUseCase_Expecter[ID comparable] struct { // contains filtered or unexported fields }
func (*MockTailCutUseCase_Expecter[ID]) Cut ¶
func (_e *MockTailCutUseCase_Expecter[ID]) Cut(ctx interface{}, id interface{}) *MockTailCutUseCase_Cut_Call[ID]
Cut is a helper method to define mock.On call
- ctx context.Context
- id ID
type MockTailGetUseCase ¶
type MockTailGetUseCase[ID comparable] struct { mock.Mock }
MockTailGetUseCase is an autogenerated mock type for the TailGetUseCase type
func NewMockTailGetUseCase ¶
func NewMockTailGetUseCase[ID comparable](t interface { mock.TestingT Cleanup(func()) }) *MockTailGetUseCase[ID]
NewMockTailGetUseCase creates a new instance of MockTailGetUseCase. 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 (*MockTailGetUseCase[ID]) EXPECT ¶
func (_m *MockTailGetUseCase[ID]) EXPECT() *MockTailGetUseCase_Expecter[ID]
type MockTailGetUseCase_Expecter ¶
type MockTailGetUseCase_Expecter[ID comparable] struct { // contains filtered or unexported fields }
func (*MockTailGetUseCase_Expecter[ID]) GetTail ¶
func (_e *MockTailGetUseCase_Expecter[ID]) GetTail(ctx interface{}, tail interface{}) *MockTailGetUseCase_GetTail_Call[ID]
GetTail is a helper method to define mock.On call
- ctx context.Context
- tail time.Time
type MockTailGetUseCase_GetTail_Call ¶
type MockTailGetUseCase_GetTail_Call[ID comparable] struct { *mock.Call }
MockTailGetUseCase_GetTail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTail'
func (*MockTailGetUseCase_GetTail_Call[ID]) Return ¶
func (_c *MockTailGetUseCase_GetTail_Call[ID]) Return(vs []ID, err error) *MockTailGetUseCase_GetTail_Call[ID]
func (*MockTailGetUseCase_GetTail_Call[ID]) Run ¶
func (_c *MockTailGetUseCase_GetTail_Call[ID]) Run(run func(ctx context.Context, tail time.Time)) *MockTailGetUseCase_GetTail_Call[ID]
func (*MockTailGetUseCase_GetTail_Call[ID]) RunAndReturn ¶
func (_c *MockTailGetUseCase_GetTail_Call[ID]) RunAndReturn(run func(ctx context.Context, tail time.Time) ([]ID, error)) *MockTailGetUseCase_GetTail_Call[ID]