Documentation ¶
Index ¶
- type Provider
- func (_m *Provider[K, V]) EXPECT() *Provider_Expecter[K, V]
- func (_m *Provider[K, V]) GetData() map[K]types.ResolvedResult[V]
- func (_m *Provider[K, V]) IsRunning() bool
- func (_m *Provider[K, V]) Name() string
- func (_m *Provider[K, V]) Start(_a0 context.Context) error
- func (_m *Provider[K, V]) Type() types.ProviderType
- type Provider_Expecter
- func (_e *Provider_Expecter[K, V]) GetData() *Provider_GetData_Call[K, V]
- func (_e *Provider_Expecter[K, V]) IsRunning() *Provider_IsRunning_Call[K, V]
- func (_e *Provider_Expecter[K, V]) Name() *Provider_Name_Call[K, V]
- func (_e *Provider_Expecter[K, V]) Start(_a0 interface{}) *Provider_Start_Call[K, V]
- func (_e *Provider_Expecter[K, V]) Type() *Provider_Type_Call[K, V]
- type Provider_GetData_Call
- func (_c *Provider_GetData_Call[K, V]) Return(_a0 map[K]types.ResolvedResult[V]) *Provider_GetData_Call[K, V]
- func (_c *Provider_GetData_Call[K, V]) Run(run func()) *Provider_GetData_Call[K, V]
- func (_c *Provider_GetData_Call[K, V]) RunAndReturn(run func() map[K]types.ResolvedResult[V]) *Provider_GetData_Call[K, V]
- type Provider_IsRunning_Call
- type Provider_Name_Call
- type Provider_Start_Call
- type Provider_Type_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider[K types.ResponseKey, V types.ResponseValue] struct { mock.Mock }
Provider is an autogenerated mock type for the Provider type
func NewProvider ¶
func NewProvider[K types.ResponseKey, V types.ResponseValue](t interface { mock.TestingT Cleanup(func()) }) *Provider[K, V]
NewProvider creates a new instance of Provider. 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 (*Provider[K, V]) EXPECT ¶
func (_m *Provider[K, V]) EXPECT() *Provider_Expecter[K, V]
func (*Provider[K, V]) GetData ¶
func (_m *Provider[K, V]) GetData() map[K]types.ResolvedResult[V]
GetData provides a mock function with no fields
func (*Provider[K, V]) Type ¶
func (_m *Provider[K, V]) Type() types.ProviderType
Type provides a mock function with no fields
type Provider_Expecter ¶
type Provider_Expecter[K types.ResponseKey, V types.ResponseValue] struct { // contains filtered or unexported fields }
func (*Provider_Expecter[K, V]) GetData ¶
func (_e *Provider_Expecter[K, V]) GetData() *Provider_GetData_Call[K, V]
GetData is a helper method to define mock.On call
func (*Provider_Expecter[K, V]) IsRunning ¶
func (_e *Provider_Expecter[K, V]) IsRunning() *Provider_IsRunning_Call[K, V]
IsRunning is a helper method to define mock.On call
func (*Provider_Expecter[K, V]) Name ¶
func (_e *Provider_Expecter[K, V]) Name() *Provider_Name_Call[K, V]
Name is a helper method to define mock.On call
func (*Provider_Expecter[K, V]) Start ¶
func (_e *Provider_Expecter[K, V]) Start(_a0 interface{}) *Provider_Start_Call[K, V]
Start is a helper method to define mock.On call
- _a0 context.Context
func (*Provider_Expecter[K, V]) Type ¶
func (_e *Provider_Expecter[K, V]) Type() *Provider_Type_Call[K, V]
Type is a helper method to define mock.On call
type Provider_GetData_Call ¶
type Provider_GetData_Call[K types.ResponseKey, V types.ResponseValue] struct { *mock.Call }
Provider_GetData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetData'
func (*Provider_GetData_Call[K, V]) Return ¶
func (_c *Provider_GetData_Call[K, V]) Return(_a0 map[K]types.ResolvedResult[V]) *Provider_GetData_Call[K, V]
func (*Provider_GetData_Call[K, V]) Run ¶
func (_c *Provider_GetData_Call[K, V]) Run(run func()) *Provider_GetData_Call[K, V]
func (*Provider_GetData_Call[K, V]) RunAndReturn ¶
func (_c *Provider_GetData_Call[K, V]) RunAndReturn(run func() map[K]types.ResolvedResult[V]) *Provider_GetData_Call[K, V]
type Provider_IsRunning_Call ¶
type Provider_IsRunning_Call[K types.ResponseKey, V types.ResponseValue] struct { *mock.Call }
Provider_IsRunning_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsRunning'
func (*Provider_IsRunning_Call[K, V]) Return ¶
func (_c *Provider_IsRunning_Call[K, V]) Return(_a0 bool) *Provider_IsRunning_Call[K, V]
func (*Provider_IsRunning_Call[K, V]) Run ¶
func (_c *Provider_IsRunning_Call[K, V]) Run(run func()) *Provider_IsRunning_Call[K, V]
func (*Provider_IsRunning_Call[K, V]) RunAndReturn ¶
func (_c *Provider_IsRunning_Call[K, V]) RunAndReturn(run func() bool) *Provider_IsRunning_Call[K, V]
type Provider_Name_Call ¶
type Provider_Name_Call[K types.ResponseKey, V types.ResponseValue] struct { *mock.Call }
Provider_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Provider_Name_Call[K, V]) Return ¶
func (_c *Provider_Name_Call[K, V]) Return(_a0 string) *Provider_Name_Call[K, V]
func (*Provider_Name_Call[K, V]) Run ¶
func (_c *Provider_Name_Call[K, V]) Run(run func()) *Provider_Name_Call[K, V]
func (*Provider_Name_Call[K, V]) RunAndReturn ¶
func (_c *Provider_Name_Call[K, V]) RunAndReturn(run func() string) *Provider_Name_Call[K, V]
type Provider_Start_Call ¶
type Provider_Start_Call[K types.ResponseKey, V types.ResponseValue] struct { *mock.Call }
Provider_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*Provider_Start_Call[K, V]) Return ¶
func (_c *Provider_Start_Call[K, V]) Return(_a0 error) *Provider_Start_Call[K, V]
func (*Provider_Start_Call[K, V]) Run ¶
func (_c *Provider_Start_Call[K, V]) Run(run func(_a0 context.Context)) *Provider_Start_Call[K, V]
func (*Provider_Start_Call[K, V]) RunAndReturn ¶
func (_c *Provider_Start_Call[K, V]) RunAndReturn(run func(context.Context) error) *Provider_Start_Call[K, V]
type Provider_Type_Call ¶
type Provider_Type_Call[K types.ResponseKey, V types.ResponseValue] struct { *mock.Call }
Provider_Type_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Type'
func (*Provider_Type_Call[K, V]) Return ¶
func (_c *Provider_Type_Call[K, V]) Return(_a0 types.ProviderType) *Provider_Type_Call[K, V]
func (*Provider_Type_Call[K, V]) Run ¶
func (_c *Provider_Type_Call[K, V]) Run(run func()) *Provider_Type_Call[K, V]
func (*Provider_Type_Call[K, V]) RunAndReturn ¶
func (_c *Provider_Type_Call[K, V]) RunAndReturn(run func() types.ProviderType) *Provider_Type_Call[K, V]