mocks

package
v2.15.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chain

type Chain struct {
	mock.Mock
}

Chain is an autogenerated mock type for the Chain type

func NewChain

func NewChain(t interface {
	mock.TestingT
	Cleanup(func())
}) *Chain

NewChain creates a new instance of Chain. 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 (*Chain) BalanceMonitor

func (_m *Chain) BalanceMonitor() monitor.BalanceMonitor

BalanceMonitor provides a mock function with given fields:

func (*Chain) Client

func (_m *Chain) Client() client.Client

Client provides a mock function with given fields:

func (*Chain) Close

func (_m *Chain) Close() error

Close provides a mock function with given fields:

func (*Chain) Config

func (_m *Chain) Config() config.ChainScopedConfig

Config provides a mock function with given fields:

func (*Chain) EXPECT added in v2.15.0

func (_m *Chain) EXPECT() *Chain_Expecter

func (*Chain) GasEstimator

func (_m *Chain) GasEstimator() gas.EvmFeeEstimator

GasEstimator provides a mock function with given fields:

func (*Chain) GetChainStatus

func (_m *Chain) GetChainStatus(ctx context.Context) (types.ChainStatus, error)

GetChainStatus provides a mock function with given fields: ctx

func (*Chain) HeadBroadcaster

func (_m *Chain) HeadBroadcaster() headtracker.HeadBroadcaster[*evmtypes.Head, common.Hash]

HeadBroadcaster provides a mock function with given fields:

func (*Chain) HeadTracker

func (_m *Chain) HeadTracker() headtracker.HeadTracker[*evmtypes.Head, common.Hash]

HeadTracker provides a mock function with given fields:

func (*Chain) HealthReport

func (_m *Chain) HealthReport() map[string]error

HealthReport provides a mock function with given fields:

func (*Chain) ID

func (_m *Chain) ID() *big.Int

ID provides a mock function with given fields:

func (*Chain) ListNodeStatuses

func (_m *Chain) ListNodeStatuses(ctx context.Context, pageSize int32, pageToken string) ([]types.NodeStatus, string, int, error)

ListNodeStatuses provides a mock function with given fields: ctx, pageSize, pageToken

func (*Chain) LogBroadcaster

func (_m *Chain) LogBroadcaster() log.Broadcaster

LogBroadcaster provides a mock function with given fields:

func (*Chain) LogPoller

func (_m *Chain) LogPoller() logpoller.LogPoller

LogPoller provides a mock function with given fields:

func (*Chain) Logger

func (_m *Chain) Logger() logger.Logger

Logger provides a mock function with given fields:

func (*Chain) Name

func (_m *Chain) Name() string

Name provides a mock function with given fields:

func (*Chain) Ready

func (_m *Chain) Ready() error

Ready provides a mock function with given fields:

func (*Chain) Start

func (_m *Chain) Start(_a0 context.Context) error

Start provides a mock function with given fields: _a0

func (*Chain) Transact

func (_m *Chain) Transact(ctx context.Context, from string, to string, amount *big.Int, balanceCheck bool) error

Transact provides a mock function with given fields: ctx, from, to, amount, balanceCheck

func (*Chain) TxManager

TxManager provides a mock function with given fields:

type Chain_BalanceMonitor_Call added in v2.15.0

type Chain_BalanceMonitor_Call struct {
	*mock.Call
}

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

func (*Chain_BalanceMonitor_Call) Return added in v2.15.0

func (*Chain_BalanceMonitor_Call) Run added in v2.15.0

func (*Chain_BalanceMonitor_Call) RunAndReturn added in v2.15.0

type Chain_Client_Call added in v2.15.0

type Chain_Client_Call struct {
	*mock.Call
}

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

func (*Chain_Client_Call) Return added in v2.15.0

func (*Chain_Client_Call) Run added in v2.15.0

func (_c *Chain_Client_Call) Run(run func()) *Chain_Client_Call

func (*Chain_Client_Call) RunAndReturn added in v2.15.0

func (_c *Chain_Client_Call) RunAndReturn(run func() client.Client) *Chain_Client_Call

type Chain_Close_Call added in v2.15.0

type Chain_Close_Call struct {
	*mock.Call
}

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

func (*Chain_Close_Call) Return added in v2.15.0

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

func (*Chain_Close_Call) Run added in v2.15.0

func (_c *Chain_Close_Call) Run(run func()) *Chain_Close_Call

func (*Chain_Close_Call) RunAndReturn added in v2.15.0

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

type Chain_Config_Call added in v2.15.0

type Chain_Config_Call struct {
	*mock.Call
}

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

func (*Chain_Config_Call) Return added in v2.15.0

func (*Chain_Config_Call) Run added in v2.15.0

func (_c *Chain_Config_Call) Run(run func()) *Chain_Config_Call

func (*Chain_Config_Call) RunAndReturn added in v2.15.0

func (_c *Chain_Config_Call) RunAndReturn(run func() config.ChainScopedConfig) *Chain_Config_Call

type Chain_Expecter added in v2.15.0

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

func (*Chain_Expecter) BalanceMonitor added in v2.15.0

func (_e *Chain_Expecter) BalanceMonitor() *Chain_BalanceMonitor_Call

BalanceMonitor is a helper method to define mock.On call

func (*Chain_Expecter) Client added in v2.15.0

func (_e *Chain_Expecter) Client() *Chain_Client_Call

Client is a helper method to define mock.On call

func (*Chain_Expecter) Close added in v2.15.0

func (_e *Chain_Expecter) Close() *Chain_Close_Call

Close is a helper method to define mock.On call

func (*Chain_Expecter) Config added in v2.15.0

func (_e *Chain_Expecter) Config() *Chain_Config_Call

Config is a helper method to define mock.On call

func (*Chain_Expecter) GasEstimator added in v2.15.0

func (_e *Chain_Expecter) GasEstimator() *Chain_GasEstimator_Call

GasEstimator is a helper method to define mock.On call

func (*Chain_Expecter) GetChainStatus added in v2.15.0

func (_e *Chain_Expecter) GetChainStatus(ctx interface{}) *Chain_GetChainStatus_Call

GetChainStatus is a helper method to define mock.On call

  • ctx context.Context

func (*Chain_Expecter) HeadBroadcaster added in v2.15.0

func (_e *Chain_Expecter) HeadBroadcaster() *Chain_HeadBroadcaster_Call

HeadBroadcaster is a helper method to define mock.On call

func (*Chain_Expecter) HeadTracker added in v2.15.0

func (_e *Chain_Expecter) HeadTracker() *Chain_HeadTracker_Call

HeadTracker is a helper method to define mock.On call

func (*Chain_Expecter) HealthReport added in v2.15.0

func (_e *Chain_Expecter) HealthReport() *Chain_HealthReport_Call

HealthReport is a helper method to define mock.On call

func (*Chain_Expecter) ID added in v2.15.0

func (_e *Chain_Expecter) ID() *Chain_ID_Call

ID is a helper method to define mock.On call

func (*Chain_Expecter) ListNodeStatuses added in v2.15.0

func (_e *Chain_Expecter) ListNodeStatuses(ctx interface{}, pageSize interface{}, pageToken interface{}) *Chain_ListNodeStatuses_Call

ListNodeStatuses is a helper method to define mock.On call

  • ctx context.Context
  • pageSize int32
  • pageToken string

func (*Chain_Expecter) LogBroadcaster added in v2.15.0

func (_e *Chain_Expecter) LogBroadcaster() *Chain_LogBroadcaster_Call

LogBroadcaster is a helper method to define mock.On call

func (*Chain_Expecter) LogPoller added in v2.15.0

func (_e *Chain_Expecter) LogPoller() *Chain_LogPoller_Call

LogPoller is a helper method to define mock.On call

func (*Chain_Expecter) Logger added in v2.15.0

func (_e *Chain_Expecter) Logger() *Chain_Logger_Call

Logger is a helper method to define mock.On call

func (*Chain_Expecter) Name added in v2.15.0

func (_e *Chain_Expecter) Name() *Chain_Name_Call

Name is a helper method to define mock.On call

func (*Chain_Expecter) Ready added in v2.15.0

func (_e *Chain_Expecter) Ready() *Chain_Ready_Call

Ready is a helper method to define mock.On call

func (*Chain_Expecter) Start added in v2.15.0

func (_e *Chain_Expecter) Start(_a0 interface{}) *Chain_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

func (*Chain_Expecter) Transact added in v2.15.0

func (_e *Chain_Expecter) Transact(ctx interface{}, from interface{}, to interface{}, amount interface{}, balanceCheck interface{}) *Chain_Transact_Call

Transact is a helper method to define mock.On call

  • ctx context.Context
  • from string
  • to string
  • amount *big.Int
  • balanceCheck bool

func (*Chain_Expecter) TxManager added in v2.15.0

func (_e *Chain_Expecter) TxManager() *Chain_TxManager_Call

TxManager is a helper method to define mock.On call

type Chain_GasEstimator_Call added in v2.15.0

type Chain_GasEstimator_Call struct {
	*mock.Call
}

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

func (*Chain_GasEstimator_Call) Return added in v2.15.0

func (*Chain_GasEstimator_Call) Run added in v2.15.0

func (_c *Chain_GasEstimator_Call) Run(run func()) *Chain_GasEstimator_Call

func (*Chain_GasEstimator_Call) RunAndReturn added in v2.15.0

type Chain_GetChainStatus_Call added in v2.15.0

type Chain_GetChainStatus_Call struct {
	*mock.Call
}

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

func (*Chain_GetChainStatus_Call) Return added in v2.15.0

func (*Chain_GetChainStatus_Call) Run added in v2.15.0

func (*Chain_GetChainStatus_Call) RunAndReturn added in v2.15.0

type Chain_HeadBroadcaster_Call added in v2.15.0

type Chain_HeadBroadcaster_Call struct {
	*mock.Call
}

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

func (*Chain_HeadBroadcaster_Call) Return added in v2.15.0

func (*Chain_HeadBroadcaster_Call) Run added in v2.15.0

func (*Chain_HeadBroadcaster_Call) RunAndReturn added in v2.15.0

type Chain_HeadTracker_Call added in v2.15.0

type Chain_HeadTracker_Call struct {
	*mock.Call
}

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

func (*Chain_HeadTracker_Call) Return added in v2.15.0

func (*Chain_HeadTracker_Call) Run added in v2.15.0

func (_c *Chain_HeadTracker_Call) Run(run func()) *Chain_HeadTracker_Call

func (*Chain_HeadTracker_Call) RunAndReturn added in v2.15.0

type Chain_HealthReport_Call added in v2.15.0

type Chain_HealthReport_Call struct {
	*mock.Call
}

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

func (*Chain_HealthReport_Call) Return added in v2.15.0

func (*Chain_HealthReport_Call) Run added in v2.15.0

func (_c *Chain_HealthReport_Call) Run(run func()) *Chain_HealthReport_Call

func (*Chain_HealthReport_Call) RunAndReturn added in v2.15.0

func (_c *Chain_HealthReport_Call) RunAndReturn(run func() map[string]error) *Chain_HealthReport_Call

type Chain_ID_Call added in v2.15.0

type Chain_ID_Call struct {
	*mock.Call
}

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

func (*Chain_ID_Call) Return added in v2.15.0

func (_c *Chain_ID_Call) Return(_a0 *big.Int) *Chain_ID_Call

func (*Chain_ID_Call) Run added in v2.15.0

func (_c *Chain_ID_Call) Run(run func()) *Chain_ID_Call

func (*Chain_ID_Call) RunAndReturn added in v2.15.0

func (_c *Chain_ID_Call) RunAndReturn(run func() *big.Int) *Chain_ID_Call

type Chain_ListNodeStatuses_Call added in v2.15.0

type Chain_ListNodeStatuses_Call struct {
	*mock.Call
}

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

func (*Chain_ListNodeStatuses_Call) Return added in v2.15.0

func (_c *Chain_ListNodeStatuses_Call) Return(stats []types.NodeStatus, nextPageToken string, total int, err error) *Chain_ListNodeStatuses_Call

func (*Chain_ListNodeStatuses_Call) Run added in v2.15.0

func (_c *Chain_ListNodeStatuses_Call) Run(run func(ctx context.Context, pageSize int32, pageToken string)) *Chain_ListNodeStatuses_Call

func (*Chain_ListNodeStatuses_Call) RunAndReturn added in v2.15.0

type Chain_LogBroadcaster_Call added in v2.15.0

type Chain_LogBroadcaster_Call struct {
	*mock.Call
}

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

func (*Chain_LogBroadcaster_Call) Return added in v2.15.0

func (*Chain_LogBroadcaster_Call) Run added in v2.15.0

func (*Chain_LogBroadcaster_Call) RunAndReturn added in v2.15.0

type Chain_LogPoller_Call added in v2.15.0

type Chain_LogPoller_Call struct {
	*mock.Call
}

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

func (*Chain_LogPoller_Call) Return added in v2.15.0

func (*Chain_LogPoller_Call) Run added in v2.15.0

func (_c *Chain_LogPoller_Call) Run(run func()) *Chain_LogPoller_Call

func (*Chain_LogPoller_Call) RunAndReturn added in v2.15.0

func (_c *Chain_LogPoller_Call) RunAndReturn(run func() logpoller.LogPoller) *Chain_LogPoller_Call

type Chain_Logger_Call added in v2.15.0

type Chain_Logger_Call struct {
	*mock.Call
}

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

func (*Chain_Logger_Call) Return added in v2.15.0

func (*Chain_Logger_Call) Run added in v2.15.0

func (_c *Chain_Logger_Call) Run(run func()) *Chain_Logger_Call

func (*Chain_Logger_Call) RunAndReturn added in v2.15.0

func (_c *Chain_Logger_Call) RunAndReturn(run func() logger.Logger) *Chain_Logger_Call

type Chain_Name_Call added in v2.15.0

type Chain_Name_Call struct {
	*mock.Call
}

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

func (*Chain_Name_Call) Return added in v2.15.0

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

func (*Chain_Name_Call) Run added in v2.15.0

func (_c *Chain_Name_Call) Run(run func()) *Chain_Name_Call

func (*Chain_Name_Call) RunAndReturn added in v2.15.0

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

type Chain_Ready_Call added in v2.15.0

type Chain_Ready_Call struct {
	*mock.Call
}

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

func (*Chain_Ready_Call) Return added in v2.15.0

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

func (*Chain_Ready_Call) Run added in v2.15.0

func (_c *Chain_Ready_Call) Run(run func()) *Chain_Ready_Call

func (*Chain_Ready_Call) RunAndReturn added in v2.15.0

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

type Chain_Start_Call added in v2.15.0

type Chain_Start_Call struct {
	*mock.Call
}

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

func (*Chain_Start_Call) Return added in v2.15.0

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

func (*Chain_Start_Call) Run added in v2.15.0

func (_c *Chain_Start_Call) Run(run func(_a0 context.Context)) *Chain_Start_Call

func (*Chain_Start_Call) RunAndReturn added in v2.15.0

func (_c *Chain_Start_Call) RunAndReturn(run func(context.Context) error) *Chain_Start_Call

type Chain_Transact_Call added in v2.15.0

type Chain_Transact_Call struct {
	*mock.Call
}

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

func (*Chain_Transact_Call) Return added in v2.15.0

func (*Chain_Transact_Call) Run added in v2.15.0

func (_c *Chain_Transact_Call) Run(run func(ctx context.Context, from string, to string, amount *big.Int, balanceCheck bool)) *Chain_Transact_Call

func (*Chain_Transact_Call) RunAndReturn added in v2.15.0

type Chain_TxManager_Call added in v2.15.0

type Chain_TxManager_Call struct {
	*mock.Call
}

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

func (*Chain_TxManager_Call) Return added in v2.15.0

func (*Chain_TxManager_Call) Run added in v2.15.0

func (_c *Chain_TxManager_Call) Run(run func()) *Chain_TxManager_Call

func (*Chain_TxManager_Call) RunAndReturn added in v2.15.0

type LegacyChainContainer

type LegacyChainContainer struct {
	mock.Mock
}

LegacyChainContainer is an autogenerated mock type for the LegacyChainContainer type

func NewLegacyChainContainer

func NewLegacyChainContainer(t interface {
	mock.TestingT
	Cleanup(func())
}) *LegacyChainContainer

NewLegacyChainContainer creates a new instance of LegacyChainContainer. 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 (*LegacyChainContainer) ChainNodeConfigs

func (_m *LegacyChainContainer) ChainNodeConfigs() types.Configs

ChainNodeConfigs provides a mock function with given fields:

func (*LegacyChainContainer) EXPECT added in v2.15.0

func (*LegacyChainContainer) Get

Get provides a mock function with given fields: id

func (*LegacyChainContainer) Len

func (_m *LegacyChainContainer) Len() int

Len provides a mock function with given fields:

func (*LegacyChainContainer) List

func (_m *LegacyChainContainer) List(ids ...string) ([]legacyevm.Chain, error)

List provides a mock function with given fields: ids

func (*LegacyChainContainer) Slice

func (_m *LegacyChainContainer) Slice() []legacyevm.Chain

Slice provides a mock function with given fields:

type LegacyChainContainer_ChainNodeConfigs_Call added in v2.15.0

type LegacyChainContainer_ChainNodeConfigs_Call struct {
	*mock.Call
}

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

func (*LegacyChainContainer_ChainNodeConfigs_Call) Return added in v2.15.0

func (*LegacyChainContainer_ChainNodeConfigs_Call) Run added in v2.15.0

func (*LegacyChainContainer_ChainNodeConfigs_Call) RunAndReturn added in v2.15.0

type LegacyChainContainer_Expecter added in v2.15.0

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

func (*LegacyChainContainer_Expecter) ChainNodeConfigs added in v2.15.0

ChainNodeConfigs is a helper method to define mock.On call

func (*LegacyChainContainer_Expecter) Get added in v2.15.0

Get is a helper method to define mock.On call

  • id string

func (*LegacyChainContainer_Expecter) Len added in v2.15.0

Len is a helper method to define mock.On call

func (*LegacyChainContainer_Expecter) List added in v2.15.0

func (_e *LegacyChainContainer_Expecter) List(ids ...interface{}) *LegacyChainContainer_List_Call

List is a helper method to define mock.On call

  • ids ...string

func (*LegacyChainContainer_Expecter) Slice added in v2.15.0

Slice is a helper method to define mock.On call

type LegacyChainContainer_Get_Call added in v2.15.0

type LegacyChainContainer_Get_Call struct {
	*mock.Call
}

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

func (*LegacyChainContainer_Get_Call) Return added in v2.15.0

func (*LegacyChainContainer_Get_Call) Run added in v2.15.0

func (*LegacyChainContainer_Get_Call) RunAndReturn added in v2.15.0

type LegacyChainContainer_Len_Call added in v2.15.0

type LegacyChainContainer_Len_Call struct {
	*mock.Call
}

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

func (*LegacyChainContainer_Len_Call) Return added in v2.15.0

func (*LegacyChainContainer_Len_Call) Run added in v2.15.0

func (*LegacyChainContainer_Len_Call) RunAndReturn added in v2.15.0

func (_c *LegacyChainContainer_Len_Call) RunAndReturn(run func() int) *LegacyChainContainer_Len_Call

type LegacyChainContainer_List_Call added in v2.15.0

type LegacyChainContainer_List_Call struct {
	*mock.Call
}

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

func (*LegacyChainContainer_List_Call) Return added in v2.15.0

func (*LegacyChainContainer_List_Call) Run added in v2.15.0

func (*LegacyChainContainer_List_Call) RunAndReturn added in v2.15.0

type LegacyChainContainer_Slice_Call added in v2.15.0

type LegacyChainContainer_Slice_Call struct {
	*mock.Call
}

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

func (*LegacyChainContainer_Slice_Call) Return added in v2.15.0

func (*LegacyChainContainer_Slice_Call) Run added in v2.15.0

func (*LegacyChainContainer_Slice_Call) RunAndReturn added in v2.15.0

Jump to

Keyboard shortcuts

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