Documentation ¶
Index ¶
- type L1BlockChecker
- type L1BlockChecker_Expecter
- type L1BlockChecker_Step_Call
- type L1Requester
- type L1Requester_Expecter
- type L1Requester_HeaderByNumber_Call
- func (_c *L1Requester_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *L1Requester_HeaderByNumber_Call
- func (_c *L1Requester_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *L1Requester_HeaderByNumber_Call
- func (_c *L1Requester_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *L1Requester_HeaderByNumber_Call
- type SafeL1BlockNumberFetcher
- type SafeL1BlockNumberFetcher_Description_Call
- func (_c *SafeL1BlockNumberFetcher_Description_Call) Return(_a0 string) *SafeL1BlockNumberFetcher_Description_Call
- func (_c *SafeL1BlockNumberFetcher_Description_Call) Run(run func()) *SafeL1BlockNumberFetcher_Description_Call
- func (_c *SafeL1BlockNumberFetcher_Description_Call) RunAndReturn(run func() string) *SafeL1BlockNumberFetcher_Description_Call
- type SafeL1BlockNumberFetcher_Expecter
- type SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call
- func (_c *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) Return(_a0 uint64, _a1 error) *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call
- func (_c *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) Run(run func(ctx context.Context, l1Client l1_check_block.L1Requester)) *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call
- func (_c *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) RunAndReturn(run func(context.Context, l1_check_block.L1Requester) (uint64, error)) *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call
- type StateForL1BlockCheckerIntegration
- type StateForL1BlockCheckerIntegration_Expecter
- type StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call
- func (_c *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) Return(_a0 *state.Block, _a1 error) *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call
- func (_c *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) Run(run func(ctx context.Context, blockNumber uint64, dbTx pgx.Tx)) *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call
- func (_c *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.Block, error)) *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call
- type StateInterfacer
- func (_m *StateInterfacer) EXPECT() *StateInterfacer_Expecter
- func (_m *StateInterfacer) GetFirstUncheckedBlock(ctx context.Context, fromBlockNumber uint64, dbTx pgx.Tx) (*state.Block, error)
- func (_m *StateInterfacer) UpdateCheckedBlockByNumber(ctx context.Context, blockNumber uint64, newCheckedStatus bool, dbTx pgx.Tx) error
- type StateInterfacer_Expecter
- func (_e *StateInterfacer_Expecter) GetFirstUncheckedBlock(ctx interface{}, fromBlockNumber interface{}, dbTx interface{}) *StateInterfacer_GetFirstUncheckedBlock_Call
- func (_e *StateInterfacer_Expecter) UpdateCheckedBlockByNumber(ctx interface{}, blockNumber interface{}, newCheckedStatus interface{}, ...) *StateInterfacer_UpdateCheckedBlockByNumber_Call
- type StateInterfacer_GetFirstUncheckedBlock_Call
- func (_c *StateInterfacer_GetFirstUncheckedBlock_Call) Return(_a0 *state.Block, _a1 error) *StateInterfacer_GetFirstUncheckedBlock_Call
- func (_c *StateInterfacer_GetFirstUncheckedBlock_Call) Run(run func(ctx context.Context, fromBlockNumber uint64, dbTx pgx.Tx)) *StateInterfacer_GetFirstUncheckedBlock_Call
- func (_c *StateInterfacer_GetFirstUncheckedBlock_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.Block, error)) *StateInterfacer_GetFirstUncheckedBlock_Call
- type StateInterfacer_UpdateCheckedBlockByNumber_Call
- func (_c *StateInterfacer_UpdateCheckedBlockByNumber_Call) Return(_a0 error) *StateInterfacer_UpdateCheckedBlockByNumber_Call
- func (_c *StateInterfacer_UpdateCheckedBlockByNumber_Call) Run(...) *StateInterfacer_UpdateCheckedBlockByNumber_Call
- func (_c *StateInterfacer_UpdateCheckedBlockByNumber_Call) RunAndReturn(run func(context.Context, uint64, bool, pgx.Tx) error) *StateInterfacer_UpdateCheckedBlockByNumber_Call
- type StatePreCheckInterfacer
- type StatePreCheckInterfacer_Expecter
- type StatePreCheckInterfacer_GetUncheckedBlocks_Call
- func (_c *StatePreCheckInterfacer_GetUncheckedBlocks_Call) Return(_a0 []*state.Block, _a1 error) *StatePreCheckInterfacer_GetUncheckedBlocks_Call
- func (_c *StatePreCheckInterfacer_GetUncheckedBlocks_Call) Run(...) *StatePreCheckInterfacer_GetUncheckedBlocks_Call
- func (_c *StatePreCheckInterfacer_GetUncheckedBlocks_Call) RunAndReturn(run func(context.Context, uint64, uint64, pgx.Tx) ([]*state.Block, error)) *StatePreCheckInterfacer_GetUncheckedBlocks_Call
- type SyncCheckReorger
- type SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call
- func (_c *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) Return(_a0 error) *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call
- func (_c *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) Run(run func(blockNumber uint64, reason string)) *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call
- func (_c *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) RunAndReturn(run func(uint64, string) error) *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call
- type SyncCheckReorger_Expecter
- type SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call
- func (_c *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) Return() *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call
- func (_c *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) Run(run func()) *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call
- func (_c *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) RunAndReturn(run func()) *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type L1BlockChecker ¶
L1BlockChecker is an autogenerated mock type for the L1BlockChecker type
func NewL1BlockChecker ¶
func NewL1BlockChecker(t interface { mock.TestingT Cleanup(func()) }) *L1BlockChecker
NewL1BlockChecker creates a new instance of L1BlockChecker. 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 (*L1BlockChecker) EXPECT ¶
func (_m *L1BlockChecker) EXPECT() *L1BlockChecker_Expecter
type L1BlockChecker_Expecter ¶
type L1BlockChecker_Expecter struct {
// contains filtered or unexported fields
}
func (*L1BlockChecker_Expecter) Step ¶
func (_e *L1BlockChecker_Expecter) Step(ctx interface{}) *L1BlockChecker_Step_Call
Step is a helper method to define mock.On call
- ctx context.Context
type L1BlockChecker_Step_Call ¶
L1BlockChecker_Step_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Step'
func (*L1BlockChecker_Step_Call) Return ¶
func (_c *L1BlockChecker_Step_Call) Return(_a0 error) *L1BlockChecker_Step_Call
func (*L1BlockChecker_Step_Call) Run ¶
func (_c *L1BlockChecker_Step_Call) Run(run func(ctx context.Context)) *L1BlockChecker_Step_Call
func (*L1BlockChecker_Step_Call) RunAndReturn ¶
func (_c *L1BlockChecker_Step_Call) RunAndReturn(run func(context.Context) error) *L1BlockChecker_Step_Call
type L1Requester ¶
L1Requester is an autogenerated mock type for the L1Requester type
func NewL1Requester ¶
func NewL1Requester(t interface { mock.TestingT Cleanup(func()) }) *L1Requester
NewL1Requester creates a new instance of L1Requester. 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 (*L1Requester) EXPECT ¶
func (_m *L1Requester) EXPECT() *L1Requester_Expecter
func (*L1Requester) HeaderByNumber ¶
HeaderByNumber provides a mock function with given fields: ctx, number
type L1Requester_Expecter ¶
type L1Requester_Expecter struct {
// contains filtered or unexported fields
}
func (*L1Requester_Expecter) HeaderByNumber ¶
func (_e *L1Requester_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *L1Requester_HeaderByNumber_Call
HeaderByNumber is a helper method to define mock.On call
- ctx context.Context
- number *big.Int
type L1Requester_HeaderByNumber_Call ¶
L1Requester_HeaderByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HeaderByNumber'
func (*L1Requester_HeaderByNumber_Call) Return ¶
func (_c *L1Requester_HeaderByNumber_Call) Return(_a0 *types.Header, _a1 error) *L1Requester_HeaderByNumber_Call
func (*L1Requester_HeaderByNumber_Call) Run ¶
func (_c *L1Requester_HeaderByNumber_Call) Run(run func(ctx context.Context, number *big.Int)) *L1Requester_HeaderByNumber_Call
func (*L1Requester_HeaderByNumber_Call) RunAndReturn ¶
func (_c *L1Requester_HeaderByNumber_Call) RunAndReturn(run func(context.Context, *big.Int) (*types.Header, error)) *L1Requester_HeaderByNumber_Call
type SafeL1BlockNumberFetcher ¶
SafeL1BlockNumberFetcher is an autogenerated mock type for the SafeL1BlockNumberFetcher type
func NewSafeL1BlockNumberFetcher ¶
func NewSafeL1BlockNumberFetcher(t interface { mock.TestingT Cleanup(func()) }) *SafeL1BlockNumberFetcher
NewSafeL1BlockNumberFetcher creates a new instance of SafeL1BlockNumberFetcher. 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 (*SafeL1BlockNumberFetcher) Description ¶
func (_m *SafeL1BlockNumberFetcher) Description() string
Description provides a mock function with given fields:
func (*SafeL1BlockNumberFetcher) EXPECT ¶
func (_m *SafeL1BlockNumberFetcher) EXPECT() *SafeL1BlockNumberFetcher_Expecter
func (*SafeL1BlockNumberFetcher) GetSafeBlockNumber ¶
func (_m *SafeL1BlockNumberFetcher) GetSafeBlockNumber(ctx context.Context, l1Client l1_check_block.L1Requester) (uint64, error)
GetSafeBlockNumber provides a mock function with given fields: ctx, l1Client
type SafeL1BlockNumberFetcher_Description_Call ¶
SafeL1BlockNumberFetcher_Description_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Description'
func (*SafeL1BlockNumberFetcher_Description_Call) Return ¶
func (_c *SafeL1BlockNumberFetcher_Description_Call) Return(_a0 string) *SafeL1BlockNumberFetcher_Description_Call
func (*SafeL1BlockNumberFetcher_Description_Call) Run ¶
func (_c *SafeL1BlockNumberFetcher_Description_Call) Run(run func()) *SafeL1BlockNumberFetcher_Description_Call
func (*SafeL1BlockNumberFetcher_Description_Call) RunAndReturn ¶
func (_c *SafeL1BlockNumberFetcher_Description_Call) RunAndReturn(run func() string) *SafeL1BlockNumberFetcher_Description_Call
type SafeL1BlockNumberFetcher_Expecter ¶
type SafeL1BlockNumberFetcher_Expecter struct {
// contains filtered or unexported fields
}
func (*SafeL1BlockNumberFetcher_Expecter) Description ¶
func (_e *SafeL1BlockNumberFetcher_Expecter) Description() *SafeL1BlockNumberFetcher_Description_Call
Description is a helper method to define mock.On call
func (*SafeL1BlockNumberFetcher_Expecter) GetSafeBlockNumber ¶
func (_e *SafeL1BlockNumberFetcher_Expecter) GetSafeBlockNumber(ctx interface{}, l1Client interface{}) *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call
GetSafeBlockNumber is a helper method to define mock.On call
- ctx context.Context
- l1Client l1_check_block.L1Requester
type SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call ¶
SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSafeBlockNumber'
func (*SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) Return ¶
func (_c *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) Return(_a0 uint64, _a1 error) *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call
func (*SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) Run ¶
func (_c *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) Run(run func(ctx context.Context, l1Client l1_check_block.L1Requester)) *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call
func (*SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) RunAndReturn ¶
func (_c *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call) RunAndReturn(run func(context.Context, l1_check_block.L1Requester) (uint64, error)) *SafeL1BlockNumberFetcher_GetSafeBlockNumber_Call
type StateForL1BlockCheckerIntegration ¶
StateForL1BlockCheckerIntegration is an autogenerated mock type for the StateForL1BlockCheckerIntegration type
func NewStateForL1BlockCheckerIntegration ¶
func NewStateForL1BlockCheckerIntegration(t interface { mock.TestingT Cleanup(func()) }) *StateForL1BlockCheckerIntegration
NewStateForL1BlockCheckerIntegration creates a new instance of StateForL1BlockCheckerIntegration. 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 (*StateForL1BlockCheckerIntegration) EXPECT ¶
func (_m *StateForL1BlockCheckerIntegration) EXPECT() *StateForL1BlockCheckerIntegration_Expecter
func (*StateForL1BlockCheckerIntegration) GetPreviousBlockToBlockNumber ¶
func (_m *StateForL1BlockCheckerIntegration) GetPreviousBlockToBlockNumber(ctx context.Context, blockNumber uint64, dbTx pgx.Tx) (*state.Block, error)
GetPreviousBlockToBlockNumber provides a mock function with given fields: ctx, blockNumber, dbTx
type StateForL1BlockCheckerIntegration_Expecter ¶
type StateForL1BlockCheckerIntegration_Expecter struct {
// contains filtered or unexported fields
}
func (*StateForL1BlockCheckerIntegration_Expecter) GetPreviousBlockToBlockNumber ¶
func (_e *StateForL1BlockCheckerIntegration_Expecter) GetPreviousBlockToBlockNumber(ctx interface{}, blockNumber interface{}, dbTx interface{}) *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call
GetPreviousBlockToBlockNumber is a helper method to define mock.On call
- ctx context.Context
- blockNumber uint64
- dbTx pgx.Tx
type StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call ¶
StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPreviousBlockToBlockNumber'
func (*StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) Run ¶
func (_c *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) Run(run func(ctx context.Context, blockNumber uint64, dbTx pgx.Tx)) *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call
func (*StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) RunAndReturn ¶
func (_c *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.Block, error)) *StateForL1BlockCheckerIntegration_GetPreviousBlockToBlockNumber_Call
type StateInterfacer ¶
StateInterfacer is an autogenerated mock type for the StateInterfacer type
func NewStateInterfacer ¶
func NewStateInterfacer(t interface { mock.TestingT Cleanup(func()) }) *StateInterfacer
NewStateInterfacer creates a new instance of StateInterfacer. 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 (*StateInterfacer) EXPECT ¶
func (_m *StateInterfacer) EXPECT() *StateInterfacer_Expecter
func (*StateInterfacer) GetFirstUncheckedBlock ¶
func (_m *StateInterfacer) GetFirstUncheckedBlock(ctx context.Context, fromBlockNumber uint64, dbTx pgx.Tx) (*state.Block, error)
GetFirstUncheckedBlock provides a mock function with given fields: ctx, fromBlockNumber, dbTx
func (*StateInterfacer) UpdateCheckedBlockByNumber ¶
func (_m *StateInterfacer) UpdateCheckedBlockByNumber(ctx context.Context, blockNumber uint64, newCheckedStatus bool, dbTx pgx.Tx) error
UpdateCheckedBlockByNumber provides a mock function with given fields: ctx, blockNumber, newCheckedStatus, dbTx
type StateInterfacer_Expecter ¶
type StateInterfacer_Expecter struct {
// contains filtered or unexported fields
}
func (*StateInterfacer_Expecter) GetFirstUncheckedBlock ¶
func (_e *StateInterfacer_Expecter) GetFirstUncheckedBlock(ctx interface{}, fromBlockNumber interface{}, dbTx interface{}) *StateInterfacer_GetFirstUncheckedBlock_Call
GetFirstUncheckedBlock is a helper method to define mock.On call
- ctx context.Context
- fromBlockNumber uint64
- dbTx pgx.Tx
func (*StateInterfacer_Expecter) UpdateCheckedBlockByNumber ¶
func (_e *StateInterfacer_Expecter) UpdateCheckedBlockByNumber(ctx interface{}, blockNumber interface{}, newCheckedStatus interface{}, dbTx interface{}) *StateInterfacer_UpdateCheckedBlockByNumber_Call
UpdateCheckedBlockByNumber is a helper method to define mock.On call
- ctx context.Context
- blockNumber uint64
- newCheckedStatus bool
- dbTx pgx.Tx
type StateInterfacer_GetFirstUncheckedBlock_Call ¶
StateInterfacer_GetFirstUncheckedBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFirstUncheckedBlock'
func (*StateInterfacer_GetFirstUncheckedBlock_Call) Return ¶
func (_c *StateInterfacer_GetFirstUncheckedBlock_Call) Return(_a0 *state.Block, _a1 error) *StateInterfacer_GetFirstUncheckedBlock_Call
func (*StateInterfacer_GetFirstUncheckedBlock_Call) Run ¶
func (_c *StateInterfacer_GetFirstUncheckedBlock_Call) Run(run func(ctx context.Context, fromBlockNumber uint64, dbTx pgx.Tx)) *StateInterfacer_GetFirstUncheckedBlock_Call
func (*StateInterfacer_GetFirstUncheckedBlock_Call) RunAndReturn ¶
func (_c *StateInterfacer_GetFirstUncheckedBlock_Call) RunAndReturn(run func(context.Context, uint64, pgx.Tx) (*state.Block, error)) *StateInterfacer_GetFirstUncheckedBlock_Call
type StateInterfacer_UpdateCheckedBlockByNumber_Call ¶
StateInterfacer_UpdateCheckedBlockByNumber_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateCheckedBlockByNumber'
func (*StateInterfacer_UpdateCheckedBlockByNumber_Call) Return ¶
func (_c *StateInterfacer_UpdateCheckedBlockByNumber_Call) Return(_a0 error) *StateInterfacer_UpdateCheckedBlockByNumber_Call
func (*StateInterfacer_UpdateCheckedBlockByNumber_Call) Run ¶
func (_c *StateInterfacer_UpdateCheckedBlockByNumber_Call) Run(run func(ctx context.Context, blockNumber uint64, newCheckedStatus bool, dbTx pgx.Tx)) *StateInterfacer_UpdateCheckedBlockByNumber_Call
func (*StateInterfacer_UpdateCheckedBlockByNumber_Call) RunAndReturn ¶
func (_c *StateInterfacer_UpdateCheckedBlockByNumber_Call) RunAndReturn(run func(context.Context, uint64, bool, pgx.Tx) error) *StateInterfacer_UpdateCheckedBlockByNumber_Call
type StatePreCheckInterfacer ¶
StatePreCheckInterfacer is an autogenerated mock type for the StatePreCheckInterfacer type
func NewStatePreCheckInterfacer ¶
func NewStatePreCheckInterfacer(t interface { mock.TestingT Cleanup(func()) }) *StatePreCheckInterfacer
NewStatePreCheckInterfacer creates a new instance of StatePreCheckInterfacer. 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 (*StatePreCheckInterfacer) EXPECT ¶
func (_m *StatePreCheckInterfacer) EXPECT() *StatePreCheckInterfacer_Expecter
func (*StatePreCheckInterfacer) GetUncheckedBlocks ¶
func (_m *StatePreCheckInterfacer) GetUncheckedBlocks(ctx context.Context, fromBlockNumber uint64, toBlockNumber uint64, dbTx pgx.Tx) ([]*state.Block, error)
GetUncheckedBlocks provides a mock function with given fields: ctx, fromBlockNumber, toBlockNumber, dbTx
type StatePreCheckInterfacer_Expecter ¶
type StatePreCheckInterfacer_Expecter struct {
// contains filtered or unexported fields
}
func (*StatePreCheckInterfacer_Expecter) GetUncheckedBlocks ¶
func (_e *StatePreCheckInterfacer_Expecter) GetUncheckedBlocks(ctx interface{}, fromBlockNumber interface{}, toBlockNumber interface{}, dbTx interface{}) *StatePreCheckInterfacer_GetUncheckedBlocks_Call
GetUncheckedBlocks is a helper method to define mock.On call
- ctx context.Context
- fromBlockNumber uint64
- toBlockNumber uint64
- dbTx pgx.Tx
type StatePreCheckInterfacer_GetUncheckedBlocks_Call ¶
StatePreCheckInterfacer_GetUncheckedBlocks_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUncheckedBlocks'
func (*StatePreCheckInterfacer_GetUncheckedBlocks_Call) Return ¶
func (_c *StatePreCheckInterfacer_GetUncheckedBlocks_Call) Return(_a0 []*state.Block, _a1 error) *StatePreCheckInterfacer_GetUncheckedBlocks_Call
func (*StatePreCheckInterfacer_GetUncheckedBlocks_Call) Run ¶
func (_c *StatePreCheckInterfacer_GetUncheckedBlocks_Call) Run(run func(ctx context.Context, fromBlockNumber uint64, toBlockNumber uint64, dbTx pgx.Tx)) *StatePreCheckInterfacer_GetUncheckedBlocks_Call
func (*StatePreCheckInterfacer_GetUncheckedBlocks_Call) RunAndReturn ¶
type SyncCheckReorger ¶
SyncCheckReorger is an autogenerated mock type for the SyncCheckReorger type
func NewSyncCheckReorger ¶
func NewSyncCheckReorger(t interface { mock.TestingT Cleanup(func()) }) *SyncCheckReorger
NewSyncCheckReorger creates a new instance of SyncCheckReorger. 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 (*SyncCheckReorger) EXPECT ¶
func (_m *SyncCheckReorger) EXPECT() *SyncCheckReorger_Expecter
func (*SyncCheckReorger) ExecuteReorgFromMismatchBlock ¶
func (_m *SyncCheckReorger) ExecuteReorgFromMismatchBlock(blockNumber uint64, reason string) error
ExecuteReorgFromMismatchBlock provides a mock function with given fields: blockNumber, reason
func (*SyncCheckReorger) OnDetectedMismatchL1BlockReorg ¶
func (_m *SyncCheckReorger) OnDetectedMismatchL1BlockReorg()
OnDetectedMismatchL1BlockReorg provides a mock function with given fields:
type SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call ¶
SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ExecuteReorgFromMismatchBlock'
func (*SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) Run ¶
func (_c *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) Run(run func(blockNumber uint64, reason string)) *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call
func (*SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) RunAndReturn ¶
func (_c *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call) RunAndReturn(run func(uint64, string) error) *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call
type SyncCheckReorger_Expecter ¶
type SyncCheckReorger_Expecter struct {
// contains filtered or unexported fields
}
func (*SyncCheckReorger_Expecter) ExecuteReorgFromMismatchBlock ¶
func (_e *SyncCheckReorger_Expecter) ExecuteReorgFromMismatchBlock(blockNumber interface{}, reason interface{}) *SyncCheckReorger_ExecuteReorgFromMismatchBlock_Call
ExecuteReorgFromMismatchBlock is a helper method to define mock.On call
- blockNumber uint64
- reason string
func (*SyncCheckReorger_Expecter) OnDetectedMismatchL1BlockReorg ¶
func (_e *SyncCheckReorger_Expecter) OnDetectedMismatchL1BlockReorg() *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call
OnDetectedMismatchL1BlockReorg is a helper method to define mock.On call
type SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call ¶
SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OnDetectedMismatchL1BlockReorg'
func (*SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) Run ¶
func (_c *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) Run(run func()) *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call
func (*SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) RunAndReturn ¶
func (_c *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call) RunAndReturn(run func()) *SyncCheckReorger_OnDetectedMismatchL1BlockReorg_Call