mocks

package
v2.15.0-beta0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BalanceMonitor

type BalanceMonitor struct {
	mock.Mock
}

BalanceMonitor is an autogenerated mock type for the BalanceMonitor type

func NewBalanceMonitor

func NewBalanceMonitor(t interface {
	mock.TestingT
	Cleanup(func())
}) *BalanceMonitor

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

func (_m *BalanceMonitor) Close() error

Close provides a mock function with given fields:

func (*BalanceMonitor) EXPECT added in v2.13.1

func (*BalanceMonitor) GetEthBalance

func (_m *BalanceMonitor) GetEthBalance(_a0 common.Address) *assets.Eth

GetEthBalance provides a mock function with given fields: _a0

func (*BalanceMonitor) HealthReport

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

HealthReport provides a mock function with given fields:

func (*BalanceMonitor) Name

func (_m *BalanceMonitor) Name() string

Name provides a mock function with given fields:

func (*BalanceMonitor) OnNewLongestChain

func (_m *BalanceMonitor) OnNewLongestChain(ctx context.Context, head *types.Head)

OnNewLongestChain provides a mock function with given fields: ctx, head

func (*BalanceMonitor) Ready

func (_m *BalanceMonitor) Ready() error

Ready provides a mock function with given fields:

func (*BalanceMonitor) Start

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

Start provides a mock function with given fields: _a0

type BalanceMonitor_Close_Call added in v2.13.1

type BalanceMonitor_Close_Call struct {
	*mock.Call
}

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

func (*BalanceMonitor_Close_Call) Return added in v2.13.1

func (*BalanceMonitor_Close_Call) Run added in v2.13.1

func (*BalanceMonitor_Close_Call) RunAndReturn added in v2.13.1

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

type BalanceMonitor_Expecter added in v2.13.1

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

func (*BalanceMonitor_Expecter) Close added in v2.13.1

Close is a helper method to define mock.On call

func (*BalanceMonitor_Expecter) GetEthBalance added in v2.13.1

func (_e *BalanceMonitor_Expecter) GetEthBalance(_a0 interface{}) *BalanceMonitor_GetEthBalance_Call

GetEthBalance is a helper method to define mock.On call

  • _a0 common.Address

func (*BalanceMonitor_Expecter) HealthReport added in v2.13.1

HealthReport is a helper method to define mock.On call

func (*BalanceMonitor_Expecter) Name added in v2.13.1

Name is a helper method to define mock.On call

func (*BalanceMonitor_Expecter) OnNewLongestChain added in v2.13.1

func (_e *BalanceMonitor_Expecter) OnNewLongestChain(ctx interface{}, head interface{}) *BalanceMonitor_OnNewLongestChain_Call

OnNewLongestChain is a helper method to define mock.On call

  • ctx context.Context
  • head *types.Head

func (*BalanceMonitor_Expecter) Ready added in v2.13.1

Ready is a helper method to define mock.On call

func (*BalanceMonitor_Expecter) Start added in v2.13.1

func (_e *BalanceMonitor_Expecter) Start(_a0 interface{}) *BalanceMonitor_Start_Call

Start is a helper method to define mock.On call

  • _a0 context.Context

type BalanceMonitor_GetEthBalance_Call added in v2.13.1

type BalanceMonitor_GetEthBalance_Call struct {
	*mock.Call
}

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

func (*BalanceMonitor_GetEthBalance_Call) Return added in v2.13.1

func (*BalanceMonitor_GetEthBalance_Call) Run added in v2.13.1

func (*BalanceMonitor_GetEthBalance_Call) RunAndReturn added in v2.13.1

type BalanceMonitor_HealthReport_Call added in v2.13.1

type BalanceMonitor_HealthReport_Call struct {
	*mock.Call
}

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

func (*BalanceMonitor_HealthReport_Call) Return added in v2.13.1

func (*BalanceMonitor_HealthReport_Call) Run added in v2.13.1

func (*BalanceMonitor_HealthReport_Call) RunAndReturn added in v2.13.1

type BalanceMonitor_Name_Call added in v2.13.1

type BalanceMonitor_Name_Call struct {
	*mock.Call
}

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

func (*BalanceMonitor_Name_Call) Return added in v2.13.1

func (*BalanceMonitor_Name_Call) Run added in v2.13.1

func (*BalanceMonitor_Name_Call) RunAndReturn added in v2.13.1

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

type BalanceMonitor_OnNewLongestChain_Call added in v2.13.1

type BalanceMonitor_OnNewLongestChain_Call struct {
	*mock.Call
}

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

func (*BalanceMonitor_OnNewLongestChain_Call) Return added in v2.13.1

func (*BalanceMonitor_OnNewLongestChain_Call) Run added in v2.13.1

func (*BalanceMonitor_OnNewLongestChain_Call) RunAndReturn added in v2.13.1

type BalanceMonitor_Ready_Call added in v2.13.1

type BalanceMonitor_Ready_Call struct {
	*mock.Call
}

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

func (*BalanceMonitor_Ready_Call) Return added in v2.13.1

func (*BalanceMonitor_Ready_Call) Run added in v2.13.1

func (*BalanceMonitor_Ready_Call) RunAndReturn added in v2.13.1

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

type BalanceMonitor_Start_Call added in v2.13.1

type BalanceMonitor_Start_Call struct {
	*mock.Call
}

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

func (*BalanceMonitor_Start_Call) Return added in v2.13.1

func (*BalanceMonitor_Start_Call) Run added in v2.13.1

func (*BalanceMonitor_Start_Call) RunAndReturn added in v2.13.1

Jump to

Keyboard shortcuts

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