mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2025 License: LGPL-3.0, MIT Imports: 15 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 no fields

func (*Chain) Client

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

Client provides a mock function with no fields

func (*Chain) Close

func (_m *Chain) Close() error

Close provides a mock function with no fields

func (*Chain) Config

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

Config provides a mock function with no fields

func (*Chain) EXPECT

func (_m *Chain) EXPECT() *Chain_Expecter

func (*Chain) GasEstimator

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

GasEstimator provides a mock function with no fields

func (*Chain) GetChainInfo

func (_m *Chain) GetChainInfo(ctx context.Context) (types.ChainInfo, error)

GetChainInfo provides a mock function with given fields: ctx

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() heads.Broadcaster[*pkgtypes.Head, common.Hash]

HeadBroadcaster provides a mock function with no fields

func (*Chain) HeadTracker

func (_m *Chain) HeadTracker() heads.Tracker[*pkgtypes.Head, common.Hash]

HeadTracker provides a mock function with no fields

func (*Chain) HealthReport

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

HealthReport provides a mock function with no fields

func (*Chain) ID

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

ID provides a mock function with no fields

func (*Chain) LatestHead

func (_m *Chain) LatestHead(ctx context.Context) (types.Head, error)

LatestHead provides a mock function with given fields: ctx

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 no fields

func (*Chain) LogPoller

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

LogPoller provides a mock function with no fields

func (*Chain) Logger

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

Logger provides a mock function with no fields

func (*Chain) Name

func (_m *Chain) Name() string

Name provides a mock function with no fields

func (*Chain) Ready

func (_m *Chain) Ready() error

Ready provides a mock function with no fields

func (*Chain) Replay

func (_m *Chain) Replay(ctx context.Context, fromBlock string, args map[string]interface{}) error

Replay provides a mock function with given fields: ctx, fromBlock, args

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 no fields

type Chain_BalanceMonitor_Call

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

func (*Chain_BalanceMonitor_Call) Run

func (*Chain_BalanceMonitor_Call) RunAndReturn

type Chain_Client_Call

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

func (*Chain_Client_Call) Run

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

func (*Chain_Client_Call) RunAndReturn

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

type Chain_Close_Call

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

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

func (*Chain_Close_Call) Run

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

func (*Chain_Close_Call) RunAndReturn

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

type Chain_Config_Call

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

func (*Chain_Config_Call) Run

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

func (*Chain_Config_Call) RunAndReturn

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

type Chain_Expecter

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

func (*Chain_Expecter) BalanceMonitor

func (_e *Chain_Expecter) BalanceMonitor() *Chain_BalanceMonitor_Call

BalanceMonitor is a helper method to define mock.On call

func (*Chain_Expecter) Client

func (_e *Chain_Expecter) Client() *Chain_Client_Call

Client is a helper method to define mock.On call

func (*Chain_Expecter) Close

func (_e *Chain_Expecter) Close() *Chain_Close_Call

Close is a helper method to define mock.On call

func (*Chain_Expecter) Config

func (_e *Chain_Expecter) Config() *Chain_Config_Call

Config is a helper method to define mock.On call

func (*Chain_Expecter) GasEstimator

func (_e *Chain_Expecter) GasEstimator() *Chain_GasEstimator_Call

GasEstimator is a helper method to define mock.On call

func (*Chain_Expecter) GetChainInfo

func (_e *Chain_Expecter) GetChainInfo(ctx interface{}) *Chain_GetChainInfo_Call

GetChainInfo is a helper method to define mock.On call

  • ctx context.Context

func (*Chain_Expecter) GetChainStatus

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

func (_e *Chain_Expecter) HeadBroadcaster() *Chain_HeadBroadcaster_Call

HeadBroadcaster is a helper method to define mock.On call

func (*Chain_Expecter) HeadTracker

func (_e *Chain_Expecter) HeadTracker() *Chain_HeadTracker_Call

HeadTracker is a helper method to define mock.On call

func (*Chain_Expecter) HealthReport

func (_e *Chain_Expecter) HealthReport() *Chain_HealthReport_Call

HealthReport is a helper method to define mock.On call

func (*Chain_Expecter) ID

func (_e *Chain_Expecter) ID() *Chain_ID_Call

ID is a helper method to define mock.On call

func (*Chain_Expecter) LatestHead

func (_e *Chain_Expecter) LatestHead(ctx interface{}) *Chain_LatestHead_Call

LatestHead is a helper method to define mock.On call

  • ctx context.Context

func (*Chain_Expecter) ListNodeStatuses

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

func (_e *Chain_Expecter) LogBroadcaster() *Chain_LogBroadcaster_Call

LogBroadcaster is a helper method to define mock.On call

func (*Chain_Expecter) LogPoller

func (_e *Chain_Expecter) LogPoller() *Chain_LogPoller_Call

LogPoller is a helper method to define mock.On call

func (*Chain_Expecter) Logger

func (_e *Chain_Expecter) Logger() *Chain_Logger_Call

Logger is a helper method to define mock.On call

func (*Chain_Expecter) Name

func (_e *Chain_Expecter) Name() *Chain_Name_Call

Name is a helper method to define mock.On call

func (*Chain_Expecter) Ready

func (_e *Chain_Expecter) Ready() *Chain_Ready_Call

Ready is a helper method to define mock.On call

func (*Chain_Expecter) Replay

func (_e *Chain_Expecter) Replay(ctx interface{}, fromBlock interface{}, args interface{}) *Chain_Replay_Call

Replay is a helper method to define mock.On call

  • ctx context.Context
  • fromBlock string
  • args map[string]interface{}

func (*Chain_Expecter) Start

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

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

func (_e *Chain_Expecter) TxManager() *Chain_TxManager_Call

TxManager is a helper method to define mock.On call

type Chain_GasEstimator_Call

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

func (*Chain_GasEstimator_Call) Run

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

func (*Chain_GasEstimator_Call) RunAndReturn

type Chain_GetChainInfo_Call

type Chain_GetChainInfo_Call struct {
	*mock.Call
}

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

func (*Chain_GetChainInfo_Call) Return

func (*Chain_GetChainInfo_Call) Run

func (*Chain_GetChainInfo_Call) RunAndReturn

type Chain_GetChainStatus_Call

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

func (*Chain_GetChainStatus_Call) Run

func (*Chain_GetChainStatus_Call) RunAndReturn

type Chain_HeadBroadcaster_Call

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

func (*Chain_HeadBroadcaster_Call) Run

func (*Chain_HeadBroadcaster_Call) RunAndReturn

type Chain_HeadTracker_Call

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

func (*Chain_HeadTracker_Call) Run

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

func (*Chain_HeadTracker_Call) RunAndReturn

type Chain_HealthReport_Call

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

func (*Chain_HealthReport_Call) Run

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

func (*Chain_HealthReport_Call) RunAndReturn

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

type Chain_ID_Call

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

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

func (*Chain_ID_Call) Run

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

func (*Chain_ID_Call) RunAndReturn

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

type Chain_LatestHead_Call

type Chain_LatestHead_Call struct {
	*mock.Call
}

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

func (*Chain_LatestHead_Call) Return

func (*Chain_LatestHead_Call) Run

func (*Chain_LatestHead_Call) RunAndReturn

func (_c *Chain_LatestHead_Call) RunAndReturn(run func(context.Context) (types.Head, error)) *Chain_LatestHead_Call

type Chain_ListNodeStatuses_Call

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

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

func (*Chain_ListNodeStatuses_Call) Run

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

func (*Chain_ListNodeStatuses_Call) RunAndReturn

type Chain_LogBroadcaster_Call

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

func (*Chain_LogBroadcaster_Call) Run

func (*Chain_LogBroadcaster_Call) RunAndReturn

type Chain_LogPoller_Call

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

func (*Chain_LogPoller_Call) Run

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

func (*Chain_LogPoller_Call) RunAndReturn

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

type Chain_Logger_Call

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

func (*Chain_Logger_Call) Run

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

func (*Chain_Logger_Call) RunAndReturn

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

type Chain_Name_Call

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

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

func (*Chain_Name_Call) Run

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

func (*Chain_Name_Call) RunAndReturn

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

type Chain_Ready_Call

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

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

func (*Chain_Ready_Call) Run

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

func (*Chain_Ready_Call) RunAndReturn

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

type Chain_Replay_Call

type Chain_Replay_Call struct {
	*mock.Call
}

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

func (*Chain_Replay_Call) Return

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

func (*Chain_Replay_Call) Run

func (_c *Chain_Replay_Call) Run(run func(ctx context.Context, fromBlock string, args map[string]interface{})) *Chain_Replay_Call

func (*Chain_Replay_Call) RunAndReturn

func (_c *Chain_Replay_Call) RunAndReturn(run func(context.Context, string, map[string]interface{}) error) *Chain_Replay_Call

type Chain_Start_Call

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

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

func (*Chain_Start_Call) Run

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

func (*Chain_Start_Call) RunAndReturn

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

type Chain_Transact_Call

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

func (*Chain_Transact_Call) Run

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

type Chain_TxManager_Call

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) Run

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

func (*Chain_TxManager_Call) RunAndReturn

Jump to

Keyboard shortcuts

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