Documentation ¶
Index ¶
- type BalanceMonitor
- func (_m *BalanceMonitor) Close() error
- func (_m *BalanceMonitor) EXPECT() *BalanceMonitor_Expecter
- func (_m *BalanceMonitor) GetEthBalance(_a0 common.Address) *assets.Eth
- func (_m *BalanceMonitor) HealthReport() map[string]error
- func (_m *BalanceMonitor) Name() string
- func (_m *BalanceMonitor) OnNewLongestChain(ctx context.Context, head *types.Head)
- func (_m *BalanceMonitor) Ready() error
- func (_m *BalanceMonitor) Start(_a0 context.Context) error
- type BalanceMonitor_Close_Call
- type BalanceMonitor_Expecter
- func (_e *BalanceMonitor_Expecter) Close() *BalanceMonitor_Close_Call
- func (_e *BalanceMonitor_Expecter) GetEthBalance(_a0 interface{}) *BalanceMonitor_GetEthBalance_Call
- func (_e *BalanceMonitor_Expecter) HealthReport() *BalanceMonitor_HealthReport_Call
- func (_e *BalanceMonitor_Expecter) Name() *BalanceMonitor_Name_Call
- func (_e *BalanceMonitor_Expecter) OnNewLongestChain(ctx interface{}, head interface{}) *BalanceMonitor_OnNewLongestChain_Call
- func (_e *BalanceMonitor_Expecter) Ready() *BalanceMonitor_Ready_Call
- func (_e *BalanceMonitor_Expecter) Start(_a0 interface{}) *BalanceMonitor_Start_Call
- type BalanceMonitor_GetEthBalance_Call
- func (_c *BalanceMonitor_GetEthBalance_Call) Return(_a0 *assets.Eth) *BalanceMonitor_GetEthBalance_Call
- func (_c *BalanceMonitor_GetEthBalance_Call) Run(run func(_a0 common.Address)) *BalanceMonitor_GetEthBalance_Call
- func (_c *BalanceMonitor_GetEthBalance_Call) RunAndReturn(run func(common.Address) *assets.Eth) *BalanceMonitor_GetEthBalance_Call
- type BalanceMonitor_HealthReport_Call
- func (_c *BalanceMonitor_HealthReport_Call) Return(_a0 map[string]error) *BalanceMonitor_HealthReport_Call
- func (_c *BalanceMonitor_HealthReport_Call) Run(run func()) *BalanceMonitor_HealthReport_Call
- func (_c *BalanceMonitor_HealthReport_Call) RunAndReturn(run func() map[string]error) *BalanceMonitor_HealthReport_Call
- type BalanceMonitor_Name_Call
- type BalanceMonitor_OnNewLongestChain_Call
- func (_c *BalanceMonitor_OnNewLongestChain_Call) Return() *BalanceMonitor_OnNewLongestChain_Call
- func (_c *BalanceMonitor_OnNewLongestChain_Call) Run(run func(ctx context.Context, head *types.Head)) *BalanceMonitor_OnNewLongestChain_Call
- func (_c *BalanceMonitor_OnNewLongestChain_Call) RunAndReturn(run func(context.Context, *types.Head)) *BalanceMonitor_OnNewLongestChain_Call
- type BalanceMonitor_Ready_Call
- type BalanceMonitor_Start_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BalanceMonitor ¶
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.15.0
func (_m *BalanceMonitor) EXPECT() *BalanceMonitor_Expecter
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:
type BalanceMonitor_Close_Call ¶ added in v2.15.0
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.15.0
func (_c *BalanceMonitor_Close_Call) Return(_a0 error) *BalanceMonitor_Close_Call
func (*BalanceMonitor_Close_Call) Run ¶ added in v2.15.0
func (_c *BalanceMonitor_Close_Call) Run(run func()) *BalanceMonitor_Close_Call
func (*BalanceMonitor_Close_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BalanceMonitor_Close_Call) RunAndReturn(run func() error) *BalanceMonitor_Close_Call
type BalanceMonitor_Expecter ¶ added in v2.15.0
type BalanceMonitor_Expecter struct {
// contains filtered or unexported fields
}
func (*BalanceMonitor_Expecter) Close ¶ added in v2.15.0
func (_e *BalanceMonitor_Expecter) Close() *BalanceMonitor_Close_Call
Close is a helper method to define mock.On call
func (*BalanceMonitor_Expecter) GetEthBalance ¶ added in v2.15.0
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.15.0
func (_e *BalanceMonitor_Expecter) HealthReport() *BalanceMonitor_HealthReport_Call
HealthReport is a helper method to define mock.On call
func (*BalanceMonitor_Expecter) Name ¶ added in v2.15.0
func (_e *BalanceMonitor_Expecter) Name() *BalanceMonitor_Name_Call
Name is a helper method to define mock.On call
func (*BalanceMonitor_Expecter) OnNewLongestChain ¶ added in v2.15.0
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.15.0
func (_e *BalanceMonitor_Expecter) Ready() *BalanceMonitor_Ready_Call
Ready is a helper method to define mock.On call
func (*BalanceMonitor_Expecter) Start ¶ added in v2.15.0
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.15.0
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.15.0
func (_c *BalanceMonitor_GetEthBalance_Call) Return(_a0 *assets.Eth) *BalanceMonitor_GetEthBalance_Call
func (*BalanceMonitor_GetEthBalance_Call) Run ¶ added in v2.15.0
func (_c *BalanceMonitor_GetEthBalance_Call) Run(run func(_a0 common.Address)) *BalanceMonitor_GetEthBalance_Call
func (*BalanceMonitor_GetEthBalance_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BalanceMonitor_GetEthBalance_Call) RunAndReturn(run func(common.Address) *assets.Eth) *BalanceMonitor_GetEthBalance_Call
type BalanceMonitor_HealthReport_Call ¶ added in v2.15.0
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.15.0
func (_c *BalanceMonitor_HealthReport_Call) Return(_a0 map[string]error) *BalanceMonitor_HealthReport_Call
func (*BalanceMonitor_HealthReport_Call) Run ¶ added in v2.15.0
func (_c *BalanceMonitor_HealthReport_Call) Run(run func()) *BalanceMonitor_HealthReport_Call
func (*BalanceMonitor_HealthReport_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BalanceMonitor_HealthReport_Call) RunAndReturn(run func() map[string]error) *BalanceMonitor_HealthReport_Call
type BalanceMonitor_Name_Call ¶ added in v2.15.0
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.15.0
func (_c *BalanceMonitor_Name_Call) Return(_a0 string) *BalanceMonitor_Name_Call
func (*BalanceMonitor_Name_Call) Run ¶ added in v2.15.0
func (_c *BalanceMonitor_Name_Call) Run(run func()) *BalanceMonitor_Name_Call
func (*BalanceMonitor_Name_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BalanceMonitor_Name_Call) RunAndReturn(run func() string) *BalanceMonitor_Name_Call
type BalanceMonitor_OnNewLongestChain_Call ¶ added in v2.15.0
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.15.0
func (_c *BalanceMonitor_OnNewLongestChain_Call) Return() *BalanceMonitor_OnNewLongestChain_Call
func (*BalanceMonitor_OnNewLongestChain_Call) Run ¶ added in v2.15.0
func (_c *BalanceMonitor_OnNewLongestChain_Call) Run(run func(ctx context.Context, head *types.Head)) *BalanceMonitor_OnNewLongestChain_Call
func (*BalanceMonitor_OnNewLongestChain_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BalanceMonitor_OnNewLongestChain_Call) RunAndReturn(run func(context.Context, *types.Head)) *BalanceMonitor_OnNewLongestChain_Call
type BalanceMonitor_Ready_Call ¶ added in v2.15.0
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.15.0
func (_c *BalanceMonitor_Ready_Call) Return(_a0 error) *BalanceMonitor_Ready_Call
func (*BalanceMonitor_Ready_Call) Run ¶ added in v2.15.0
func (_c *BalanceMonitor_Ready_Call) Run(run func()) *BalanceMonitor_Ready_Call
func (*BalanceMonitor_Ready_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BalanceMonitor_Ready_Call) RunAndReturn(run func() error) *BalanceMonitor_Ready_Call
type BalanceMonitor_Start_Call ¶ added in v2.15.0
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.15.0
func (_c *BalanceMonitor_Start_Call) Return(_a0 error) *BalanceMonitor_Start_Call
func (*BalanceMonitor_Start_Call) Run ¶ added in v2.15.0
func (_c *BalanceMonitor_Start_Call) Run(run func(_a0 context.Context)) *BalanceMonitor_Start_Call
func (*BalanceMonitor_Start_Call) RunAndReturn ¶ added in v2.15.0
func (_c *BalanceMonitor_Start_Call) RunAndReturn(run func(context.Context) error) *BalanceMonitor_Start_Call