mocks

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.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 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]) IsRunning

func (_m *Provider[K, V]) IsRunning() bool

IsRunning provides a mock function with no fields

func (*Provider[K, V]) Name

func (_m *Provider[K, V]) Name() string

Name provides a mock function with no fields

func (*Provider[K, V]) Start

func (_m *Provider[K, V]) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

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]

Jump to

Keyboard shortcuts

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