Documentation
¶
Index ¶
- type MockClient
- type MockClient_Expecter
- type MockClient_Push_Call
- func (_c *MockClient_Push_Call) Return() *MockClient_Push_Call
- func (_c *MockClient_Push_Call) Run(run func(ctx context.Context, event string, extra ...interface{})) *MockClient_Push_Call
- func (_c *MockClient_Push_Call) RunAndReturn(run func(ctx context.Context, event string, extra ...interface{})) *MockClient_Push_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
MockClient is an autogenerated mock type for the Client type
func NewMockClient ¶
func NewMockClient(t interface {
mock.TestingT
Cleanup(func())
}) *MockClient
NewMockClient creates a new instance of MockClient. 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 (*MockClient) EXPECT ¶
func (_m *MockClient) EXPECT() *MockClient_Expecter
type MockClient_Expecter ¶
type MockClient_Expecter struct {
// contains filtered or unexported fields
}
func (*MockClient_Expecter) Push ¶
func (_e *MockClient_Expecter) Push(ctx interface{}, event interface{}, extra ...interface{}) *MockClient_Push_Call
Push is a helper method to define mock.On call
- ctx context.Context
- event string
- extra ...interface{}
type MockClient_Push_Call ¶
MockClient_Push_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Push'
func (*MockClient_Push_Call) Return ¶
func (_c *MockClient_Push_Call) Return() *MockClient_Push_Call
func (*MockClient_Push_Call) Run ¶
func (_c *MockClient_Push_Call) Run(run func(ctx context.Context, event string, extra ...interface{})) *MockClient_Push_Call
func (*MockClient_Push_Call) RunAndReturn ¶
func (_c *MockClient_Push_Call) RunAndReturn(run func(ctx context.Context, event string, extra ...interface{})) *MockClient_Push_Call
Click to show internal directories.
Click to hide internal directories.