Documentation
¶
Index ¶
- type MockChainReorgHandler
- type MockChainReorgHandler_Expecter
- type MockChainReorgHandler_FindReorgPoint_Call
- func (_c *MockChainReorgHandler_FindReorgPoint_Call) Return(_a0 uint64, _a1 []byte, _a2 error) *MockChainReorgHandler_FindReorgPoint_Call
- func (_c *MockChainReorgHandler_FindReorgPoint_Call) Run(run func(detectedAt uint64)) *MockChainReorgHandler_FindReorgPoint_Call
- func (_c *MockChainReorgHandler_FindReorgPoint_Call) RunAndReturn(run func(uint64) (uint64, []byte, error)) *MockChainReorgHandler_FindReorgPoint_Call
- type MockIBlockTracker
- type MockIBlockTracker_Expecter
- type MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) Return(_a0 uint64, _a1 []byte) *MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) Run(run func()) *MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) RunAndReturn(run func() (uint64, []byte)) *MockIBlockTracker_GetLatestBlock_Call
- type MockIBlockTracker_UpdateLatestBlock_Call
- func (_c *MockIBlockTracker_UpdateLatestBlock_Call) Return(_a0 error) *MockIBlockTracker_UpdateLatestBlock_Call
- func (_c *MockIBlockTracker_UpdateLatestBlock_Call) Run(run func(ctx context.Context, block uint64, hash []byte)) *MockIBlockTracker_UpdateLatestBlock_Call
- func (_c *MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn(run func(context.Context, uint64, []byte) error) *MockIBlockTracker_UpdateLatestBlock_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockChainReorgHandler ¶ added in v0.2.0
MockChainReorgHandler is an autogenerated mock type for the ChainReorgHandler type
func NewMockChainReorgHandler ¶ added in v0.2.0
func NewMockChainReorgHandler(t interface {
mock.TestingT
Cleanup(func())
}) *MockChainReorgHandler
NewMockChainReorgHandler creates a new instance of MockChainReorgHandler. 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 (*MockChainReorgHandler) EXPECT ¶ added in v0.2.0
func (_m *MockChainReorgHandler) EXPECT() *MockChainReorgHandler_Expecter
func (*MockChainReorgHandler) FindReorgPoint ¶ added in v0.2.0
func (_m *MockChainReorgHandler) FindReorgPoint(detectedAt uint64) (uint64, []byte, error)
FindReorgPoint provides a mock function with given fields: detectedAt
type MockChainReorgHandler_Expecter ¶ added in v0.2.0
type MockChainReorgHandler_Expecter struct {
// contains filtered or unexported fields
}
func (*MockChainReorgHandler_Expecter) FindReorgPoint ¶ added in v0.2.0
func (_e *MockChainReorgHandler_Expecter) FindReorgPoint(detectedAt interface{}) *MockChainReorgHandler_FindReorgPoint_Call
FindReorgPoint is a helper method to define mock.On call
- detectedAt uint64
type MockChainReorgHandler_FindReorgPoint_Call ¶ added in v0.2.0
MockChainReorgHandler_FindReorgPoint_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindReorgPoint'
func (*MockChainReorgHandler_FindReorgPoint_Call) Return ¶ added in v0.2.0
func (_c *MockChainReorgHandler_FindReorgPoint_Call) Return(_a0 uint64, _a1 []byte, _a2 error) *MockChainReorgHandler_FindReorgPoint_Call
func (*MockChainReorgHandler_FindReorgPoint_Call) Run ¶ added in v0.2.0
func (_c *MockChainReorgHandler_FindReorgPoint_Call) Run(run func(detectedAt uint64)) *MockChainReorgHandler_FindReorgPoint_Call
func (*MockChainReorgHandler_FindReorgPoint_Call) RunAndReturn ¶ added in v0.2.0
func (_c *MockChainReorgHandler_FindReorgPoint_Call) RunAndReturn(run func(uint64) (uint64, []byte, error)) *MockChainReorgHandler_FindReorgPoint_Call
type MockIBlockTracker ¶
MockIBlockTracker is an autogenerated mock type for the IBlockTracker type
func NewMockIBlockTracker ¶
func NewMockIBlockTracker(t interface {
mock.TestingT
Cleanup(func())
}) *MockIBlockTracker
NewMockIBlockTracker creates a new instance of MockIBlockTracker. 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 (*MockIBlockTracker) EXPECT ¶
func (_m *MockIBlockTracker) EXPECT() *MockIBlockTracker_Expecter
func (*MockIBlockTracker) GetLatestBlock ¶
func (_m *MockIBlockTracker) GetLatestBlock() (uint64, []byte)
GetLatestBlock provides a mock function with no fields
func (*MockIBlockTracker) UpdateLatestBlock ¶
func (_m *MockIBlockTracker) UpdateLatestBlock(ctx context.Context, block uint64, hash []byte) error
UpdateLatestBlock provides a mock function with given fields: ctx, block, hash
type MockIBlockTracker_Expecter ¶
type MockIBlockTracker_Expecter struct {
// contains filtered or unexported fields
}
func (*MockIBlockTracker_Expecter) GetLatestBlock ¶
func (_e *MockIBlockTracker_Expecter) GetLatestBlock() *MockIBlockTracker_GetLatestBlock_Call
GetLatestBlock is a helper method to define mock.On call
func (*MockIBlockTracker_Expecter) UpdateLatestBlock ¶
func (_e *MockIBlockTracker_Expecter) UpdateLatestBlock(ctx interface{}, block interface{}, hash interface{}) *MockIBlockTracker_UpdateLatestBlock_Call
UpdateLatestBlock is a helper method to define mock.On call
- ctx context.Context
- block uint64
- hash []byte
type MockIBlockTracker_GetLatestBlock_Call ¶
MockIBlockTracker_GetLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlock'
func (*MockIBlockTracker_GetLatestBlock_Call) Return ¶
func (_c *MockIBlockTracker_GetLatestBlock_Call) Return(_a0 uint64, _a1 []byte) *MockIBlockTracker_GetLatestBlock_Call
func (*MockIBlockTracker_GetLatestBlock_Call) Run ¶
func (_c *MockIBlockTracker_GetLatestBlock_Call) Run(run func()) *MockIBlockTracker_GetLatestBlock_Call
func (*MockIBlockTracker_GetLatestBlock_Call) RunAndReturn ¶
func (_c *MockIBlockTracker_GetLatestBlock_Call) RunAndReturn(run func() (uint64, []byte)) *MockIBlockTracker_GetLatestBlock_Call
type MockIBlockTracker_UpdateLatestBlock_Call ¶
MockIBlockTracker_UpdateLatestBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateLatestBlock'
func (*MockIBlockTracker_UpdateLatestBlock_Call) Return ¶
func (_c *MockIBlockTracker_UpdateLatestBlock_Call) Return(_a0 error) *MockIBlockTracker_UpdateLatestBlock_Call
func (*MockIBlockTracker_UpdateLatestBlock_Call) Run ¶
func (_c *MockIBlockTracker_UpdateLatestBlock_Call) Run(run func(ctx context.Context, block uint64, hash []byte)) *MockIBlockTracker_UpdateLatestBlock_Call
func (*MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn ¶
func (_c *MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn(run func(context.Context, uint64, []byte) error) *MockIBlockTracker_UpdateLatestBlock_Call