Documentation ¶
Index ¶
- type MockConnectionInterface
- type MockConnectionInterface_Close_Call
- func (_c *MockConnectionInterface_Close_Call) Return(_a0 error) *MockConnectionInterface_Close_Call
- func (_c *MockConnectionInterface_Close_Call) Run(run func()) *MockConnectionInterface_Close_Call
- func (_c *MockConnectionInterface_Close_Call) RunAndReturn(run func() error) *MockConnectionInterface_Close_Call
- type MockConnectionInterface_Expecter
- type MockConnectionInterface_Run_Call
- func (_c *MockConnectionInterface_Run_Call) Return(_a0 connection.CMDResult, _a1 error) *MockConnectionInterface_Run_Call
- func (_c *MockConnectionInterface_Run_Call) Run(run func(ctx context.Context, cmd string)) *MockConnectionInterface_Run_Call
- func (_c *MockConnectionInterface_Run_Call) RunAndReturn(run func(context.Context, string) (connection.CMDResult, error)) *MockConnectionInterface_Run_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnectionInterface ¶
MockConnectionInterface is an autogenerated mock type for the ConnectionInterface type
func NewMockConnectionInterface ¶
func NewMockConnectionInterface(t interface { mock.TestingT Cleanup(func()) }) *MockConnectionInterface
NewMockConnectionInterface creates a new instance of MockConnectionInterface. 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 (*MockConnectionInterface) Close ¶
func (_m *MockConnectionInterface) Close() error
Close provides a mock function with given fields:
func (*MockConnectionInterface) EXPECT ¶
func (_m *MockConnectionInterface) EXPECT() *MockConnectionInterface_Expecter
func (*MockConnectionInterface) Run ¶
func (_m *MockConnectionInterface) Run(ctx context.Context, cmd string) (connection.CMDResult, error)
Run provides a mock function with given fields: ctx, cmd
type MockConnectionInterface_Close_Call ¶
MockConnectionInterface_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'
func (*MockConnectionInterface_Close_Call) Return ¶
func (_c *MockConnectionInterface_Close_Call) Return(_a0 error) *MockConnectionInterface_Close_Call
func (*MockConnectionInterface_Close_Call) Run ¶
func (_c *MockConnectionInterface_Close_Call) Run(run func()) *MockConnectionInterface_Close_Call
func (*MockConnectionInterface_Close_Call) RunAndReturn ¶
func (_c *MockConnectionInterface_Close_Call) RunAndReturn(run func() error) *MockConnectionInterface_Close_Call
type MockConnectionInterface_Expecter ¶
type MockConnectionInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockConnectionInterface_Expecter) Close ¶
func (_e *MockConnectionInterface_Expecter) Close() *MockConnectionInterface_Close_Call
Close is a helper method to define mock.On call
func (*MockConnectionInterface_Expecter) Run ¶
func (_e *MockConnectionInterface_Expecter) Run(ctx interface{}, cmd interface{}) *MockConnectionInterface_Run_Call
Run is a helper method to define mock.On call
- ctx context.Context
- cmd string
type MockConnectionInterface_Run_Call ¶
MockConnectionInterface_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockConnectionInterface_Run_Call) Return ¶
func (_c *MockConnectionInterface_Run_Call) Return(_a0 connection.CMDResult, _a1 error) *MockConnectionInterface_Run_Call
func (*MockConnectionInterface_Run_Call) Run ¶
func (_c *MockConnectionInterface_Run_Call) Run(run func(ctx context.Context, cmd string)) *MockConnectionInterface_Run_Call
func (*MockConnectionInterface_Run_Call) RunAndReturn ¶
func (_c *MockConnectionInterface_Run_Call) RunAndReturn(run func(context.Context, string) (connection.CMDResult, error)) *MockConnectionInterface_Run_Call