Documentation ¶
Index ¶
- type MockQueryHook
- func (_m *MockQueryHook) DeleteTuningConfig(_a0 string) error
- func (_m *MockQueryHook) EXPECT() *MockQueryHook_Expecter
- func (_m *MockQueryHook) Init(_a0 string) error
- func (_m *MockQueryHook) InitTuningConfig(_a0 map[string]string) error
- func (_m *MockQueryHook) Run(_a0 map[string]interface{}) error
- type MockQueryHook_DeleteTuningConfig_Call
- func (_c *MockQueryHook_DeleteTuningConfig_Call) Return(_a0 error) *MockQueryHook_DeleteTuningConfig_Call
- func (_c *MockQueryHook_DeleteTuningConfig_Call) Run(run func(_a0 string)) *MockQueryHook_DeleteTuningConfig_Call
- func (_c *MockQueryHook_DeleteTuningConfig_Call) RunAndReturn(run func(string) error) *MockQueryHook_DeleteTuningConfig_Call
- type MockQueryHook_Expecter
- func (_e *MockQueryHook_Expecter) DeleteTuningConfig(_a0 interface{}) *MockQueryHook_DeleteTuningConfig_Call
- func (_e *MockQueryHook_Expecter) Init(_a0 interface{}) *MockQueryHook_Init_Call
- func (_e *MockQueryHook_Expecter) InitTuningConfig(_a0 interface{}) *MockQueryHook_InitTuningConfig_Call
- func (_e *MockQueryHook_Expecter) Run(_a0 interface{}) *MockQueryHook_Run_Call
- type MockQueryHook_InitTuningConfig_Call
- func (_c *MockQueryHook_InitTuningConfig_Call) Return(_a0 error) *MockQueryHook_InitTuningConfig_Call
- func (_c *MockQueryHook_InitTuningConfig_Call) Run(run func(_a0 map[string]string)) *MockQueryHook_InitTuningConfig_Call
- func (_c *MockQueryHook_InitTuningConfig_Call) RunAndReturn(run func(map[string]string) error) *MockQueryHook_InitTuningConfig_Call
- type MockQueryHook_Init_Call
- type MockQueryHook_Run_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockQueryHook ¶
MockQueryHook is an autogenerated mock type for the QueryHook type
func NewMockQueryHook ¶
func NewMockQueryHook(t interface { mock.TestingT Cleanup(func()) }) *MockQueryHook
NewMockQueryHook creates a new instance of MockQueryHook. 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 (*MockQueryHook) DeleteTuningConfig ¶
func (_m *MockQueryHook) DeleteTuningConfig(_a0 string) error
DeleteTuningConfig provides a mock function with given fields: _a0
func (*MockQueryHook) EXPECT ¶
func (_m *MockQueryHook) EXPECT() *MockQueryHook_Expecter
func (*MockQueryHook) Init ¶
func (_m *MockQueryHook) Init(_a0 string) error
Init provides a mock function with given fields: _a0
func (*MockQueryHook) InitTuningConfig ¶
func (_m *MockQueryHook) InitTuningConfig(_a0 map[string]string) error
InitTuningConfig provides a mock function with given fields: _a0
func (*MockQueryHook) Run ¶
func (_m *MockQueryHook) Run(_a0 map[string]interface{}) error
Run provides a mock function with given fields: _a0
type MockQueryHook_DeleteTuningConfig_Call ¶
MockQueryHook_DeleteTuningConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteTuningConfig'
func (*MockQueryHook_DeleteTuningConfig_Call) Return ¶
func (_c *MockQueryHook_DeleteTuningConfig_Call) Return(_a0 error) *MockQueryHook_DeleteTuningConfig_Call
func (*MockQueryHook_DeleteTuningConfig_Call) Run ¶
func (_c *MockQueryHook_DeleteTuningConfig_Call) Run(run func(_a0 string)) *MockQueryHook_DeleteTuningConfig_Call
func (*MockQueryHook_DeleteTuningConfig_Call) RunAndReturn ¶
func (_c *MockQueryHook_DeleteTuningConfig_Call) RunAndReturn(run func(string) error) *MockQueryHook_DeleteTuningConfig_Call
type MockQueryHook_Expecter ¶
type MockQueryHook_Expecter struct {
// contains filtered or unexported fields
}
func (*MockQueryHook_Expecter) DeleteTuningConfig ¶
func (_e *MockQueryHook_Expecter) DeleteTuningConfig(_a0 interface{}) *MockQueryHook_DeleteTuningConfig_Call
DeleteTuningConfig is a helper method to define mock.On call
- _a0 string
func (*MockQueryHook_Expecter) Init ¶
func (_e *MockQueryHook_Expecter) Init(_a0 interface{}) *MockQueryHook_Init_Call
Init is a helper method to define mock.On call
- _a0 string
func (*MockQueryHook_Expecter) InitTuningConfig ¶
func (_e *MockQueryHook_Expecter) InitTuningConfig(_a0 interface{}) *MockQueryHook_InitTuningConfig_Call
InitTuningConfig is a helper method to define mock.On call
- _a0 map[string]string
func (*MockQueryHook_Expecter) Run ¶
func (_e *MockQueryHook_Expecter) Run(_a0 interface{}) *MockQueryHook_Run_Call
Run is a helper method to define mock.On call
- _a0 map[string]interface{}
type MockQueryHook_InitTuningConfig_Call ¶
MockQueryHook_InitTuningConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitTuningConfig'
func (*MockQueryHook_InitTuningConfig_Call) Return ¶
func (_c *MockQueryHook_InitTuningConfig_Call) Return(_a0 error) *MockQueryHook_InitTuningConfig_Call
func (*MockQueryHook_InitTuningConfig_Call) Run ¶
func (_c *MockQueryHook_InitTuningConfig_Call) Run(run func(_a0 map[string]string)) *MockQueryHook_InitTuningConfig_Call
func (*MockQueryHook_InitTuningConfig_Call) RunAndReturn ¶
func (_c *MockQueryHook_InitTuningConfig_Call) RunAndReturn(run func(map[string]string) error) *MockQueryHook_InitTuningConfig_Call
type MockQueryHook_Init_Call ¶
MockQueryHook_Init_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Init'
func (*MockQueryHook_Init_Call) Return ¶
func (_c *MockQueryHook_Init_Call) Return(_a0 error) *MockQueryHook_Init_Call
func (*MockQueryHook_Init_Call) Run ¶
func (_c *MockQueryHook_Init_Call) Run(run func(_a0 string)) *MockQueryHook_Init_Call
func (*MockQueryHook_Init_Call) RunAndReturn ¶
func (_c *MockQueryHook_Init_Call) RunAndReturn(run func(string) error) *MockQueryHook_Init_Call
type MockQueryHook_Run_Call ¶
MockQueryHook_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*MockQueryHook_Run_Call) Return ¶
func (_c *MockQueryHook_Run_Call) Return(_a0 error) *MockQueryHook_Run_Call
func (*MockQueryHook_Run_Call) Run ¶
func (_c *MockQueryHook_Run_Call) Run(run func(_a0 map[string]interface{})) *MockQueryHook_Run_Call
func (*MockQueryHook_Run_Call) RunAndReturn ¶
func (_c *MockQueryHook_Run_Call) RunAndReturn(run func(map[string]interface{}) error) *MockQueryHook_Run_Call