Documentation ¶
Index ¶
- type Repository
- type Repository_Expecter
- type Repository_GetPendingApprovalsList_Call
- func (_c *Repository_GetPendingApprovalsList_Call) Return(_a0 []*report.Report, _a1 error) *Repository_GetPendingApprovalsList_Call
- func (_c *Repository_GetPendingApprovalsList_Call) Run(run func(ctx context.Context, filters *report.ReportFilter)) *Repository_GetPendingApprovalsList_Call
- func (_c *Repository_GetPendingApprovalsList_Call) RunAndReturn(run func(context.Context, *report.ReportFilter) ([]*report.Report, error)) *Repository_GetPendingApprovalsList_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) GetPendingApprovalsList ¶
func (_m *Repository) GetPendingApprovalsList(ctx context.Context, filters *report.ReportFilter) ([]*report.Report, error)
GetPendingApprovalsList provides a mock function with given fields: ctx, filters
type Repository_Expecter ¶
type Repository_Expecter struct {
// contains filtered or unexported fields
}
func (*Repository_Expecter) GetPendingApprovalsList ¶
func (_e *Repository_Expecter) GetPendingApprovalsList(ctx interface{}, filters interface{}) *Repository_GetPendingApprovalsList_Call
GetPendingApprovalsList is a helper method to define mock.On call
- ctx context.Context
- filters *report.ReportFilter
type Repository_GetPendingApprovalsList_Call ¶
Repository_GetPendingApprovalsList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPendingApprovalsList'
func (*Repository_GetPendingApprovalsList_Call) Return ¶
func (_c *Repository_GetPendingApprovalsList_Call) Return(_a0 []*report.Report, _a1 error) *Repository_GetPendingApprovalsList_Call
func (*Repository_GetPendingApprovalsList_Call) Run ¶
func (_c *Repository_GetPendingApprovalsList_Call) Run(run func(ctx context.Context, filters *report.ReportFilter)) *Repository_GetPendingApprovalsList_Call
func (*Repository_GetPendingApprovalsList_Call) RunAndReturn ¶
func (_c *Repository_GetPendingApprovalsList_Call) RunAndReturn(run func(context.Context, *report.ReportFilter) ([]*report.Report, error)) *Repository_GetPendingApprovalsList_Call
Click to show internal directories.
Click to hide internal directories.