mocks

package
v0.1.1-experimental.5 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Basic

type Basic struct {
	mock.Mock
}

Basic is an autogenerated mock type for the Basic type

func NewBasic

func NewBasic(t interface {
	mock.TestingT
	Cleanup(func())
}) *Basic

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

func (_m *Basic) EXPECT() *Basic_Expecter

func (*Basic) Name

func (_m *Basic) Name() string

Name provides a mock function with given fields:

func (*Basic) Start

func (_m *Basic) Start(ctx context.Context)

Start provides a mock function with given fields: ctx

func (*Basic) Status

func (_m *Basic) Status() error

Status provides a mock function with given fields:

func (*Basic) WaitForHealthy

func (_m *Basic) WaitForHealthy(ctx context.Context)

WaitForHealthy provides a mock function with given fields: ctx

type Basic_Expecter

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

func (*Basic_Expecter) Name

func (_e *Basic_Expecter) Name() *Basic_Name_Call

Name is a helper method to define mock.On call

func (*Basic_Expecter) Start

func (_e *Basic_Expecter) Start(ctx interface{}) *Basic_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*Basic_Expecter) Status

func (_e *Basic_Expecter) Status() *Basic_Status_Call

Status is a helper method to define mock.On call

func (*Basic_Expecter) WaitForHealthy

func (_e *Basic_Expecter) WaitForHealthy(ctx interface{}) *Basic_WaitForHealthy_Call

WaitForHealthy is a helper method to define mock.On call

  • ctx context.Context

type Basic_Name_Call

type Basic_Name_Call struct {
	*mock.Call
}

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

func (*Basic_Name_Call) Return

func (_c *Basic_Name_Call) Return(_a0 string) *Basic_Name_Call

func (*Basic_Name_Call) Run

func (_c *Basic_Name_Call) Run(run func()) *Basic_Name_Call

func (*Basic_Name_Call) RunAndReturn

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

type Basic_Start_Call

type Basic_Start_Call struct {
	*mock.Call
}

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

func (*Basic_Start_Call) Return

func (_c *Basic_Start_Call) Return() *Basic_Start_Call

func (*Basic_Start_Call) Run

func (_c *Basic_Start_Call) Run(run func(ctx context.Context)) *Basic_Start_Call

func (*Basic_Start_Call) RunAndReturn

func (_c *Basic_Start_Call) RunAndReturn(run func(context.Context)) *Basic_Start_Call

type Basic_Status_Call

type Basic_Status_Call struct {
	*mock.Call
}

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

func (*Basic_Status_Call) Return

func (_c *Basic_Status_Call) Return(_a0 error) *Basic_Status_Call

func (*Basic_Status_Call) Run

func (_c *Basic_Status_Call) Run(run func()) *Basic_Status_Call

func (*Basic_Status_Call) RunAndReturn

func (_c *Basic_Status_Call) RunAndReturn(run func() error) *Basic_Status_Call

type Basic_WaitForHealthy_Call

type Basic_WaitForHealthy_Call struct {
	*mock.Call
}

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

func (*Basic_WaitForHealthy_Call) Return

func (*Basic_WaitForHealthy_Call) Run

func (*Basic_WaitForHealthy_Call) RunAndReturn

type BeaconStorageBackend

type BeaconStorageBackend struct {
	mock.Mock
}

BeaconStorageBackend is an autogenerated mock type for the BeaconStorageBackend type

func NewBeaconStorageBackend

func NewBeaconStorageBackend(t interface {
	mock.TestingT
	Cleanup(func())
}) *BeaconStorageBackend

NewBeaconStorageBackend creates a new instance of BeaconStorageBackend. 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 (*BeaconStorageBackend) AvailabilityStore

func (_m *BeaconStorageBackend) AvailabilityStore(ctx context.Context) core.AvailabilityStore

AvailabilityStore provides a mock function with given fields: ctx

func (*BeaconStorageBackend) BeaconState

func (_m *BeaconStorageBackend) BeaconState(ctx context.Context) state.BeaconState

BeaconState provides a mock function with given fields: ctx

func (*BeaconStorageBackend) EXPECT

type BeaconStorageBackend_AvailabilityStore_Call

type BeaconStorageBackend_AvailabilityStore_Call struct {
	*mock.Call
}

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

func (*BeaconStorageBackend_AvailabilityStore_Call) Return

func (*BeaconStorageBackend_AvailabilityStore_Call) Run

func (*BeaconStorageBackend_AvailabilityStore_Call) RunAndReturn

type BeaconStorageBackend_BeaconState_Call

type BeaconStorageBackend_BeaconState_Call struct {
	*mock.Call
}

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

func (*BeaconStorageBackend_BeaconState_Call) Return

func (*BeaconStorageBackend_BeaconState_Call) Run

func (*BeaconStorageBackend_BeaconState_Call) RunAndReturn

type BeaconStorageBackend_Expecter

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

func (*BeaconStorageBackend_Expecter) AvailabilityStore

func (_e *BeaconStorageBackend_Expecter) AvailabilityStore(ctx interface{}) *BeaconStorageBackend_AvailabilityStore_Call

AvailabilityStore is a helper method to define mock.On call

  • ctx context.Context

func (*BeaconStorageBackend_Expecter) BeaconState

func (_e *BeaconStorageBackend_Expecter) BeaconState(ctx interface{}) *BeaconStorageBackend_BeaconState_Call

BeaconState is a helper method to define mock.On call

  • ctx context.Context

type Option

type Option[T interface{}] struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption

func NewOption[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *Option[T]

NewOption creates a new instance of Option. 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 (*Option[T]) EXPECT

func (_m *Option[T]) EXPECT() *Option_Expecter[T]

func (*Option[T]) Execute

func (_m *Option[T]) Execute(_a0 *T) error

Execute provides a mock function with given fields: _a0

type Option_Execute_Call

type Option_Execute_Call[T interface{}] struct {
	*mock.Call
}

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

func (*Option_Execute_Call[T]) Return

func (_c *Option_Execute_Call[T]) Return(_a0 error) *Option_Execute_Call[T]

func (*Option_Execute_Call[T]) Run

func (_c *Option_Execute_Call[T]) Run(run func(_a0 *T)) *Option_Execute_Call[T]

func (*Option_Execute_Call[T]) RunAndReturn

func (_c *Option_Execute_Call[T]) RunAndReturn(run func(*T) error) *Option_Execute_Call[T]

type Option_Expecter

type Option_Expecter[T interface{}] struct {
	// contains filtered or unexported fields
}

func (*Option_Expecter[T]) Execute

func (_e *Option_Expecter[T]) Execute(_a0 interface{}) *Option_Execute_Call[T]

Execute is a helper method to define mock.On call

  • _a0 *T

type RegistryOption

type RegistryOption struct {
	mock.Mock
}

RegistryOption is an autogenerated mock type for the RegistryOption type

func NewRegistryOption

func NewRegistryOption(t interface {
	mock.TestingT
	Cleanup(func())
}) *RegistryOption

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

func (*RegistryOption) Execute

func (_m *RegistryOption) Execute(_a0 *service.Registry) error

Execute provides a mock function with given fields: _a0

type RegistryOption_Execute_Call

type RegistryOption_Execute_Call struct {
	*mock.Call
}

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

func (*RegistryOption_Execute_Call) Return

func (*RegistryOption_Execute_Call) Run

func (*RegistryOption_Execute_Call) RunAndReturn

type RegistryOption_Expecter

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

func (*RegistryOption_Expecter) Execute

func (_e *RegistryOption_Expecter) Execute(_a0 interface{}) *RegistryOption_Execute_Call

Execute is a helper method to define mock.On call

  • _a0 *service.Registry

Jump to

Keyboard shortcuts

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