Documentation ¶
Index ¶
- type MockStore
- func (_m *MockStore) EXPECT() *MockStore_Expecter
- func (_m *MockStore) LoadRules(_a0 context.Context) (*adaptive_placementpb.PlacementRules, error)
- func (_m *MockStore) LoadStats(_a0 context.Context) (*adaptive_placementpb.DistributionStats, error)
- func (_m *MockStore) StoreRules(_a0 context.Context, _a1 *adaptive_placementpb.PlacementRules) error
- func (_m *MockStore) StoreStats(_a0 context.Context, _a1 *adaptive_placementpb.DistributionStats) error
- type MockStore_Expecter
- func (_e *MockStore_Expecter) LoadRules(_a0 interface{}) *MockStore_LoadRules_Call
- func (_e *MockStore_Expecter) LoadStats(_a0 interface{}) *MockStore_LoadStats_Call
- func (_e *MockStore_Expecter) StoreRules(_a0 interface{}, _a1 interface{}) *MockStore_StoreRules_Call
- func (_e *MockStore_Expecter) StoreStats(_a0 interface{}, _a1 interface{}) *MockStore_StoreStats_Call
- type MockStore_LoadRules_Call
- func (_c *MockStore_LoadRules_Call) Return(_a0 *adaptive_placementpb.PlacementRules, _a1 error) *MockStore_LoadRules_Call
- func (_c *MockStore_LoadRules_Call) Run(run func(_a0 context.Context)) *MockStore_LoadRules_Call
- func (_c *MockStore_LoadRules_Call) RunAndReturn(run func(context.Context) (*adaptive_placementpb.PlacementRules, error)) *MockStore_LoadRules_Call
- type MockStore_LoadStats_Call
- func (_c *MockStore_LoadStats_Call) Return(_a0 *adaptive_placementpb.DistributionStats, _a1 error) *MockStore_LoadStats_Call
- func (_c *MockStore_LoadStats_Call) Run(run func(_a0 context.Context)) *MockStore_LoadStats_Call
- func (_c *MockStore_LoadStats_Call) RunAndReturn(run func(context.Context) (*adaptive_placementpb.DistributionStats, error)) *MockStore_LoadStats_Call
- type MockStore_StoreRules_Call
- func (_c *MockStore_StoreRules_Call) Return(_a0 error) *MockStore_StoreRules_Call
- func (_c *MockStore_StoreRules_Call) Run(run func(_a0 context.Context, _a1 *adaptive_placementpb.PlacementRules)) *MockStore_StoreRules_Call
- func (_c *MockStore_StoreRules_Call) RunAndReturn(run func(context.Context, *adaptive_placementpb.PlacementRules) error) *MockStore_StoreRules_Call
- type MockStore_StoreStats_Call
- func (_c *MockStore_StoreStats_Call) Return(_a0 error) *MockStore_StoreStats_Call
- func (_c *MockStore_StoreStats_Call) Run(run func(_a0 context.Context, _a1 *adaptive_placementpb.DistributionStats)) *MockStore_StoreStats_Call
- func (_c *MockStore_StoreStats_Call) RunAndReturn(run func(context.Context, *adaptive_placementpb.DistributionStats) error) *MockStore_StoreStats_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStore ¶
MockStore is an autogenerated mock type for the Store type
func NewMockStore ¶
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 ¶
func (_m *MockStore) LoadRules(_a0 context.Context) (*adaptive_placementpb.PlacementRules, error)
LoadRules provides a mock function with given fields: _a0
func (*MockStore) LoadStats ¶
func (_m *MockStore) LoadStats(_a0 context.Context) (*adaptive_placementpb.DistributionStats, error)
LoadStats provides a mock function with given fields: _a0
func (*MockStore) StoreRules ¶
func (_m *MockStore) StoreRules(_a0 context.Context, _a1 *adaptive_placementpb.PlacementRules) error
StoreRules provides a mock function with given fields: _a0, _a1
func (*MockStore) StoreStats ¶
func (_m *MockStore) StoreStats(_a0 context.Context, _a1 *adaptive_placementpb.DistributionStats) error
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 ¶
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 (_c *MockStore_LoadRules_Call) Return(_a0 *adaptive_placementpb.PlacementRules, _a1 error) *MockStore_LoadRules_Call
func (*MockStore_LoadRules_Call) Run ¶
func (_c *MockStore_LoadRules_Call) Run(run func(_a0 context.Context)) *MockStore_LoadRules_Call
func (*MockStore_LoadRules_Call) RunAndReturn ¶
func (_c *MockStore_LoadRules_Call) RunAndReturn(run func(context.Context) (*adaptive_placementpb.PlacementRules, error)) *MockStore_LoadRules_Call
type MockStore_LoadStats_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 (_c *MockStore_LoadStats_Call) Return(_a0 *adaptive_placementpb.DistributionStats, _a1 error) *MockStore_LoadStats_Call
func (*MockStore_LoadStats_Call) Run ¶
func (_c *MockStore_LoadStats_Call) Run(run func(_a0 context.Context)) *MockStore_LoadStats_Call
func (*MockStore_LoadStats_Call) RunAndReturn ¶
func (_c *MockStore_LoadStats_Call) RunAndReturn(run func(context.Context) (*adaptive_placementpb.DistributionStats, error)) *MockStore_LoadStats_Call
type MockStore_StoreRules_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 (_c *MockStore_StoreRules_Call) Return(_a0 error) *MockStore_StoreRules_Call
func (*MockStore_StoreRules_Call) Run ¶
func (_c *MockStore_StoreRules_Call) Run(run func(_a0 context.Context, _a1 *adaptive_placementpb.PlacementRules)) *MockStore_StoreRules_Call
func (*MockStore_StoreRules_Call) RunAndReturn ¶
func (_c *MockStore_StoreRules_Call) RunAndReturn(run func(context.Context, *adaptive_placementpb.PlacementRules) error) *MockStore_StoreRules_Call
type MockStore_StoreStats_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 (_c *MockStore_StoreStats_Call) Return(_a0 error) *MockStore_StoreStats_Call
func (*MockStore_StoreStats_Call) Run ¶
func (_c *MockStore_StoreStats_Call) Run(run func(_a0 context.Context, _a1 *adaptive_placementpb.DistributionStats)) *MockStore_StoreStats_Call
func (*MockStore_StoreStats_Call) RunAndReturn ¶
func (_c *MockStore_StoreStats_Call) RunAndReturn(run func(context.Context, *adaptive_placementpb.DistributionStats) error) *MockStore_StoreStats_Call