Documentation ¶
Index ¶
- type NotificationService
- func (_m *NotificationService) CreateNotification(ctx context.Context, notificationIn models.Notification) (models.Notification, error)
- func (_m *NotificationService) EXPECT() *NotificationService_Expecter
- func (_m *NotificationService) ListNotifications(ctx context.Context, resultSelector query.ResultSelector) ([]models.Notification, uint64, error)
- type NotificationService_CreateNotification_Call
- func (_c *NotificationService_CreateNotification_Call) Return(notification models.Notification, err error) *NotificationService_CreateNotification_Call
- func (_c *NotificationService_CreateNotification_Call) Run(run func(ctx context.Context, notificationIn models.Notification)) *NotificationService_CreateNotification_Call
- func (_c *NotificationService_CreateNotification_Call) RunAndReturn(run func(context.Context, models.Notification) (models.Notification, error)) *NotificationService_CreateNotification_Call
- type NotificationService_Expecter
- type NotificationService_ListNotifications_Call
- func (_c *NotificationService_ListNotifications_Call) Return(notifications []models.Notification, totalResult uint64, err error) *NotificationService_ListNotifications_Call
- func (_c *NotificationService_ListNotifications_Call) Run(run func(ctx context.Context, resultSelector query.ResultSelector)) *NotificationService_ListNotifications_Call
- func (_c *NotificationService_ListNotifications_Call) RunAndReturn(...) *NotificationService_ListNotifications_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationService ¶
NotificationService is an autogenerated mock type for the NotificationService type
func NewNotificationService ¶
func NewNotificationService(t interface { mock.TestingT Cleanup(func()) }) *NotificationService
NewNotificationService creates a new instance of NotificationService. 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 (*NotificationService) CreateNotification ¶
func (_m *NotificationService) CreateNotification(ctx context.Context, notificationIn models.Notification) (models.Notification, error)
CreateNotification provides a mock function with given fields: ctx, notificationIn
func (*NotificationService) EXPECT ¶
func (_m *NotificationService) EXPECT() *NotificationService_Expecter
func (*NotificationService) ListNotifications ¶
func (_m *NotificationService) ListNotifications(ctx context.Context, resultSelector query.ResultSelector) ([]models.Notification, uint64, error)
ListNotifications provides a mock function with given fields: ctx, resultSelector
type NotificationService_CreateNotification_Call ¶
NotificationService_CreateNotification_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateNotification'
func (*NotificationService_CreateNotification_Call) Return ¶
func (_c *NotificationService_CreateNotification_Call) Return(notification models.Notification, err error) *NotificationService_CreateNotification_Call
func (*NotificationService_CreateNotification_Call) Run ¶
func (_c *NotificationService_CreateNotification_Call) Run(run func(ctx context.Context, notificationIn models.Notification)) *NotificationService_CreateNotification_Call
func (*NotificationService_CreateNotification_Call) RunAndReturn ¶
func (_c *NotificationService_CreateNotification_Call) RunAndReturn(run func(context.Context, models.Notification) (models.Notification, error)) *NotificationService_CreateNotification_Call
type NotificationService_Expecter ¶
type NotificationService_Expecter struct {
// contains filtered or unexported fields
}
func (*NotificationService_Expecter) CreateNotification ¶
func (_e *NotificationService_Expecter) CreateNotification(ctx interface{}, notificationIn interface{}) *NotificationService_CreateNotification_Call
CreateNotification is a helper method to define mock.On call
- ctx context.Context
- notificationIn models.Notification
func (*NotificationService_Expecter) ListNotifications ¶
func (_e *NotificationService_Expecter) ListNotifications(ctx interface{}, resultSelector interface{}) *NotificationService_ListNotifications_Call
ListNotifications is a helper method to define mock.On call
- ctx context.Context
- resultSelector query.ResultSelector
type NotificationService_ListNotifications_Call ¶
NotificationService_ListNotifications_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ListNotifications'
func (*NotificationService_ListNotifications_Call) Return ¶
func (_c *NotificationService_ListNotifications_Call) Return(notifications []models.Notification, totalResult uint64, err error) *NotificationService_ListNotifications_Call
func (*NotificationService_ListNotifications_Call) Run ¶
func (_c *NotificationService_ListNotifications_Call) Run(run func(ctx context.Context, resultSelector query.ResultSelector)) *NotificationService_ListNotifications_Call
func (*NotificationService_ListNotifications_Call) RunAndReturn ¶
func (_c *NotificationService_ListNotifications_Call) RunAndReturn(run func(context.Context, query.ResultSelector) ([]models.Notification, uint64, error)) *NotificationService_ListNotifications_Call