Documentation ¶
Overview ¶
Package mocks contains mocks for testing purposes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPublisher ¶
NewPublisher returns mock message publisher.
Types ¶
type EventStore ¶
EventStore is an autogenerated mock type for the EventStore type
func NewEventStore ¶
func NewEventStore(t interface { mock.TestingT Cleanup(func()) }) *EventStore
NewEventStore creates a new instance of EventStore. 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 (*EventStore) Connect ¶
func (_m *EventStore) Connect(ctx context.Context, clientID string) error
Connect provides a mock function with given fields: ctx, clientID
func (*EventStore) Disconnect ¶
func (_m *EventStore) Disconnect(ctx context.Context, clientID string) error
Disconnect provides a mock function with given fields: ctx, clientID
type MockPublisher ¶
type MockPublisher struct{}
func (MockPublisher) Close ¶
func (pub MockPublisher) Close() error
Click to show internal directories.
Click to hide internal directories.