mocks

package
v0.2.1-beta Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIMainStorage

type MockIMainStorage struct {
	mock.Mock
}

MockIMainStorage is an autogenerated mock type for the IMainStorage type

func NewMockIMainStorage

func NewMockIMainStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIMainStorage

NewMockIMainStorage creates a new instance of MockIMainStorage. 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 (*MockIMainStorage) DeleteBlockData

func (_m *MockIMainStorage) DeleteBlockData(chainId *big.Int, blockNumbers []*big.Int) error

DeleteBlockData provides a mock function with given fields: chainId, blockNumbers

func (*MockIMainStorage) EXPECT

func (*MockIMainStorage) GetAggregations

func (_m *MockIMainStorage) GetAggregations(table string, qf storage.QueryFilter) (storage.QueryResult[interface{}], error)

GetAggregations provides a mock function with given fields: table, qf

func (*MockIMainStorage) GetBlockHeadersDescending

func (_m *MockIMainStorage) GetBlockHeadersDescending(chainId *big.Int, from *big.Int, to *big.Int) ([]common.BlockHeader, error)

GetBlockHeadersDescending provides a mock function with given fields: chainId, from, to

func (*MockIMainStorage) GetBlocks

func (_m *MockIMainStorage) GetBlocks(qf storage.QueryFilter) ([]common.Block, error)

GetBlocks provides a mock function with given fields: qf

func (*MockIMainStorage) GetLogs

GetLogs provides a mock function with given fields: qf

func (*MockIMainStorage) GetMaxBlockNumber

func (_m *MockIMainStorage) GetMaxBlockNumber(chainId *big.Int) (*big.Int, error)

GetMaxBlockNumber provides a mock function with given fields: chainId

func (*MockIMainStorage) GetTraces

func (_m *MockIMainStorage) GetTraces(qf storage.QueryFilter) ([]common.Trace, error)

GetTraces provides a mock function with given fields: qf

func (*MockIMainStorage) GetTransactions

GetTransactions provides a mock function with given fields: qf

func (*MockIMainStorage) InsertBlockData

func (_m *MockIMainStorage) InsertBlockData(data *[]common.BlockData) error

InsertBlockData provides a mock function with given fields: data

type MockIMainStorage_DeleteBlockData_Call

type MockIMainStorage_DeleteBlockData_Call struct {
	*mock.Call
}

MockIMainStorage_DeleteBlockData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBlockData'

func (*MockIMainStorage_DeleteBlockData_Call) Return

func (*MockIMainStorage_DeleteBlockData_Call) Run

func (_c *MockIMainStorage_DeleteBlockData_Call) Run(run func(chainId *big.Int, blockNumbers []*big.Int)) *MockIMainStorage_DeleteBlockData_Call

func (*MockIMainStorage_DeleteBlockData_Call) RunAndReturn

type MockIMainStorage_Expecter

type MockIMainStorage_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockIMainStorage_Expecter) DeleteBlockData

func (_e *MockIMainStorage_Expecter) DeleteBlockData(chainId interface{}, blockNumbers interface{}) *MockIMainStorage_DeleteBlockData_Call

DeleteBlockData is a helper method to define mock.On call

  • chainId *big.Int
  • blockNumbers []*big.Int

func (*MockIMainStorage_Expecter) GetAggregations

func (_e *MockIMainStorage_Expecter) GetAggregations(table interface{}, qf interface{}) *MockIMainStorage_GetAggregations_Call

GetAggregations is a helper method to define mock.On call

  • table string
  • qf storage.QueryFilter

func (*MockIMainStorage_Expecter) GetBlockHeadersDescending

func (_e *MockIMainStorage_Expecter) GetBlockHeadersDescending(chainId interface{}, from interface{}, to interface{}) *MockIMainStorage_GetBlockHeadersDescending_Call

GetBlockHeadersDescending is a helper method to define mock.On call

  • chainId *big.Int
  • from *big.Int
  • to *big.Int

func (*MockIMainStorage_Expecter) GetBlocks

func (_e *MockIMainStorage_Expecter) GetBlocks(qf interface{}) *MockIMainStorage_GetBlocks_Call

GetBlocks is a helper method to define mock.On call

  • qf storage.QueryFilter

func (*MockIMainStorage_Expecter) GetLogs

func (_e *MockIMainStorage_Expecter) GetLogs(qf interface{}) *MockIMainStorage_GetLogs_Call

GetLogs is a helper method to define mock.On call

  • qf storage.QueryFilter

func (*MockIMainStorage_Expecter) GetMaxBlockNumber

func (_e *MockIMainStorage_Expecter) GetMaxBlockNumber(chainId interface{}) *MockIMainStorage_GetMaxBlockNumber_Call

GetMaxBlockNumber is a helper method to define mock.On call

  • chainId *big.Int

func (*MockIMainStorage_Expecter) GetTraces

func (_e *MockIMainStorage_Expecter) GetTraces(qf interface{}) *MockIMainStorage_GetTraces_Call

GetTraces is a helper method to define mock.On call

  • qf storage.QueryFilter

func (*MockIMainStorage_Expecter) GetTransactions

func (_e *MockIMainStorage_Expecter) GetTransactions(qf interface{}) *MockIMainStorage_GetTransactions_Call

GetTransactions is a helper method to define mock.On call

  • qf storage.QueryFilter

func (*MockIMainStorage_Expecter) InsertBlockData

func (_e *MockIMainStorage_Expecter) InsertBlockData(data interface{}) *MockIMainStorage_InsertBlockData_Call

InsertBlockData is a helper method to define mock.On call

  • data *[]common.BlockData

type MockIMainStorage_GetAggregations_Call

type MockIMainStorage_GetAggregations_Call struct {
	*mock.Call
}

MockIMainStorage_GetAggregations_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAggregations'

func (*MockIMainStorage_GetAggregations_Call) Return

func (*MockIMainStorage_GetAggregations_Call) Run

func (*MockIMainStorage_GetAggregations_Call) RunAndReturn

type MockIMainStorage_GetBlockHeadersDescending_Call

type MockIMainStorage_GetBlockHeadersDescending_Call struct {
	*mock.Call
}

MockIMainStorage_GetBlockHeadersDescending_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockHeadersDescending'

func (*MockIMainStorage_GetBlockHeadersDescending_Call) Return

func (*MockIMainStorage_GetBlockHeadersDescending_Call) Run

func (*MockIMainStorage_GetBlockHeadersDescending_Call) RunAndReturn

type MockIMainStorage_GetBlocks_Call

type MockIMainStorage_GetBlocks_Call struct {
	*mock.Call
}

MockIMainStorage_GetBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlocks'

func (*MockIMainStorage_GetBlocks_Call) Return

func (*MockIMainStorage_GetBlocks_Call) Run

func (*MockIMainStorage_GetBlocks_Call) RunAndReturn

type MockIMainStorage_GetLogs_Call

type MockIMainStorage_GetLogs_Call struct {
	*mock.Call
}

MockIMainStorage_GetLogs_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogs'

func (*MockIMainStorage_GetLogs_Call) Return

func (*MockIMainStorage_GetLogs_Call) Run

func (*MockIMainStorage_GetLogs_Call) RunAndReturn

type MockIMainStorage_GetMaxBlockNumber_Call

type MockIMainStorage_GetMaxBlockNumber_Call struct {
	*mock.Call
}

MockIMainStorage_GetMaxBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMaxBlockNumber'

func (*MockIMainStorage_GetMaxBlockNumber_Call) Return

func (*MockIMainStorage_GetMaxBlockNumber_Call) Run

func (*MockIMainStorage_GetMaxBlockNumber_Call) RunAndReturn

type MockIMainStorage_GetTraces_Call

type MockIMainStorage_GetTraces_Call struct {
	*mock.Call
}

MockIMainStorage_GetTraces_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTraces'

func (*MockIMainStorage_GetTraces_Call) Return

func (*MockIMainStorage_GetTraces_Call) Run

func (*MockIMainStorage_GetTraces_Call) RunAndReturn

type MockIMainStorage_GetTransactions_Call

type MockIMainStorage_GetTransactions_Call struct {
	*mock.Call
}

MockIMainStorage_GetTransactions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTransactions'

func (*MockIMainStorage_GetTransactions_Call) Return

func (*MockIMainStorage_GetTransactions_Call) Run

func (*MockIMainStorage_GetTransactions_Call) RunAndReturn

type MockIMainStorage_InsertBlockData_Call

type MockIMainStorage_InsertBlockData_Call struct {
	*mock.Call
}

MockIMainStorage_InsertBlockData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertBlockData'

func (*MockIMainStorage_InsertBlockData_Call) Return

func (*MockIMainStorage_InsertBlockData_Call) Run

func (*MockIMainStorage_InsertBlockData_Call) RunAndReturn

type MockIOrchestratorStorage

type MockIOrchestratorStorage struct {
	mock.Mock
}

MockIOrchestratorStorage is an autogenerated mock type for the IOrchestratorStorage type

func NewMockIOrchestratorStorage

func NewMockIOrchestratorStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIOrchestratorStorage

NewMockIOrchestratorStorage creates a new instance of MockIOrchestratorStorage. 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 (*MockIOrchestratorStorage) DeleteBlockFailures

func (_m *MockIOrchestratorStorage) DeleteBlockFailures(failures []common.BlockFailure) error

DeleteBlockFailures provides a mock function with given fields: failures

func (*MockIOrchestratorStorage) EXPECT

func (*MockIOrchestratorStorage) GetBlockFailures

func (_m *MockIOrchestratorStorage) GetBlockFailures(qf storage.QueryFilter) ([]common.BlockFailure, error)

GetBlockFailures provides a mock function with given fields: qf

func (*MockIOrchestratorStorage) GetLastReorgCheckedBlockNumber

func (_m *MockIOrchestratorStorage) GetLastReorgCheckedBlockNumber(chainId *big.Int) (*big.Int, error)

GetLastReorgCheckedBlockNumber provides a mock function with given fields: chainId

func (*MockIOrchestratorStorage) SetLastReorgCheckedBlockNumber

func (_m *MockIOrchestratorStorage) SetLastReorgCheckedBlockNumber(chainId *big.Int, blockNumber *big.Int) error

SetLastReorgCheckedBlockNumber provides a mock function with given fields: chainId, blockNumber

func (*MockIOrchestratorStorage) StoreBlockFailures

func (_m *MockIOrchestratorStorage) StoreBlockFailures(failures []common.BlockFailure) error

StoreBlockFailures provides a mock function with given fields: failures

type MockIOrchestratorStorage_DeleteBlockFailures_Call

type MockIOrchestratorStorage_DeleteBlockFailures_Call struct {
	*mock.Call
}

MockIOrchestratorStorage_DeleteBlockFailures_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBlockFailures'

func (*MockIOrchestratorStorage_DeleteBlockFailures_Call) Return

func (*MockIOrchestratorStorage_DeleteBlockFailures_Call) Run

func (*MockIOrchestratorStorage_DeleteBlockFailures_Call) RunAndReturn

type MockIOrchestratorStorage_Expecter

type MockIOrchestratorStorage_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockIOrchestratorStorage_Expecter) DeleteBlockFailures

func (_e *MockIOrchestratorStorage_Expecter) DeleteBlockFailures(failures interface{}) *MockIOrchestratorStorage_DeleteBlockFailures_Call

DeleteBlockFailures is a helper method to define mock.On call

  • failures []common.BlockFailure

func (*MockIOrchestratorStorage_Expecter) GetBlockFailures

GetBlockFailures is a helper method to define mock.On call

  • qf storage.QueryFilter

func (*MockIOrchestratorStorage_Expecter) GetLastReorgCheckedBlockNumber

func (_e *MockIOrchestratorStorage_Expecter) GetLastReorgCheckedBlockNumber(chainId interface{}) *MockIOrchestratorStorage_GetLastReorgCheckedBlockNumber_Call

GetLastReorgCheckedBlockNumber is a helper method to define mock.On call

  • chainId *big.Int

func (*MockIOrchestratorStorage_Expecter) SetLastReorgCheckedBlockNumber

func (_e *MockIOrchestratorStorage_Expecter) SetLastReorgCheckedBlockNumber(chainId interface{}, blockNumber interface{}) *MockIOrchestratorStorage_SetLastReorgCheckedBlockNumber_Call

SetLastReorgCheckedBlockNumber is a helper method to define mock.On call

  • chainId *big.Int
  • blockNumber *big.Int

func (*MockIOrchestratorStorage_Expecter) StoreBlockFailures

func (_e *MockIOrchestratorStorage_Expecter) StoreBlockFailures(failures interface{}) *MockIOrchestratorStorage_StoreBlockFailures_Call

StoreBlockFailures is a helper method to define mock.On call

  • failures []common.BlockFailure

type MockIOrchestratorStorage_GetBlockFailures_Call

type MockIOrchestratorStorage_GetBlockFailures_Call struct {
	*mock.Call
}

MockIOrchestratorStorage_GetBlockFailures_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlockFailures'

func (*MockIOrchestratorStorage_GetBlockFailures_Call) Return

func (*MockIOrchestratorStorage_GetBlockFailures_Call) Run

func (*MockIOrchestratorStorage_GetBlockFailures_Call) RunAndReturn

type MockIOrchestratorStorage_GetLastReorgCheckedBlockNumber_Call

type MockIOrchestratorStorage_GetLastReorgCheckedBlockNumber_Call struct {
	*mock.Call
}

MockIOrchestratorStorage_GetLastReorgCheckedBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastReorgCheckedBlockNumber'

func (*MockIOrchestratorStorage_GetLastReorgCheckedBlockNumber_Call) Return

func (*MockIOrchestratorStorage_GetLastReorgCheckedBlockNumber_Call) Run

func (*MockIOrchestratorStorage_GetLastReorgCheckedBlockNumber_Call) RunAndReturn

type MockIOrchestratorStorage_SetLastReorgCheckedBlockNumber_Call

type MockIOrchestratorStorage_SetLastReorgCheckedBlockNumber_Call struct {
	*mock.Call
}

MockIOrchestratorStorage_SetLastReorgCheckedBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetLastReorgCheckedBlockNumber'

func (*MockIOrchestratorStorage_SetLastReorgCheckedBlockNumber_Call) Return

func (*MockIOrchestratorStorage_SetLastReorgCheckedBlockNumber_Call) Run

func (*MockIOrchestratorStorage_SetLastReorgCheckedBlockNumber_Call) RunAndReturn

type MockIOrchestratorStorage_StoreBlockFailures_Call

type MockIOrchestratorStorage_StoreBlockFailures_Call struct {
	*mock.Call
}

MockIOrchestratorStorage_StoreBlockFailures_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StoreBlockFailures'

func (*MockIOrchestratorStorage_StoreBlockFailures_Call) Return

func (*MockIOrchestratorStorage_StoreBlockFailures_Call) Run

func (*MockIOrchestratorStorage_StoreBlockFailures_Call) RunAndReturn

type MockIRPCClient

type MockIRPCClient struct {
	mock.Mock
}

MockIRPCClient is an autogenerated mock type for the IRPCClient type

func NewMockIRPCClient

func NewMockIRPCClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIRPCClient

NewMockIRPCClient creates a new instance of MockIRPCClient. 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 (*MockIRPCClient) EXPECT

func (*MockIRPCClient) GetBlocks

func (_m *MockIRPCClient) GetBlocks(blockNumbers []*big.Int) []rpc.GetBlocksResult

GetBlocks provides a mock function with given fields: blockNumbers

func (*MockIRPCClient) GetBlocksPerRequest

func (_m *MockIRPCClient) GetBlocksPerRequest() rpc.BlocksPerRequestConfig

GetBlocksPerRequest provides a mock function with no fields

func (*MockIRPCClient) GetChainID

func (_m *MockIRPCClient) GetChainID() *big.Int

GetChainID provides a mock function with no fields

func (*MockIRPCClient) GetFullBlocks

func (_m *MockIRPCClient) GetFullBlocks(blockNumbers []*big.Int) []rpc.GetFullBlockResult

GetFullBlocks provides a mock function with given fields: blockNumbers

func (*MockIRPCClient) GetLatestBlockNumber

func (_m *MockIRPCClient) GetLatestBlockNumber() (*big.Int, error)

GetLatestBlockNumber provides a mock function with no fields

func (*MockIRPCClient) GetURL

func (_m *MockIRPCClient) GetURL() string

GetURL provides a mock function with no fields

func (*MockIRPCClient) IsWebsocket

func (_m *MockIRPCClient) IsWebsocket() bool

IsWebsocket provides a mock function with no fields

func (*MockIRPCClient) SupportsTraceBlock

func (_m *MockIRPCClient) SupportsTraceBlock() bool

SupportsTraceBlock provides a mock function with no fields

type MockIRPCClient_Expecter

type MockIRPCClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockIRPCClient_Expecter) GetBlocks

func (_e *MockIRPCClient_Expecter) GetBlocks(blockNumbers interface{}) *MockIRPCClient_GetBlocks_Call

GetBlocks is a helper method to define mock.On call

  • blockNumbers []*big.Int

func (*MockIRPCClient_Expecter) GetBlocksPerRequest

GetBlocksPerRequest is a helper method to define mock.On call

func (*MockIRPCClient_Expecter) GetChainID

GetChainID is a helper method to define mock.On call

func (*MockIRPCClient_Expecter) GetFullBlocks

func (_e *MockIRPCClient_Expecter) GetFullBlocks(blockNumbers interface{}) *MockIRPCClient_GetFullBlocks_Call

GetFullBlocks is a helper method to define mock.On call

  • blockNumbers []*big.Int

func (*MockIRPCClient_Expecter) GetLatestBlockNumber

GetLatestBlockNumber is a helper method to define mock.On call

func (*MockIRPCClient_Expecter) GetURL

GetURL is a helper method to define mock.On call

func (*MockIRPCClient_Expecter) IsWebsocket

IsWebsocket is a helper method to define mock.On call

func (*MockIRPCClient_Expecter) SupportsTraceBlock

SupportsTraceBlock is a helper method to define mock.On call

type MockIRPCClient_GetBlocksPerRequest_Call

type MockIRPCClient_GetBlocksPerRequest_Call struct {
	*mock.Call
}

MockIRPCClient_GetBlocksPerRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlocksPerRequest'

func (*MockIRPCClient_GetBlocksPerRequest_Call) Return

func (*MockIRPCClient_GetBlocksPerRequest_Call) Run

func (*MockIRPCClient_GetBlocksPerRequest_Call) RunAndReturn

type MockIRPCClient_GetBlocks_Call

type MockIRPCClient_GetBlocks_Call struct {
	*mock.Call
}

MockIRPCClient_GetBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetBlocks'

func (*MockIRPCClient_GetBlocks_Call) Return

func (*MockIRPCClient_GetBlocks_Call) Run

func (_c *MockIRPCClient_GetBlocks_Call) Run(run func(blockNumbers []*big.Int)) *MockIRPCClient_GetBlocks_Call

func (*MockIRPCClient_GetBlocks_Call) RunAndReturn

type MockIRPCClient_GetChainID_Call

type MockIRPCClient_GetChainID_Call struct {
	*mock.Call
}

MockIRPCClient_GetChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChainID'

func (*MockIRPCClient_GetChainID_Call) Return

func (*MockIRPCClient_GetChainID_Call) Run

func (*MockIRPCClient_GetChainID_Call) RunAndReturn

type MockIRPCClient_GetFullBlocks_Call

type MockIRPCClient_GetFullBlocks_Call struct {
	*mock.Call
}

MockIRPCClient_GetFullBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFullBlocks'

func (*MockIRPCClient_GetFullBlocks_Call) Return

func (*MockIRPCClient_GetFullBlocks_Call) Run

func (_c *MockIRPCClient_GetFullBlocks_Call) Run(run func(blockNumbers []*big.Int)) *MockIRPCClient_GetFullBlocks_Call

func (*MockIRPCClient_GetFullBlocks_Call) RunAndReturn

type MockIRPCClient_GetLatestBlockNumber_Call

type MockIRPCClient_GetLatestBlockNumber_Call struct {
	*mock.Call
}

MockIRPCClient_GetLatestBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLatestBlockNumber'

func (*MockIRPCClient_GetLatestBlockNumber_Call) Return

func (*MockIRPCClient_GetLatestBlockNumber_Call) Run

func (*MockIRPCClient_GetLatestBlockNumber_Call) RunAndReturn

type MockIRPCClient_GetURL_Call

type MockIRPCClient_GetURL_Call struct {
	*mock.Call
}

MockIRPCClient_GetURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetURL'

func (*MockIRPCClient_GetURL_Call) Return

func (*MockIRPCClient_GetURL_Call) Run

func (*MockIRPCClient_GetURL_Call) RunAndReturn

func (_c *MockIRPCClient_GetURL_Call) RunAndReturn(run func() string) *MockIRPCClient_GetURL_Call

type MockIRPCClient_IsWebsocket_Call

type MockIRPCClient_IsWebsocket_Call struct {
	*mock.Call
}

MockIRPCClient_IsWebsocket_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsWebsocket'

func (*MockIRPCClient_IsWebsocket_Call) Return

func (*MockIRPCClient_IsWebsocket_Call) Run

func (*MockIRPCClient_IsWebsocket_Call) RunAndReturn

type MockIRPCClient_SupportsTraceBlock_Call

type MockIRPCClient_SupportsTraceBlock_Call struct {
	*mock.Call
}

MockIRPCClient_SupportsTraceBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SupportsTraceBlock'

func (*MockIRPCClient_SupportsTraceBlock_Call) Return

func (*MockIRPCClient_SupportsTraceBlock_Call) Run

func (*MockIRPCClient_SupportsTraceBlock_Call) RunAndReturn

type MockIStagingStorage

type MockIStagingStorage struct {
	mock.Mock
}

MockIStagingStorage is an autogenerated mock type for the IStagingStorage type

func NewMockIStagingStorage

func NewMockIStagingStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockIStagingStorage

NewMockIStagingStorage creates a new instance of MockIStagingStorage. 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 (*MockIStagingStorage) DeleteStagingData

func (_m *MockIStagingStorage) DeleteStagingData(data *[]common.BlockData) error

DeleteStagingData provides a mock function with given fields: data

func (*MockIStagingStorage) EXPECT

func (*MockIStagingStorage) GetLastStagedBlockNumber

func (_m *MockIStagingStorage) GetLastStagedBlockNumber(chainId *big.Int, rangeStart *big.Int, rangeEnd *big.Int) (*big.Int, error)

GetLastStagedBlockNumber provides a mock function with given fields: chainId, rangeStart, rangeEnd

func (*MockIStagingStorage) GetStagingData

func (_m *MockIStagingStorage) GetStagingData(qf storage.QueryFilter) (*[]common.BlockData, error)

GetStagingData provides a mock function with given fields: qf

func (*MockIStagingStorage) InsertStagingData

func (_m *MockIStagingStorage) InsertStagingData(data []common.BlockData) error

InsertStagingData provides a mock function with given fields: data

type MockIStagingStorage_DeleteStagingData_Call

type MockIStagingStorage_DeleteStagingData_Call struct {
	*mock.Call
}

MockIStagingStorage_DeleteStagingData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteStagingData'

func (*MockIStagingStorage_DeleteStagingData_Call) Return

func (*MockIStagingStorage_DeleteStagingData_Call) Run

func (*MockIStagingStorage_DeleteStagingData_Call) RunAndReturn

type MockIStagingStorage_Expecter

type MockIStagingStorage_Expecter struct {
	// contains filtered or unexported fields
}

func (*MockIStagingStorage_Expecter) DeleteStagingData

func (_e *MockIStagingStorage_Expecter) DeleteStagingData(data interface{}) *MockIStagingStorage_DeleteStagingData_Call

DeleteStagingData is a helper method to define mock.On call

  • data *[]common.BlockData

func (*MockIStagingStorage_Expecter) GetLastStagedBlockNumber

func (_e *MockIStagingStorage_Expecter) GetLastStagedBlockNumber(chainId interface{}, rangeStart interface{}, rangeEnd interface{}) *MockIStagingStorage_GetLastStagedBlockNumber_Call

GetLastStagedBlockNumber is a helper method to define mock.On call

  • chainId *big.Int
  • rangeStart *big.Int
  • rangeEnd *big.Int

func (*MockIStagingStorage_Expecter) GetStagingData

func (_e *MockIStagingStorage_Expecter) GetStagingData(qf interface{}) *MockIStagingStorage_GetStagingData_Call

GetStagingData is a helper method to define mock.On call

  • qf storage.QueryFilter

func (*MockIStagingStorage_Expecter) InsertStagingData

func (_e *MockIStagingStorage_Expecter) InsertStagingData(data interface{}) *MockIStagingStorage_InsertStagingData_Call

InsertStagingData is a helper method to define mock.On call

  • data []common.BlockData

type MockIStagingStorage_GetLastStagedBlockNumber_Call

type MockIStagingStorage_GetLastStagedBlockNumber_Call struct {
	*mock.Call
}

MockIStagingStorage_GetLastStagedBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLastStagedBlockNumber'

func (*MockIStagingStorage_GetLastStagedBlockNumber_Call) Return

func (*MockIStagingStorage_GetLastStagedBlockNumber_Call) Run

func (*MockIStagingStorage_GetLastStagedBlockNumber_Call) RunAndReturn

type MockIStagingStorage_GetStagingData_Call

type MockIStagingStorage_GetStagingData_Call struct {
	*mock.Call
}

MockIStagingStorage_GetStagingData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetStagingData'

func (*MockIStagingStorage_GetStagingData_Call) Return

func (*MockIStagingStorage_GetStagingData_Call) Run

func (*MockIStagingStorage_GetStagingData_Call) RunAndReturn

type MockIStagingStorage_InsertStagingData_Call

type MockIStagingStorage_InsertStagingData_Call struct {
	*mock.Call
}

MockIStagingStorage_InsertStagingData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertStagingData'

func (*MockIStagingStorage_InsertStagingData_Call) Return

func (*MockIStagingStorage_InsertStagingData_Call) Run

func (*MockIStagingStorage_InsertStagingData_Call) RunAndReturn

Jump to

Keyboard shortcuts

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