Documentation ¶
Overview ¶
Package mocks contains mocks for testing purposes.
Index ¶
- type Notifier
- type Service
- func (_m *Service) ConsumeBlocking(ctx context.Context, messages interface{}) error
- func (_m *Service) CreateSubscription(ctx context.Context, token string, sub notifiers.Subscription) (string, error)
- func (_m *Service) ListSubscriptions(ctx context.Context, token string, pm notifiers.PageMetadata) (notifiers.Page, error)
- func (_m *Service) RemoveSubscription(ctx context.Context, token string, id string) error
- func (_m *Service) ViewSubscription(ctx context.Context, token string, id string) (notifiers.Subscription, error)
- type SubscriptionsRepository
- func (_m *SubscriptionsRepository) Remove(ctx context.Context, id string) error
- func (_m *SubscriptionsRepository) Retrieve(ctx context.Context, id string) (notifiers.Subscription, error)
- func (_m *SubscriptionsRepository) RetrieveAll(ctx context.Context, pm notifiers.PageMetadata) (notifiers.Page, error)
- func (_m *SubscriptionsRepository) Save(ctx context.Context, sub notifiers.Subscription) (string, error)
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.
type Service ¶
Service is an autogenerated mock type for the Service type
func NewService ¶
NewService creates a new instance of Service. 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 (*Service) ConsumeBlocking ¶
ConsumeBlocking provides a mock function with given fields: ctx, messages
func (*Service) CreateSubscription ¶
func (_m *Service) CreateSubscription(ctx context.Context, token string, sub notifiers.Subscription) (string, error)
CreateSubscription provides a mock function with given fields: ctx, token, sub
func (*Service) ListSubscriptions ¶
func (_m *Service) ListSubscriptions(ctx context.Context, token string, pm notifiers.PageMetadata) (notifiers.Page, error)
ListSubscriptions provides a mock function with given fields: ctx, token, pm
func (*Service) RemoveSubscription ¶
RemoveSubscription provides a mock function with given fields: ctx, token, id
func (*Service) ViewSubscription ¶
func (_m *Service) ViewSubscription(ctx context.Context, token string, id string) (notifiers.Subscription, error)
ViewSubscription provides a mock function with given fields: ctx, token, id
type SubscriptionsRepository ¶
SubscriptionsRepository is an autogenerated mock type for the SubscriptionsRepository type
func NewSubscriptionsRepository ¶
func NewSubscriptionsRepository(t interface { mock.TestingT Cleanup(func()) }) *SubscriptionsRepository
NewSubscriptionsRepository creates a new instance of SubscriptionsRepository. 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 (*SubscriptionsRepository) Remove ¶
func (_m *SubscriptionsRepository) Remove(ctx context.Context, id string) error
Remove provides a mock function with given fields: ctx, id
func (*SubscriptionsRepository) Retrieve ¶
func (_m *SubscriptionsRepository) Retrieve(ctx context.Context, id string) (notifiers.Subscription, error)
Retrieve provides a mock function with given fields: ctx, id
func (*SubscriptionsRepository) RetrieveAll ¶
func (_m *SubscriptionsRepository) RetrieveAll(ctx context.Context, pm notifiers.PageMetadata) (notifiers.Page, error)
RetrieveAll provides a mock function with given fields: ctx, pm
func (*SubscriptionsRepository) Save ¶
func (_m *SubscriptionsRepository) Save(ctx context.Context, sub notifiers.Subscription) (string, error)
Save provides a mock function with given fields: ctx, sub