Documentation ¶
Index ¶
- type MockIBlockTracker
- type MockIBlockTracker_Expecter
- type MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) Return(_a0 uint64) *MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) Run(run func()) *MockIBlockTracker_GetLatestBlock_Call
- func (_c *MockIBlockTracker_GetLatestBlock_Call) RunAndReturn(run func() uint64) *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)) *MockIBlockTracker_UpdateLatestBlock_Call
- func (_c *MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn(run func(context.Context, uint64) error) *MockIBlockTracker_UpdateLatestBlock_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
GetLatestBlock provides a mock function with given fields:
func (*MockIBlockTracker) UpdateLatestBlock ¶
func (_m *MockIBlockTracker) UpdateLatestBlock(ctx context.Context, block uint64) error
UpdateLatestBlock provides a mock function with given fields: ctx, block
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{}) *MockIBlockTracker_UpdateLatestBlock_Call
UpdateLatestBlock is a helper method to define mock.On call
- ctx context.Context
- block uint64
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) *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) *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)) *MockIBlockTracker_UpdateLatestBlock_Call
func (*MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn ¶
func (_c *MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn(run func(context.Context, uint64) error) *MockIBlockTracker_UpdateLatestBlock_Call