mock_optimizers

package
v0.10.3-0...-bec5499 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockQueryHook

type MockQueryHook struct {
	mock.Mock
}

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

type MockQueryHook_DeleteTuningConfig_Call struct {
	*mock.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 (*MockQueryHook_DeleteTuningConfig_Call) Run

func (*MockQueryHook_DeleteTuningConfig_Call) RunAndReturn

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

type MockQueryHook_InitTuningConfig_Call struct {
	*mock.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 (*MockQueryHook_InitTuningConfig_Call) Run

func (*MockQueryHook_InitTuningConfig_Call) RunAndReturn

type MockQueryHook_Init_Call

type MockQueryHook_Init_Call struct {
	*mock.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 (*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

type MockQueryHook_Run_Call struct {
	*mock.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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL