Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockObserver ¶
MockObserver is an autogenerated mock type for the Observer type
func NewMockObserver ¶
func NewMockObserver[T interface{}](t mockConstructorTestingTNewMockObserver) *MockObserver[T]
NewMockObserver creates a new instance of MockObserver. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockObserver[T]) Publish ¶
func (_m *MockObserver[T]) Publish(value T)
Publish provides a mock function with given fields: value
func (*MockObserver[T]) Subscribe ¶
func (_m *MockObserver[T]) Subscribe() <-chan T
Subscribe provides a mock function with given fields:
type Observer ¶
type Observer[T any] interface { Publisher[T] Subscriber[T] }
type Subscriber ¶
type Subscriber[T any] interface { Subscribe() <-chan T }
Click to show internal directories.
Click to hide internal directories.