mocks

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	mock.Mock
}

Manager is an autogenerated mock type for the Manager type

func NewManager

func NewManager(t mockConstructorTestingTNewManager) *Manager

NewManager creates a new instance of Manager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Manager) EXPECT

func (_m *Manager) EXPECT() *Manager_Expecter

func (*Manager) GetPoolByKey added in v0.2.0

func (_m *Manager) GetPoolByKey(key string) *pool.Pool

GetPoolByKey provides a mock function with given fields: key

func (*Manager) GetPools

func (_m *Manager) GetPools() map[string]*pool.Pool

GetPools provides a mock function with given fields:

func (*Manager) RemovePool added in v0.2.0

func (_m *Manager) RemovePool(key string)

RemovePool provides a mock function with given fields: key

func (*Manager) UpdatePool added in v0.2.0

func (_m *Manager) UpdatePool(key string, _a1 *pool.Pool)

UpdatePool provides a mock function with given fields: key, _a1

type Manager_Expecter

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

func (*Manager_Expecter) GetPoolByKey added in v0.2.0

func (_e *Manager_Expecter) GetPoolByKey(key interface{}) *Manager_GetPoolByKey_Call

GetPoolByKey is a helper method to define mock.On call

  • key string

func (*Manager_Expecter) GetPools

func (_e *Manager_Expecter) GetPools() *Manager_GetPools_Call

GetPools is a helper method to define mock.On call

func (*Manager_Expecter) RemovePool added in v0.2.0

func (_e *Manager_Expecter) RemovePool(key interface{}) *Manager_RemovePool_Call

RemovePool is a helper method to define mock.On call

  • key string

func (*Manager_Expecter) UpdatePool added in v0.2.0

func (_e *Manager_Expecter) UpdatePool(key interface{}, _a1 interface{}) *Manager_UpdatePool_Call

UpdatePool is a helper method to define mock.On call

  • key string
  • _a1 *pool.Pool

type Manager_GetPoolByKey_Call added in v0.2.0

type Manager_GetPoolByKey_Call struct {
	*mock.Call
}

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

func (*Manager_GetPoolByKey_Call) Return added in v0.2.0

func (*Manager_GetPoolByKey_Call) Run added in v0.2.0

func (*Manager_GetPoolByKey_Call) RunAndReturn added in v0.2.0

func (_c *Manager_GetPoolByKey_Call) RunAndReturn(run func(string) *pool.Pool) *Manager_GetPoolByKey_Call

type Manager_GetPools_Call

type Manager_GetPools_Call struct {
	*mock.Call
}

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

func (*Manager_GetPools_Call) Return

func (*Manager_GetPools_Call) Run

func (_c *Manager_GetPools_Call) Run(run func()) *Manager_GetPools_Call

func (*Manager_GetPools_Call) RunAndReturn

func (_c *Manager_GetPools_Call) RunAndReturn(run func() map[string]*pool.Pool) *Manager_GetPools_Call

type Manager_RemovePool_Call added in v0.2.0

type Manager_RemovePool_Call struct {
	*mock.Call
}

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

func (*Manager_RemovePool_Call) Return added in v0.2.0

func (*Manager_RemovePool_Call) Run added in v0.2.0

func (_c *Manager_RemovePool_Call) Run(run func(key string)) *Manager_RemovePool_Call

func (*Manager_RemovePool_Call) RunAndReturn added in v0.2.0

func (_c *Manager_RemovePool_Call) RunAndReturn(run func(string)) *Manager_RemovePool_Call

type Manager_UpdatePool_Call added in v0.2.0

type Manager_UpdatePool_Call struct {
	*mock.Call
}

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

func (*Manager_UpdatePool_Call) Return added in v0.2.0

func (*Manager_UpdatePool_Call) Run added in v0.2.0

func (_c *Manager_UpdatePool_Call) Run(run func(key string, _a1 *pool.Pool)) *Manager_UpdatePool_Call

func (*Manager_UpdatePool_Call) RunAndReturn added in v0.2.0

func (_c *Manager_UpdatePool_Call) RunAndReturn(run func(string, *pool.Pool)) *Manager_UpdatePool_Call

Jump to

Keyboard shortcuts

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