Documentation
¶
Index ¶
- type MockAuthAuditRepository
- func (_mock *MockAuthAuditRepository) Change(ctx context.Context, entity *domain.AuthAudit) (*domain.AuthAudit, error)
- func (_mock *MockAuthAuditRepository) Create(ctx context.Context, entity *domain.AuthAudit) (*domain.AuthAudit, error)
- func (_mock *MockAuthAuditRepository) Delete(ctx context.Context, id string) error
- func (_m *MockAuthAuditRepository) EXPECT() *MockAuthAuditRepository_Expecter
- func (_mock *MockAuthAuditRepository) Find(ctx context.Context, id string) (*domain.AuthAudit, error)
- func (_mock *MockAuthAuditRepository) List(ctx context.Context, limit int, offset int) ([]*domain.AuthAudit, error)
- func (_mock *MockAuthAuditRepository) ListByPeriod(ctx context.Context, from time.Time, till time.Time, limit int, offset int) ([]*domain.AuthAudit, error)
- func (_mock *MockAuthAuditRepository) ListByUsername(ctx context.Context, username string, offset int, limit int) ([]*domain.AuthAudit, error)
- type MockAuthAuditRepository_Change_Call
- func (_c *MockAuthAuditRepository_Change_Call) Return(authAudit *domain.AuthAudit, err error) *MockAuthAuditRepository_Change_Call
- func (_c *MockAuthAuditRepository_Change_Call) Run(run func(ctx context.Context, entity *domain.AuthAudit)) *MockAuthAuditRepository_Change_Call
- func (_c *MockAuthAuditRepository_Change_Call) RunAndReturn(...) *MockAuthAuditRepository_Change_Call
- type MockAuthAuditRepository_Create_Call
- func (_c *MockAuthAuditRepository_Create_Call) Return(authAudit *domain.AuthAudit, err error) *MockAuthAuditRepository_Create_Call
- func (_c *MockAuthAuditRepository_Create_Call) Run(run func(ctx context.Context, entity *domain.AuthAudit)) *MockAuthAuditRepository_Create_Call
- func (_c *MockAuthAuditRepository_Create_Call) RunAndReturn(...) *MockAuthAuditRepository_Create_Call
- type MockAuthAuditRepository_Delete_Call
- func (_c *MockAuthAuditRepository_Delete_Call) Return(err error) *MockAuthAuditRepository_Delete_Call
- func (_c *MockAuthAuditRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *MockAuthAuditRepository_Delete_Call
- func (_c *MockAuthAuditRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockAuthAuditRepository_Delete_Call
- type MockAuthAuditRepository_Expecter
- func (_e *MockAuthAuditRepository_Expecter) Change(ctx interface{}, entity interface{}) *MockAuthAuditRepository_Change_Call
- func (_e *MockAuthAuditRepository_Expecter) Create(ctx interface{}, entity interface{}) *MockAuthAuditRepository_Create_Call
- func (_e *MockAuthAuditRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockAuthAuditRepository_Delete_Call
- func (_e *MockAuthAuditRepository_Expecter) Find(ctx interface{}, id interface{}) *MockAuthAuditRepository_Find_Call
- func (_e *MockAuthAuditRepository_Expecter) List(ctx interface{}, limit interface{}, offset interface{}) *MockAuthAuditRepository_List_Call
- func (_e *MockAuthAuditRepository_Expecter) ListByPeriod(ctx interface{}, from interface{}, till interface{}, limit interface{}, ...) *MockAuthAuditRepository_ListByPeriod_Call
- func (_e *MockAuthAuditRepository_Expecter) ListByUsername(ctx interface{}, username interface{}, offset interface{}, limit interface{}) *MockAuthAuditRepository_ListByUsername_Call
- type MockAuthAuditRepository_Find_Call
- func (_c *MockAuthAuditRepository_Find_Call) Return(authAudit *domain.AuthAudit, err error) *MockAuthAuditRepository_Find_Call
- func (_c *MockAuthAuditRepository_Find_Call) Run(run func(ctx context.Context, id string)) *MockAuthAuditRepository_Find_Call
- func (_c *MockAuthAuditRepository_Find_Call) RunAndReturn(run func(ctx context.Context, id string) (*domain.AuthAudit, error)) *MockAuthAuditRepository_Find_Call
- type MockAuthAuditRepository_ListByPeriod_Call
- func (_c *MockAuthAuditRepository_ListByPeriod_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthAuditRepository_ListByPeriod_Call
- func (_c *MockAuthAuditRepository_ListByPeriod_Call) Run(...) *MockAuthAuditRepository_ListByPeriod_Call
- func (_c *MockAuthAuditRepository_ListByPeriod_Call) RunAndReturn(...) *MockAuthAuditRepository_ListByPeriod_Call
- type MockAuthAuditRepository_ListByUsername_Call
- func (_c *MockAuthAuditRepository_ListByUsername_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthAuditRepository_ListByUsername_Call
- func (_c *MockAuthAuditRepository_ListByUsername_Call) Run(run func(ctx context.Context, username string, offset int, limit int)) *MockAuthAuditRepository_ListByUsername_Call
- func (_c *MockAuthAuditRepository_ListByUsername_Call) RunAndReturn(...) *MockAuthAuditRepository_ListByUsername_Call
- type MockAuthAuditRepository_List_Call
- func (_c *MockAuthAuditRepository_List_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthAuditRepository_List_Call
- func (_c *MockAuthAuditRepository_List_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockAuthAuditRepository_List_Call
- func (_c *MockAuthAuditRepository_List_Call) RunAndReturn(...) *MockAuthAuditRepository_List_Call
- type MockDataAuditRepository
- func (_mock *MockDataAuditRepository) Change(ctx context.Context, entity *domain.DataAudit) (*domain.DataAudit, error)
- func (_mock *MockDataAuditRepository) Create(ctx context.Context, entity *domain.DataAudit) (*domain.DataAudit, error)
- func (_mock *MockDataAuditRepository) Delete(ctx context.Context, id string) error
- func (_m *MockDataAuditRepository) EXPECT() *MockDataAuditRepository_Expecter
- func (_mock *MockDataAuditRepository) Find(ctx context.Context, id string) (*domain.DataAudit, error)
- func (_mock *MockDataAuditRepository) List(ctx context.Context, limit int, offset int) ([]*domain.DataAudit, error)
- func (_mock *MockDataAuditRepository) ListByInstance(ctx context.Context, typeName string, instanceID string, limit int, offset int) ([]*domain.DataAudit, error)
- func (_mock *MockDataAuditRepository) ListByPeriod(ctx context.Context, from time.Time, till time.Time, limit int, offset int) ([]*domain.DataAudit, error)
- type MockDataAuditRepository_Change_Call
- func (_c *MockDataAuditRepository_Change_Call) Return(dataAudit *domain.DataAudit, err error) *MockDataAuditRepository_Change_Call
- func (_c *MockDataAuditRepository_Change_Call) Run(run func(ctx context.Context, entity *domain.DataAudit)) *MockDataAuditRepository_Change_Call
- func (_c *MockDataAuditRepository_Change_Call) RunAndReturn(...) *MockDataAuditRepository_Change_Call
- type MockDataAuditRepository_Create_Call
- func (_c *MockDataAuditRepository_Create_Call) Return(dataAudit *domain.DataAudit, err error) *MockDataAuditRepository_Create_Call
- func (_c *MockDataAuditRepository_Create_Call) Run(run func(ctx context.Context, entity *domain.DataAudit)) *MockDataAuditRepository_Create_Call
- func (_c *MockDataAuditRepository_Create_Call) RunAndReturn(...) *MockDataAuditRepository_Create_Call
- type MockDataAuditRepository_Delete_Call
- func (_c *MockDataAuditRepository_Delete_Call) Return(err error) *MockDataAuditRepository_Delete_Call
- func (_c *MockDataAuditRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *MockDataAuditRepository_Delete_Call
- func (_c *MockDataAuditRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockDataAuditRepository_Delete_Call
- type MockDataAuditRepository_Expecter
- func (_e *MockDataAuditRepository_Expecter) Change(ctx interface{}, entity interface{}) *MockDataAuditRepository_Change_Call
- func (_e *MockDataAuditRepository_Expecter) Create(ctx interface{}, entity interface{}) *MockDataAuditRepository_Create_Call
- func (_e *MockDataAuditRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockDataAuditRepository_Delete_Call
- func (_e *MockDataAuditRepository_Expecter) Find(ctx interface{}, id interface{}) *MockDataAuditRepository_Find_Call
- func (_e *MockDataAuditRepository_Expecter) List(ctx interface{}, limit interface{}, offset interface{}) *MockDataAuditRepository_List_Call
- func (_e *MockDataAuditRepository_Expecter) ListByInstance(ctx interface{}, typeName interface{}, instanceID interface{}, ...) *MockDataAuditRepository_ListByInstance_Call
- func (_e *MockDataAuditRepository_Expecter) ListByPeriod(ctx interface{}, from interface{}, till interface{}, limit interface{}, ...) *MockDataAuditRepository_ListByPeriod_Call
- type MockDataAuditRepository_Find_Call
- func (_c *MockDataAuditRepository_Find_Call) Return(dataAudit *domain.DataAudit, err error) *MockDataAuditRepository_Find_Call
- func (_c *MockDataAuditRepository_Find_Call) Run(run func(ctx context.Context, id string)) *MockDataAuditRepository_Find_Call
- func (_c *MockDataAuditRepository_Find_Call) RunAndReturn(run func(ctx context.Context, id string) (*domain.DataAudit, error)) *MockDataAuditRepository_Find_Call
- type MockDataAuditRepository_ListByInstance_Call
- func (_c *MockDataAuditRepository_ListByInstance_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataAuditRepository_ListByInstance_Call
- func (_c *MockDataAuditRepository_ListByInstance_Call) Run(...) *MockDataAuditRepository_ListByInstance_Call
- func (_c *MockDataAuditRepository_ListByInstance_Call) RunAndReturn(...) *MockDataAuditRepository_ListByInstance_Call
- type MockDataAuditRepository_ListByPeriod_Call
- func (_c *MockDataAuditRepository_ListByPeriod_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataAuditRepository_ListByPeriod_Call
- func (_c *MockDataAuditRepository_ListByPeriod_Call) Run(...) *MockDataAuditRepository_ListByPeriod_Call
- func (_c *MockDataAuditRepository_ListByPeriod_Call) RunAndReturn(...) *MockDataAuditRepository_ListByPeriod_Call
- type MockDataAuditRepository_List_Call
- func (_c *MockDataAuditRepository_List_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataAuditRepository_List_Call
- func (_c *MockDataAuditRepository_List_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockDataAuditRepository_List_Call
- func (_c *MockDataAuditRepository_List_Call) RunAndReturn(...) *MockDataAuditRepository_List_Call
- type MockTailRepository
- type MockTailRepository_Delete_Call
- func (_c *MockTailRepository_Delete_Call[ID]) Return(err error) *MockTailRepository_Delete_Call[ID]
- func (_c *MockTailRepository_Delete_Call[ID]) Run(run func(ctx context.Context, id ID)) *MockTailRepository_Delete_Call[ID]
- func (_c *MockTailRepository_Delete_Call[ID]) RunAndReturn(run func(ctx context.Context, id ID) error) *MockTailRepository_Delete_Call[ID]
- type MockTailRepository_Expecter
- type MockTailRepository_GetTail_Call
- func (_c *MockTailRepository_GetTail_Call[ID]) Return(vs []ID, err error) *MockTailRepository_GetTail_Call[ID]
- func (_c *MockTailRepository_GetTail_Call[ID]) Run(run func(ctx context.Context, tailDate time.Time)) *MockTailRepository_GetTail_Call[ID]
- func (_c *MockTailRepository_GetTail_Call[ID]) RunAndReturn(run func(ctx context.Context, tailDate time.Time) ([]ID, error)) *MockTailRepository_GetTail_Call[ID]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAuthAuditRepository ¶
MockAuthAuditRepository is an autogenerated mock type for the AuthAuditRepository type
func NewMockAuthAuditRepository ¶
func NewMockAuthAuditRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockAuthAuditRepository
NewMockAuthAuditRepository creates a new instance of MockAuthAuditRepository. 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 (*MockAuthAuditRepository) Change ¶
func (_mock *MockAuthAuditRepository) Change(ctx context.Context, entity *domain.AuthAudit) (*domain.AuthAudit, error)
Change provides a mock function for the type MockAuthAuditRepository
func (*MockAuthAuditRepository) Create ¶
func (_mock *MockAuthAuditRepository) Create(ctx context.Context, entity *domain.AuthAudit) (*domain.AuthAudit, error)
Create provides a mock function for the type MockAuthAuditRepository
func (*MockAuthAuditRepository) Delete ¶
func (_mock *MockAuthAuditRepository) Delete(ctx context.Context, id string) error
Delete provides a mock function for the type MockAuthAuditRepository
func (*MockAuthAuditRepository) EXPECT ¶
func (_m *MockAuthAuditRepository) EXPECT() *MockAuthAuditRepository_Expecter
func (*MockAuthAuditRepository) Find ¶
func (_mock *MockAuthAuditRepository) Find(ctx context.Context, id string) (*domain.AuthAudit, error)
Find provides a mock function for the type MockAuthAuditRepository
func (*MockAuthAuditRepository) List ¶
func (_mock *MockAuthAuditRepository) List(ctx context.Context, limit int, offset int) ([]*domain.AuthAudit, error)
List provides a mock function for the type MockAuthAuditRepository
type MockAuthAuditRepository_Change_Call ¶
MockAuthAuditRepository_Change_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Change'
func (*MockAuthAuditRepository_Change_Call) Return ¶
func (_c *MockAuthAuditRepository_Change_Call) Return(authAudit *domain.AuthAudit, err error) *MockAuthAuditRepository_Change_Call
func (*MockAuthAuditRepository_Change_Call) Run ¶
func (_c *MockAuthAuditRepository_Change_Call) Run(run func(ctx context.Context, entity *domain.AuthAudit)) *MockAuthAuditRepository_Change_Call
func (*MockAuthAuditRepository_Change_Call) RunAndReturn ¶
func (_c *MockAuthAuditRepository_Change_Call) RunAndReturn(run func(ctx context.Context, entity *domain.AuthAudit) (*domain.AuthAudit, error)) *MockAuthAuditRepository_Change_Call
type MockAuthAuditRepository_Create_Call ¶
MockAuthAuditRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockAuthAuditRepository_Create_Call) Return ¶
func (_c *MockAuthAuditRepository_Create_Call) Return(authAudit *domain.AuthAudit, err error) *MockAuthAuditRepository_Create_Call
func (*MockAuthAuditRepository_Create_Call) Run ¶
func (_c *MockAuthAuditRepository_Create_Call) Run(run func(ctx context.Context, entity *domain.AuthAudit)) *MockAuthAuditRepository_Create_Call
func (*MockAuthAuditRepository_Create_Call) RunAndReturn ¶
func (_c *MockAuthAuditRepository_Create_Call) RunAndReturn(run func(ctx context.Context, entity *domain.AuthAudit) (*domain.AuthAudit, error)) *MockAuthAuditRepository_Create_Call
type MockAuthAuditRepository_Delete_Call ¶
MockAuthAuditRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockAuthAuditRepository_Delete_Call) Return ¶
func (_c *MockAuthAuditRepository_Delete_Call) Return(err error) *MockAuthAuditRepository_Delete_Call
func (*MockAuthAuditRepository_Delete_Call) Run ¶
func (_c *MockAuthAuditRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *MockAuthAuditRepository_Delete_Call
func (*MockAuthAuditRepository_Delete_Call) RunAndReturn ¶
func (_c *MockAuthAuditRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockAuthAuditRepository_Delete_Call
type MockAuthAuditRepository_Expecter ¶
type MockAuthAuditRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuthAuditRepository_Expecter) Change ¶
func (_e *MockAuthAuditRepository_Expecter) Change(ctx interface{}, entity interface{}) *MockAuthAuditRepository_Change_Call
Change is a helper method to define mock.On call
- ctx context.Context
- entity *domain.AuthAudit
func (*MockAuthAuditRepository_Expecter) Create ¶
func (_e *MockAuthAuditRepository_Expecter) Create(ctx interface{}, entity interface{}) *MockAuthAuditRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- entity *domain.AuthAudit
func (*MockAuthAuditRepository_Expecter) Delete ¶
func (_e *MockAuthAuditRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockAuthAuditRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockAuthAuditRepository_Expecter) Find ¶
func (_e *MockAuthAuditRepository_Expecter) Find(ctx interface{}, id interface{}) *MockAuthAuditRepository_Find_Call
Find is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockAuthAuditRepository_Expecter) List ¶
func (_e *MockAuthAuditRepository_Expecter) List(ctx interface{}, limit interface{}, offset interface{}) *MockAuthAuditRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockAuthAuditRepository_Expecter) ListByPeriod ¶
func (_e *MockAuthAuditRepository_Expecter) ListByPeriod(ctx interface{}, from interface{}, till interface{}, limit interface{}, offset interface{}) *MockAuthAuditRepository_ListByPeriod_Call
ListByPeriod is a helper method to define mock.On call
- ctx context.Context
- from time.Time
- till time.Time
- limit int
- offset int
func (*MockAuthAuditRepository_Expecter) ListByUsername ¶
func (_e *MockAuthAuditRepository_Expecter) ListByUsername(ctx interface{}, username interface{}, offset interface{}, limit interface{}) *MockAuthAuditRepository_ListByUsername_Call
ListByUsername is a helper method to define mock.On call
- ctx context.Context
- username string
- offset int
- limit int
type MockAuthAuditRepository_Find_Call ¶
MockAuthAuditRepository_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockAuthAuditRepository_Find_Call) Return ¶
func (_c *MockAuthAuditRepository_Find_Call) Return(authAudit *domain.AuthAudit, err error) *MockAuthAuditRepository_Find_Call
func (*MockAuthAuditRepository_Find_Call) Run ¶
func (_c *MockAuthAuditRepository_Find_Call) Run(run func(ctx context.Context, id string)) *MockAuthAuditRepository_Find_Call
func (*MockAuthAuditRepository_Find_Call) RunAndReturn ¶
func (_c *MockAuthAuditRepository_Find_Call) RunAndReturn(run func(ctx context.Context, id string) (*domain.AuthAudit, error)) *MockAuthAuditRepository_Find_Call
type MockAuthAuditRepository_ListByPeriod_Call ¶
MockAuthAuditRepository_ListByPeriod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByPeriod'
func (*MockAuthAuditRepository_ListByPeriod_Call) Return ¶
func (_c *MockAuthAuditRepository_ListByPeriod_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthAuditRepository_ListByPeriod_Call
func (*MockAuthAuditRepository_ListByPeriod_Call) Run ¶
func (_c *MockAuthAuditRepository_ListByPeriod_Call) Run(run func(ctx context.Context, from time.Time, till time.Time, limit int, offset int)) *MockAuthAuditRepository_ListByPeriod_Call
func (*MockAuthAuditRepository_ListByPeriod_Call) RunAndReturn ¶
type MockAuthAuditRepository_ListByUsername_Call ¶
MockAuthAuditRepository_ListByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByUsername'
func (*MockAuthAuditRepository_ListByUsername_Call) Return ¶
func (_c *MockAuthAuditRepository_ListByUsername_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthAuditRepository_ListByUsername_Call
func (*MockAuthAuditRepository_ListByUsername_Call) Run ¶
func (_c *MockAuthAuditRepository_ListByUsername_Call) Run(run func(ctx context.Context, username string, offset int, limit int)) *MockAuthAuditRepository_ListByUsername_Call
func (*MockAuthAuditRepository_ListByUsername_Call) RunAndReturn ¶
func (_c *MockAuthAuditRepository_ListByUsername_Call) RunAndReturn(run func(ctx context.Context, username string, offset int, limit int) ([]*domain.AuthAudit, error)) *MockAuthAuditRepository_ListByUsername_Call
type MockAuthAuditRepository_List_Call ¶
MockAuthAuditRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockAuthAuditRepository_List_Call) Return ¶
func (_c *MockAuthAuditRepository_List_Call) Return(authAudits []*domain.AuthAudit, err error) *MockAuthAuditRepository_List_Call
func (*MockAuthAuditRepository_List_Call) Run ¶
func (_c *MockAuthAuditRepository_List_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockAuthAuditRepository_List_Call
func (*MockAuthAuditRepository_List_Call) RunAndReturn ¶
func (_c *MockAuthAuditRepository_List_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*domain.AuthAudit, error)) *MockAuthAuditRepository_List_Call
type MockDataAuditRepository ¶
MockDataAuditRepository is an autogenerated mock type for the DataAuditRepository type
func NewMockDataAuditRepository ¶
func NewMockDataAuditRepository(t interface {
mock.TestingT
Cleanup(func())
}) *MockDataAuditRepository
NewMockDataAuditRepository creates a new instance of MockDataAuditRepository. 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 (*MockDataAuditRepository) Change ¶
func (_mock *MockDataAuditRepository) Change(ctx context.Context, entity *domain.DataAudit) (*domain.DataAudit, error)
Change provides a mock function for the type MockDataAuditRepository
func (*MockDataAuditRepository) Create ¶
func (_mock *MockDataAuditRepository) Create(ctx context.Context, entity *domain.DataAudit) (*domain.DataAudit, error)
Create provides a mock function for the type MockDataAuditRepository
func (*MockDataAuditRepository) Delete ¶
func (_mock *MockDataAuditRepository) Delete(ctx context.Context, id string) error
Delete provides a mock function for the type MockDataAuditRepository
func (*MockDataAuditRepository) EXPECT ¶
func (_m *MockDataAuditRepository) EXPECT() *MockDataAuditRepository_Expecter
func (*MockDataAuditRepository) Find ¶
func (_mock *MockDataAuditRepository) Find(ctx context.Context, id string) (*domain.DataAudit, error)
Find provides a mock function for the type MockDataAuditRepository
func (*MockDataAuditRepository) List ¶
func (_mock *MockDataAuditRepository) List(ctx context.Context, limit int, offset int) ([]*domain.DataAudit, error)
List provides a mock function for the type MockDataAuditRepository
type MockDataAuditRepository_Change_Call ¶
MockDataAuditRepository_Change_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Change'
func (*MockDataAuditRepository_Change_Call) Return ¶
func (_c *MockDataAuditRepository_Change_Call) Return(dataAudit *domain.DataAudit, err error) *MockDataAuditRepository_Change_Call
func (*MockDataAuditRepository_Change_Call) Run ¶
func (_c *MockDataAuditRepository_Change_Call) Run(run func(ctx context.Context, entity *domain.DataAudit)) *MockDataAuditRepository_Change_Call
func (*MockDataAuditRepository_Change_Call) RunAndReturn ¶
func (_c *MockDataAuditRepository_Change_Call) RunAndReturn(run func(ctx context.Context, entity *domain.DataAudit) (*domain.DataAudit, error)) *MockDataAuditRepository_Change_Call
type MockDataAuditRepository_Create_Call ¶
MockDataAuditRepository_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*MockDataAuditRepository_Create_Call) Return ¶
func (_c *MockDataAuditRepository_Create_Call) Return(dataAudit *domain.DataAudit, err error) *MockDataAuditRepository_Create_Call
func (*MockDataAuditRepository_Create_Call) Run ¶
func (_c *MockDataAuditRepository_Create_Call) Run(run func(ctx context.Context, entity *domain.DataAudit)) *MockDataAuditRepository_Create_Call
func (*MockDataAuditRepository_Create_Call) RunAndReturn ¶
func (_c *MockDataAuditRepository_Create_Call) RunAndReturn(run func(ctx context.Context, entity *domain.DataAudit) (*domain.DataAudit, error)) *MockDataAuditRepository_Create_Call
type MockDataAuditRepository_Delete_Call ¶
MockDataAuditRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockDataAuditRepository_Delete_Call) Return ¶
func (_c *MockDataAuditRepository_Delete_Call) Return(err error) *MockDataAuditRepository_Delete_Call
func (*MockDataAuditRepository_Delete_Call) Run ¶
func (_c *MockDataAuditRepository_Delete_Call) Run(run func(ctx context.Context, id string)) *MockDataAuditRepository_Delete_Call
func (*MockDataAuditRepository_Delete_Call) RunAndReturn ¶
func (_c *MockDataAuditRepository_Delete_Call) RunAndReturn(run func(ctx context.Context, id string) error) *MockDataAuditRepository_Delete_Call
type MockDataAuditRepository_Expecter ¶
type MockDataAuditRepository_Expecter struct {
// contains filtered or unexported fields
}
func (*MockDataAuditRepository_Expecter) Change ¶
func (_e *MockDataAuditRepository_Expecter) Change(ctx interface{}, entity interface{}) *MockDataAuditRepository_Change_Call
Change is a helper method to define mock.On call
- ctx context.Context
- entity *domain.DataAudit
func (*MockDataAuditRepository_Expecter) Create ¶
func (_e *MockDataAuditRepository_Expecter) Create(ctx interface{}, entity interface{}) *MockDataAuditRepository_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- entity *domain.DataAudit
func (*MockDataAuditRepository_Expecter) Delete ¶
func (_e *MockDataAuditRepository_Expecter) Delete(ctx interface{}, id interface{}) *MockDataAuditRepository_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockDataAuditRepository_Expecter) Find ¶
func (_e *MockDataAuditRepository_Expecter) Find(ctx interface{}, id interface{}) *MockDataAuditRepository_Find_Call
Find is a helper method to define mock.On call
- ctx context.Context
- id string
func (*MockDataAuditRepository_Expecter) List ¶
func (_e *MockDataAuditRepository_Expecter) List(ctx interface{}, limit interface{}, offset interface{}) *MockDataAuditRepository_List_Call
List is a helper method to define mock.On call
- ctx context.Context
- limit int
- offset int
func (*MockDataAuditRepository_Expecter) ListByInstance ¶
func (_e *MockDataAuditRepository_Expecter) ListByInstance(ctx interface{}, typeName interface{}, instanceID interface{}, limit interface{}, offset interface{}) *MockDataAuditRepository_ListByInstance_Call
ListByInstance is a helper method to define mock.On call
- ctx context.Context
- typeName string
- instanceID string
- limit int
- offset int
func (*MockDataAuditRepository_Expecter) ListByPeriod ¶
func (_e *MockDataAuditRepository_Expecter) ListByPeriod(ctx interface{}, from interface{}, till interface{}, limit interface{}, offset interface{}) *MockDataAuditRepository_ListByPeriod_Call
ListByPeriod is a helper method to define mock.On call
- ctx context.Context
- from time.Time
- till time.Time
- limit int
- offset int
type MockDataAuditRepository_Find_Call ¶
MockDataAuditRepository_Find_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Find'
func (*MockDataAuditRepository_Find_Call) Return ¶
func (_c *MockDataAuditRepository_Find_Call) Return(dataAudit *domain.DataAudit, err error) *MockDataAuditRepository_Find_Call
func (*MockDataAuditRepository_Find_Call) Run ¶
func (_c *MockDataAuditRepository_Find_Call) Run(run func(ctx context.Context, id string)) *MockDataAuditRepository_Find_Call
func (*MockDataAuditRepository_Find_Call) RunAndReturn ¶
func (_c *MockDataAuditRepository_Find_Call) RunAndReturn(run func(ctx context.Context, id string) (*domain.DataAudit, error)) *MockDataAuditRepository_Find_Call
type MockDataAuditRepository_ListByInstance_Call ¶
MockDataAuditRepository_ListByInstance_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByInstance'
func (*MockDataAuditRepository_ListByInstance_Call) Return ¶
func (_c *MockDataAuditRepository_ListByInstance_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataAuditRepository_ListByInstance_Call
func (*MockDataAuditRepository_ListByInstance_Call) Run ¶
func (_c *MockDataAuditRepository_ListByInstance_Call) Run(run func(ctx context.Context, typeName string, instanceID string, limit int, offset int)) *MockDataAuditRepository_ListByInstance_Call
func (*MockDataAuditRepository_ListByInstance_Call) RunAndReturn ¶
type MockDataAuditRepository_ListByPeriod_Call ¶
MockDataAuditRepository_ListByPeriod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListByPeriod'
func (*MockDataAuditRepository_ListByPeriod_Call) Return ¶
func (_c *MockDataAuditRepository_ListByPeriod_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataAuditRepository_ListByPeriod_Call
func (*MockDataAuditRepository_ListByPeriod_Call) Run ¶
func (_c *MockDataAuditRepository_ListByPeriod_Call) Run(run func(ctx context.Context, from time.Time, till time.Time, limit int, offset int)) *MockDataAuditRepository_ListByPeriod_Call
func (*MockDataAuditRepository_ListByPeriod_Call) RunAndReturn ¶
type MockDataAuditRepository_List_Call ¶
MockDataAuditRepository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*MockDataAuditRepository_List_Call) Return ¶
func (_c *MockDataAuditRepository_List_Call) Return(dataAudits []*domain.DataAudit, err error) *MockDataAuditRepository_List_Call
func (*MockDataAuditRepository_List_Call) Run ¶
func (_c *MockDataAuditRepository_List_Call) Run(run func(ctx context.Context, limit int, offset int)) *MockDataAuditRepository_List_Call
func (*MockDataAuditRepository_List_Call) RunAndReturn ¶
func (_c *MockDataAuditRepository_List_Call) RunAndReturn(run func(ctx context.Context, limit int, offset int) ([]*domain.DataAudit, error)) *MockDataAuditRepository_List_Call
type MockTailRepository ¶
type MockTailRepository[ID comparable] struct { mock.Mock }
MockTailRepository is an autogenerated mock type for the TailRepository type
func NewMockTailRepository ¶
func NewMockTailRepository[ID comparable](t interface { mock.TestingT Cleanup(func()) }) *MockTailRepository[ID]
NewMockTailRepository creates a new instance of MockTailRepository. 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 (*MockTailRepository[ID]) Delete ¶
func (_mock *MockTailRepository[ID]) Delete(ctx context.Context, id ID) error
Delete provides a mock function for the type MockTailRepository
func (*MockTailRepository[ID]) EXPECT ¶
func (_m *MockTailRepository[ID]) EXPECT() *MockTailRepository_Expecter[ID]
type MockTailRepository_Delete_Call ¶
type MockTailRepository_Delete_Call[ID comparable] struct { *mock.Call }
MockTailRepository_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*MockTailRepository_Delete_Call[ID]) Return ¶
func (_c *MockTailRepository_Delete_Call[ID]) Return(err error) *MockTailRepository_Delete_Call[ID]
func (*MockTailRepository_Delete_Call[ID]) Run ¶
func (_c *MockTailRepository_Delete_Call[ID]) Run(run func(ctx context.Context, id ID)) *MockTailRepository_Delete_Call[ID]
func (*MockTailRepository_Delete_Call[ID]) RunAndReturn ¶
func (_c *MockTailRepository_Delete_Call[ID]) RunAndReturn(run func(ctx context.Context, id ID) error) *MockTailRepository_Delete_Call[ID]
type MockTailRepository_Expecter ¶
type MockTailRepository_Expecter[ID comparable] struct { // contains filtered or unexported fields }
func (*MockTailRepository_Expecter[ID]) Delete ¶
func (_e *MockTailRepository_Expecter[ID]) Delete(ctx interface{}, id interface{}) *MockTailRepository_Delete_Call[ID]
Delete is a helper method to define mock.On call
- ctx context.Context
- id ID
func (*MockTailRepository_Expecter[ID]) GetTail ¶
func (_e *MockTailRepository_Expecter[ID]) GetTail(ctx interface{}, tailDate interface{}) *MockTailRepository_GetTail_Call[ID]
GetTail is a helper method to define mock.On call
- ctx context.Context
- tailDate time.Time
type MockTailRepository_GetTail_Call ¶
type MockTailRepository_GetTail_Call[ID comparable] struct { *mock.Call }
MockTailRepository_GetTail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTail'
func (*MockTailRepository_GetTail_Call[ID]) Return ¶
func (_c *MockTailRepository_GetTail_Call[ID]) Return(vs []ID, err error) *MockTailRepository_GetTail_Call[ID]
func (*MockTailRepository_GetTail_Call[ID]) Run ¶
func (_c *MockTailRepository_GetTail_Call[ID]) Run(run func(ctx context.Context, tailDate time.Time)) *MockTailRepository_GetTail_Call[ID]
func (*MockTailRepository_GetTail_Call[ID]) RunAndReturn ¶
func (_c *MockTailRepository_GetTail_Call[ID]) RunAndReturn(run func(ctx context.Context, tailDate time.Time) ([]ID, error)) *MockTailRepository_GetTail_Call[ID]