Documentation
¶
Index ¶
- type ReorgDetectorMock
- func (_m *ReorgDetectorMock) AddBlockToTrack(ctx context.Context, id string, blockNum uint64, blockHash common.Hash) error
- func (_m *ReorgDetectorMock) EXPECT() *ReorgDetectorMock_Expecter
- func (_m *ReorgDetectorMock) GetFinalizedBlockType() types.BlockNumberFinality
- func (_m *ReorgDetectorMock) String() string
- func (_m *ReorgDetectorMock) Subscribe(id string) (*reorgdetector.Subscription, error)
- type ReorgDetectorMock_AddBlockToTrack_Call
- func (_c *ReorgDetectorMock_AddBlockToTrack_Call) Return(_a0 error) *ReorgDetectorMock_AddBlockToTrack_Call
- func (_c *ReorgDetectorMock_AddBlockToTrack_Call) Run(...) *ReorgDetectorMock_AddBlockToTrack_Call
- func (_c *ReorgDetectorMock_AddBlockToTrack_Call) RunAndReturn(run func(context.Context, string, uint64, common.Hash) error) *ReorgDetectorMock_AddBlockToTrack_Call
- type ReorgDetectorMock_Expecter
- func (_e *ReorgDetectorMock_Expecter) AddBlockToTrack(ctx interface{}, id interface{}, blockNum interface{}, blockHash interface{}) *ReorgDetectorMock_AddBlockToTrack_Call
- func (_e *ReorgDetectorMock_Expecter) GetFinalizedBlockType() *ReorgDetectorMock_GetFinalizedBlockType_Call
- func (_e *ReorgDetectorMock_Expecter) String() *ReorgDetectorMock_String_Call
- func (_e *ReorgDetectorMock_Expecter) Subscribe(id interface{}) *ReorgDetectorMock_Subscribe_Call
- type ReorgDetectorMock_GetFinalizedBlockType_Call
- func (_c *ReorgDetectorMock_GetFinalizedBlockType_Call) Return(_a0 types.BlockNumberFinality) *ReorgDetectorMock_GetFinalizedBlockType_Call
- func (_c *ReorgDetectorMock_GetFinalizedBlockType_Call) Run(run func()) *ReorgDetectorMock_GetFinalizedBlockType_Call
- func (_c *ReorgDetectorMock_GetFinalizedBlockType_Call) RunAndReturn(run func() types.BlockNumberFinality) *ReorgDetectorMock_GetFinalizedBlockType_Call
- type ReorgDetectorMock_String_Call
- type ReorgDetectorMock_Subscribe_Call
- func (_c *ReorgDetectorMock_Subscribe_Call) Return(_a0 *reorgdetector.Subscription, _a1 error) *ReorgDetectorMock_Subscribe_Call
- func (_c *ReorgDetectorMock_Subscribe_Call) Run(run func(id string)) *ReorgDetectorMock_Subscribe_Call
- func (_c *ReorgDetectorMock_Subscribe_Call) RunAndReturn(run func(string) (*reorgdetector.Subscription, error)) *ReorgDetectorMock_Subscribe_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReorgDetectorMock ¶
ReorgDetectorMock is an autogenerated mock type for the ReorgDetector type
func NewReorgDetectorMock ¶
func NewReorgDetectorMock(t interface {
mock.TestingT
Cleanup(func())
}) *ReorgDetectorMock
NewReorgDetectorMock creates a new instance of ReorgDetectorMock. 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 (*ReorgDetectorMock) AddBlockToTrack ¶
func (_m *ReorgDetectorMock) AddBlockToTrack(ctx context.Context, id string, blockNum uint64, blockHash common.Hash) error
AddBlockToTrack provides a mock function with given fields: ctx, id, blockNum, blockHash
func (*ReorgDetectorMock) EXPECT ¶
func (_m *ReorgDetectorMock) EXPECT() *ReorgDetectorMock_Expecter
func (*ReorgDetectorMock) GetFinalizedBlockType ¶ added in v0.0.2
func (_m *ReorgDetectorMock) GetFinalizedBlockType() types.BlockNumberFinality
GetFinalizedBlockType provides a mock function with no fields
func (*ReorgDetectorMock) String ¶ added in v0.0.2
func (_m *ReorgDetectorMock) String() string
String provides a mock function with no fields
func (*ReorgDetectorMock) Subscribe ¶
func (_m *ReorgDetectorMock) Subscribe(id string) (*reorgdetector.Subscription, error)
Subscribe provides a mock function with given fields: id
type ReorgDetectorMock_AddBlockToTrack_Call ¶
ReorgDetectorMock_AddBlockToTrack_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddBlockToTrack'
func (*ReorgDetectorMock_AddBlockToTrack_Call) Return ¶
func (_c *ReorgDetectorMock_AddBlockToTrack_Call) Return(_a0 error) *ReorgDetectorMock_AddBlockToTrack_Call
func (*ReorgDetectorMock_AddBlockToTrack_Call) Run ¶
func (_c *ReorgDetectorMock_AddBlockToTrack_Call) Run(run func(ctx context.Context, id string, blockNum uint64, blockHash common.Hash)) *ReorgDetectorMock_AddBlockToTrack_Call
func (*ReorgDetectorMock_AddBlockToTrack_Call) RunAndReturn ¶
func (_c *ReorgDetectorMock_AddBlockToTrack_Call) RunAndReturn(run func(context.Context, string, uint64, common.Hash) error) *ReorgDetectorMock_AddBlockToTrack_Call
type ReorgDetectorMock_Expecter ¶
type ReorgDetectorMock_Expecter struct {
// contains filtered or unexported fields
}
func (*ReorgDetectorMock_Expecter) AddBlockToTrack ¶
func (_e *ReorgDetectorMock_Expecter) AddBlockToTrack(ctx interface{}, id interface{}, blockNum interface{}, blockHash interface{}) *ReorgDetectorMock_AddBlockToTrack_Call
AddBlockToTrack is a helper method to define mock.On call
- ctx context.Context
- id string
- blockNum uint64
- blockHash common.Hash
func (*ReorgDetectorMock_Expecter) GetFinalizedBlockType ¶ added in v0.0.2
func (_e *ReorgDetectorMock_Expecter) GetFinalizedBlockType() *ReorgDetectorMock_GetFinalizedBlockType_Call
GetFinalizedBlockType is a helper method to define mock.On call
func (*ReorgDetectorMock_Expecter) String ¶ added in v0.0.2
func (_e *ReorgDetectorMock_Expecter) String() *ReorgDetectorMock_String_Call
String is a helper method to define mock.On call
func (*ReorgDetectorMock_Expecter) Subscribe ¶
func (_e *ReorgDetectorMock_Expecter) Subscribe(id interface{}) *ReorgDetectorMock_Subscribe_Call
Subscribe is a helper method to define mock.On call
- id string
type ReorgDetectorMock_GetFinalizedBlockType_Call ¶ added in v0.0.2
ReorgDetectorMock_GetFinalizedBlockType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFinalizedBlockType'
func (*ReorgDetectorMock_GetFinalizedBlockType_Call) Run ¶ added in v0.0.2
func (_c *ReorgDetectorMock_GetFinalizedBlockType_Call) Run(run func()) *ReorgDetectorMock_GetFinalizedBlockType_Call
func (*ReorgDetectorMock_GetFinalizedBlockType_Call) RunAndReturn ¶ added in v0.0.2
func (_c *ReorgDetectorMock_GetFinalizedBlockType_Call) RunAndReturn(run func() types.BlockNumberFinality) *ReorgDetectorMock_GetFinalizedBlockType_Call
type ReorgDetectorMock_String_Call ¶ added in v0.0.2
ReorgDetectorMock_String_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'String'
func (*ReorgDetectorMock_String_Call) Return ¶ added in v0.0.2
func (_c *ReorgDetectorMock_String_Call) Return(_a0 string) *ReorgDetectorMock_String_Call
func (*ReorgDetectorMock_String_Call) Run ¶ added in v0.0.2
func (_c *ReorgDetectorMock_String_Call) Run(run func()) *ReorgDetectorMock_String_Call
func (*ReorgDetectorMock_String_Call) RunAndReturn ¶ added in v0.0.2
func (_c *ReorgDetectorMock_String_Call) RunAndReturn(run func() string) *ReorgDetectorMock_String_Call
type ReorgDetectorMock_Subscribe_Call ¶
ReorgDetectorMock_Subscribe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Subscribe'
func (*ReorgDetectorMock_Subscribe_Call) Return ¶
func (_c *ReorgDetectorMock_Subscribe_Call) Return(_a0 *reorgdetector.Subscription, _a1 error) *ReorgDetectorMock_Subscribe_Call
func (*ReorgDetectorMock_Subscribe_Call) Run ¶
func (_c *ReorgDetectorMock_Subscribe_Call) Run(run func(id string)) *ReorgDetectorMock_Subscribe_Call
func (*ReorgDetectorMock_Subscribe_Call) RunAndReturn ¶
func (_c *ReorgDetectorMock_Subscribe_Call) RunAndReturn(run func(string) (*reorgdetector.Subscription, error)) *ReorgDetectorMock_Subscribe_Call