Documentation
¶
Index ¶
- type UnitTestCallbackCollector
- type UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call
- func (_c *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) Return() *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call
- func (_c *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) Run(run func(ctx context.Context, msg redis.PubSubMessage)) *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call
- func (_c *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) RunAndReturn(run func(ctx context.Context, msg redis.PubSubMessage)) *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call
- type UnitTestCallbackCollector_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UnitTestCallbackCollector ¶
UnitTestCallbackCollector is an autogenerated mock type for the UnitTestCallbackCollector type
func NewUnitTestCallbackCollector ¶
func NewUnitTestCallbackCollector(t interface {
mock.TestingT
Cleanup(func())
}) *UnitTestCallbackCollector
NewUnitTestCallbackCollector creates a new instance of UnitTestCallbackCollector. 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 (*UnitTestCallbackCollector) CollectRedisSubscribeMsgs ¶
func (_mock *UnitTestCallbackCollector) CollectRedisSubscribeMsgs(ctx context.Context, msg redis.PubSubMessage)
CollectRedisSubscribeMsgs provides a mock function for the type UnitTestCallbackCollector
func (*UnitTestCallbackCollector) EXPECT ¶
func (_m *UnitTestCallbackCollector) EXPECT() *UnitTestCallbackCollector_Expecter
type UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call ¶
UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CollectRedisSubscribeMsgs'
func (*UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) Run ¶
func (_c *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) Run(run func(ctx context.Context, msg redis.PubSubMessage)) *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call
func (*UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) RunAndReturn ¶
func (_c *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call) RunAndReturn(run func(ctx context.Context, msg redis.PubSubMessage)) *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call
type UnitTestCallbackCollector_Expecter ¶
type UnitTestCallbackCollector_Expecter struct {
// contains filtered or unexported fields
}
func (*UnitTestCallbackCollector_Expecter) CollectRedisSubscribeMsgs ¶
func (_e *UnitTestCallbackCollector_Expecter) CollectRedisSubscribeMsgs(ctx interface{}, msg interface{}) *UnitTestCallbackCollector_CollectRedisSubscribeMsgs_Call
CollectRedisSubscribeMsgs is a helper method to define mock.On call
- ctx context.Context
- msg redis.PubSubMessage