Documentation ¶
Index ¶
- type Notifier
- type Notifier_Expecter
- type Notifier_Notify_Call
- func (_c *Notifier_Notify_Call) Return(_a0 []error) *Notifier_Notify_Call
- func (_c *Notifier_Notify_Call) Run(run func(_a0 context.Context, _a1 []domain.Notification)) *Notifier_Notify_Call
- func (_c *Notifier_Notify_Call) RunAndReturn(run func(context.Context, []domain.Notification) []error) *Notifier_Notify_Call
- type Repository
- type Repository_Expecter
- type Repository_GetPendingApprovalsList_Call
- func (_c *Repository_GetPendingApprovalsList_Call) Return(_a0 []*report.PendingApprovalModel, _a1 error) *Repository_GetPendingApprovalsList_Call
- func (_c *Repository_GetPendingApprovalsList_Call) Run(run func(ctx context.Context, filters *report.PendingApprovalsReportFilter)) *Repository_GetPendingApprovalsList_Call
- func (_c *Repository_GetPendingApprovalsList_Call) RunAndReturn(...) *Repository_GetPendingApprovalsList_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notifier ¶
Notifier is an autogenerated mock type for the notifier type
func NewNotifier ¶
NewNotifier creates a new instance of Notifier. 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 (*Notifier) EXPECT ¶
func (_m *Notifier) EXPECT() *Notifier_Expecter
type Notifier_Expecter ¶
type Notifier_Expecter struct {
// contains filtered or unexported fields
}
func (*Notifier_Expecter) Notify ¶
func (_e *Notifier_Expecter) Notify(_a0 interface{}, _a1 interface{}) *Notifier_Notify_Call
Notify is a helper method to define mock.On call
- _a0 context.Context
- _a1 []domain.Notification
type Notifier_Notify_Call ¶
Notifier_Notify_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Notify'
func (*Notifier_Notify_Call) Return ¶
func (_c *Notifier_Notify_Call) Return(_a0 []error) *Notifier_Notify_Call
func (*Notifier_Notify_Call) Run ¶
func (_c *Notifier_Notify_Call) Run(run func(_a0 context.Context, _a1 []domain.Notification)) *Notifier_Notify_Call
func (*Notifier_Notify_Call) RunAndReturn ¶
func (_c *Notifier_Notify_Call) RunAndReturn(run func(context.Context, []domain.Notification) []error) *Notifier_Notify_Call
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.PendingApprovalsReportFilter) ([]*report.PendingApprovalModel, 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.PendingApprovalsReportFilter
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.PendingApprovalModel, _a1 error) *Repository_GetPendingApprovalsList_Call
func (*Repository_GetPendingApprovalsList_Call) Run ¶
func (_c *Repository_GetPendingApprovalsList_Call) Run(run func(ctx context.Context, filters *report.PendingApprovalsReportFilter)) *Repository_GetPendingApprovalsList_Call
func (*Repository_GetPendingApprovalsList_Call) RunAndReturn ¶
func (_c *Repository_GetPendingApprovalsList_Call) RunAndReturn(run func(context.Context, *report.PendingApprovalsReportFilter) ([]*report.PendingApprovalModel, error)) *Repository_GetPendingApprovalsList_Call