Documentation ¶
Index ¶
- type Repository
- type Repository_Expecter
- type Repository_List_Call
- func (_c *Repository_List_Call) Return(_a0 []*audit.Log, _a1 error) *Repository_List_Call
- func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAuditLogFilter)) *Repository_List_Call
- func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, *domain.ListAuditLogFilter) ([]*audit.Log, error)) *Repository_List_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the repository type
func NewRepository ¶
func NewRepository(t interface { mock.TestingT Cleanup(func()) }) *Repository
NewRepository creates a new instance of Repository. 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 (*Repository) EXPECT ¶
func (_m *Repository) EXPECT() *Repository_Expecter
func (*Repository) List ¶
func (_m *Repository) List(_a0 context.Context, _a1 *domain.ListAuditLogFilter) ([]*audit.Log, error)
List provides a mock function with given fields: _a0, _a1
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) List ¶
func (_e *Repository_Expecter) List(_a0 interface{}, _a1 interface{}) *Repository_List_Call
List is a helper method to define mock.On call
- _a0 context.Context
- _a1 *domain.ListAuditLogFilter
type Repository_List_Call ¶
Repository_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'
func (*Repository_List_Call) Return ¶
func (_c *Repository_List_Call) Return(_a0 []*audit.Log, _a1 error) *Repository_List_Call
func (*Repository_List_Call) Run ¶
func (_c *Repository_List_Call) Run(run func(_a0 context.Context, _a1 *domain.ListAuditLogFilter)) *Repository_List_Call
func (*Repository_List_Call) RunAndReturn ¶
func (_c *Repository_List_Call) RunAndReturn(run func(context.Context, *domain.ListAuditLogFilter) ([]*audit.Log, error)) *Repository_List_Call
Click to show internal directories.
Click to hide internal directories.