mockadaptive_placement

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStore

type MockStore struct {
	mock.Mock
}

MockStore is an autogenerated mock type for the Store type

func NewMockStore

func NewMockStore(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockStore

NewMockStore creates a new instance of MockStore. 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 (*MockStore) EXPECT

func (_m *MockStore) EXPECT() *MockStore_Expecter

func (*MockStore) LoadRules

LoadRules provides a mock function with given fields: _a0

func (*MockStore) LoadStats

LoadStats provides a mock function with given fields: _a0

func (*MockStore) StoreRules

StoreRules provides a mock function with given fields: _a0, _a1

func (*MockStore) StoreStats

StoreStats provides a mock function with given fields: _a0, _a1

type MockStore_Expecter

type MockStore_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockStore_Expecter) LoadRules

func (_e *MockStore_Expecter) LoadRules(_a0 interface{}) *MockStore_LoadRules_Call

LoadRules is a helper method to define mock.On call

  • _a0 context.Context

func (*MockStore_Expecter) LoadStats

func (_e *MockStore_Expecter) LoadStats(_a0 interface{}) *MockStore_LoadStats_Call

LoadStats is a helper method to define mock.On call

  • _a0 context.Context

func (*MockStore_Expecter) StoreRules

func (_e *MockStore_Expecter) StoreRules(_a0 interface{}, _a1 interface{}) *MockStore_StoreRules_Call

StoreRules is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *adaptive_placementpb.PlacementRules

func (*MockStore_Expecter) StoreStats

func (_e *MockStore_Expecter) StoreStats(_a0 interface{}, _a1 interface{}) *MockStore_StoreStats_Call

StoreStats is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 *adaptive_placementpb.DistributionStats

type MockStore_LoadRules_Call

type MockStore_LoadRules_Call struct {
	*mock.Call
}

MockStore_LoadRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadRules'

func (*MockStore_LoadRules_Call) Return

func (*MockStore_LoadRules_Call) Run

func (*MockStore_LoadRules_Call) RunAndReturn

type MockStore_LoadStats_Call

type MockStore_LoadStats_Call struct {
	*mock.Call
}

MockStore_LoadStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadStats'

func (*MockStore_LoadStats_Call) Return

func (*MockStore_LoadStats_Call) Run

func (*MockStore_LoadStats_Call) RunAndReturn

type MockStore_StoreRules_Call

type MockStore_StoreRules_Call struct {
	*mock.Call
}

MockStore_StoreRules_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreRules'

func (*MockStore_StoreRules_Call) Return

func (*MockStore_StoreRules_Call) Run

func (*MockStore_StoreRules_Call) RunAndReturn

type MockStore_StoreStats_Call

type MockStore_StoreStats_Call struct {
	*mock.Call
}

MockStore_StoreStats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreStats'

func (*MockStore_StoreStats_Call) Return

func (*MockStore_StoreStats_Call) Run

func (*MockStore_StoreStats_Call) RunAndReturn

Jump to

Keyboard shortcuts

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