indexer

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIBlockTracker

type MockIBlockTracker struct {
	mock.Mock
}

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 (*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

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

type MockIBlockTracker_GetLatestBlock_Call struct {
	*mock.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 (*MockIBlockTracker_GetLatestBlock_Call) Run

func (*MockIBlockTracker_GetLatestBlock_Call) RunAndReturn

type MockIBlockTracker_UpdateLatestBlock_Call

type MockIBlockTracker_UpdateLatestBlock_Call struct {
	*mock.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 (*MockIBlockTracker_UpdateLatestBlock_Call) Run

func (*MockIBlockTracker_UpdateLatestBlock_Call) RunAndReturn

Jump to

Keyboard shortcuts

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