Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscription ¶
Subscription is an autogenerated mock type for the Subscription type
func NewSubscription ¶
func NewSubscription(t interface { mock.TestingT Cleanup(func()) }) *Subscription
NewSubscription creates a new instance of Subscription. 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 (*Subscription) EXPECT ¶
func (_m *Subscription) EXPECT() *Subscription_Expecter
func (*Subscription) Err ¶
func (_m *Subscription) Err() <-chan error
Err provides a mock function with given fields:
func (*Subscription) Unsubscribe ¶
func (_m *Subscription) Unsubscribe()
Unsubscribe provides a mock function with given fields:
type Subscription_Err_Call ¶
Subscription_Err_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Err'
func (*Subscription_Err_Call) Return ¶
func (_c *Subscription_Err_Call) Return(_a0 <-chan error) *Subscription_Err_Call
func (*Subscription_Err_Call) Run ¶
func (_c *Subscription_Err_Call) Run(run func()) *Subscription_Err_Call
func (*Subscription_Err_Call) RunAndReturn ¶
func (_c *Subscription_Err_Call) RunAndReturn(run func() <-chan error) *Subscription_Err_Call
type Subscription_Expecter ¶
type Subscription_Expecter struct {
// contains filtered or unexported fields
}
func (*Subscription_Expecter) Err ¶
func (_e *Subscription_Expecter) Err() *Subscription_Err_Call
Err is a helper method to define mock.On call
func (*Subscription_Expecter) Unsubscribe ¶
func (_e *Subscription_Expecter) Unsubscribe() *Subscription_Unsubscribe_Call
Unsubscribe is a helper method to define mock.On call
type Subscription_Unsubscribe_Call ¶
Subscription_Unsubscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unsubscribe'
func (*Subscription_Unsubscribe_Call) Return ¶
func (_c *Subscription_Unsubscribe_Call) Return() *Subscription_Unsubscribe_Call
func (*Subscription_Unsubscribe_Call) Run ¶
func (_c *Subscription_Unsubscribe_Call) Run(run func()) *Subscription_Unsubscribe_Call
func (*Subscription_Unsubscribe_Call) RunAndReturn ¶
func (_c *Subscription_Unsubscribe_Call) RunAndReturn(run func()) *Subscription_Unsubscribe_Call