mock_l2_shared

package
v0.7.0-fork11 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchProcessor

type BatchProcessor struct {
	mock.Mock
}

BatchProcessor is an autogenerated mock type for the BatchProcessor type

func NewBatchProcessor

func NewBatchProcessor(t interface {
	mock.TestingT
	Cleanup(func())
}) *BatchProcessor

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

func (*BatchProcessor) ProcessTrustedBatch

func (_m *BatchProcessor) ProcessTrustedBatch(ctx context.Context, trustedBatch *types.Batch, status l2_shared.TrustedState, dbTx pgx.Tx, debugPrefix string) (*l2_shared.TrustedState, error)

ProcessTrustedBatch provides a mock function with given fields: ctx, trustedBatch, status, dbTx, debugPrefix

type BatchProcessor_Expecter

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

func (*BatchProcessor_Expecter) ProcessTrustedBatch

func (_e *BatchProcessor_Expecter) ProcessTrustedBatch(ctx interface{}, trustedBatch interface{}, status interface{}, dbTx interface{}, debugPrefix interface{}) *BatchProcessor_ProcessTrustedBatch_Call

ProcessTrustedBatch is a helper method to define mock.On call

  • ctx context.Context
  • trustedBatch *types.Batch
  • status l2_shared.TrustedState
  • dbTx pgx.Tx
  • debugPrefix string

type BatchProcessor_ProcessTrustedBatch_Call

type BatchProcessor_ProcessTrustedBatch_Call struct {
	*mock.Call
}

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

func (*BatchProcessor_ProcessTrustedBatch_Call) Return

func (*BatchProcessor_ProcessTrustedBatch_Call) Run

type L1SyncGlobalExitRootChecker added in v0.6.1

type L1SyncGlobalExitRootChecker struct {
	mock.Mock
}

L1SyncGlobalExitRootChecker is an autogenerated mock type for the L1SyncGlobalExitRootChecker type

func NewL1SyncGlobalExitRootChecker added in v0.6.1

func NewL1SyncGlobalExitRootChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1SyncGlobalExitRootChecker

NewL1SyncGlobalExitRootChecker creates a new instance of L1SyncGlobalExitRootChecker. 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 (*L1SyncGlobalExitRootChecker) CheckL1SyncGlobalExitRootEnoughToProcessBatch added in v0.6.1

func (_m *L1SyncGlobalExitRootChecker) CheckL1SyncGlobalExitRootEnoughToProcessBatch(ctx context.Context, batchNumber uint64, globalExitRoot common.Hash, dbTx pgx.Tx) error

CheckL1SyncGlobalExitRootEnoughToProcessBatch provides a mock function with given fields: ctx, batchNumber, globalExitRoot, dbTx

func (*L1SyncGlobalExitRootChecker) EXPECT added in v0.6.1

type L1SyncGlobalExitRootChecker_CheckL1SyncGlobalExitRootEnoughToProcessBatch_Call added in v0.6.1

type L1SyncGlobalExitRootChecker_CheckL1SyncGlobalExitRootEnoughToProcessBatch_Call struct {
	*mock.Call
}

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

func (*L1SyncGlobalExitRootChecker_CheckL1SyncGlobalExitRootEnoughToProcessBatch_Call) Return added in v0.6.1

func (*L1SyncGlobalExitRootChecker_CheckL1SyncGlobalExitRootEnoughToProcessBatch_Call) Run added in v0.6.1

func (*L1SyncGlobalExitRootChecker_CheckL1SyncGlobalExitRootEnoughToProcessBatch_Call) RunAndReturn added in v0.6.1

type L1SyncGlobalExitRootChecker_Expecter added in v0.6.1

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

func (*L1SyncGlobalExitRootChecker_Expecter) CheckL1SyncGlobalExitRootEnoughToProcessBatch added in v0.6.1

func (_e *L1SyncGlobalExitRootChecker_Expecter) CheckL1SyncGlobalExitRootEnoughToProcessBatch(ctx interface{}, batchNumber interface{}, globalExitRoot interface{}, dbTx interface{}) *L1SyncGlobalExitRootChecker_CheckL1SyncGlobalExitRootEnoughToProcessBatch_Call

CheckL1SyncGlobalExitRootEnoughToProcessBatch is a helper method to define mock.On call

  • ctx context.Context
  • batchNumber uint64
  • globalExitRoot common.Hash
  • dbTx pgx.Tx

type PostClosedBatchChecker added in v0.6.3

type PostClosedBatchChecker struct {
	mock.Mock
}

PostClosedBatchChecker is an autogenerated mock type for the PostClosedBatchChecker type

func NewPostClosedBatchChecker added in v0.6.3

func NewPostClosedBatchChecker(t interface {
	mock.TestingT
	Cleanup(func())
}) *PostClosedBatchChecker

NewPostClosedBatchChecker creates a new instance of PostClosedBatchChecker. 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 (*PostClosedBatchChecker) CheckPostClosedBatch added in v0.6.3

func (_m *PostClosedBatchChecker) CheckPostClosedBatch(ctx context.Context, processData l2_shared.ProcessData, dbTx pgx.Tx) error

CheckPostClosedBatch provides a mock function with given fields: ctx, processData, dbTx

func (*PostClosedBatchChecker) EXPECT added in v0.6.3

type PostClosedBatchChecker_CheckPostClosedBatch_Call added in v0.6.3

type PostClosedBatchChecker_CheckPostClosedBatch_Call struct {
	*mock.Call
}

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

func (*PostClosedBatchChecker_CheckPostClosedBatch_Call) Return added in v0.6.3

func (*PostClosedBatchChecker_CheckPostClosedBatch_Call) Run added in v0.6.3

func (*PostClosedBatchChecker_CheckPostClosedBatch_Call) RunAndReturn added in v0.6.3

type PostClosedBatchChecker_Expecter added in v0.6.3

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

func (*PostClosedBatchChecker_Expecter) CheckPostClosedBatch added in v0.6.3

func (_e *PostClosedBatchChecker_Expecter) CheckPostClosedBatch(ctx interface{}, processData interface{}, dbTx interface{}) *PostClosedBatchChecker_CheckPostClosedBatch_Call

CheckPostClosedBatch is a helper method to define mock.On call

  • ctx context.Context
  • processData l2_shared.ProcessData
  • dbTx pgx.Tx

type StateInterface

type StateInterface struct {
	mock.Mock
}

StateInterface is an autogenerated mock type for the StateInterface type

func NewStateInterface

func NewStateInterface(t interface {
	mock.TestingT
	Cleanup(func())
}) *StateInterface

NewStateInterface creates a new instance of StateInterface. 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 (*StateInterface) BeginStateTransaction

func (_m *StateInterface) BeginStateTransaction(ctx context.Context) (pgx.Tx, error)

BeginStateTransaction provides a mock function with given fields: ctx

func (*StateInterface) EXPECT

func (*StateInterface) GetBatchByNumber

func (_m *StateInterface) GetBatchByNumber(ctx context.Context, batchNumber uint64, dbTx pgx.Tx) (*state.Batch, error)

GetBatchByNumber provides a mock function with given fields: ctx, batchNumber, dbTx

type StateInterface_BeginStateTransaction_Call

type StateInterface_BeginStateTransaction_Call struct {
	*mock.Call
}

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

func (*StateInterface_BeginStateTransaction_Call) Return

func (*StateInterface_BeginStateTransaction_Call) Run

func (*StateInterface_BeginStateTransaction_Call) RunAndReturn

type StateInterface_Expecter

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

func (*StateInterface_Expecter) BeginStateTransaction

func (_e *StateInterface_Expecter) BeginStateTransaction(ctx interface{}) *StateInterface_BeginStateTransaction_Call

BeginStateTransaction is a helper method to define mock.On call

  • ctx context.Context

func (*StateInterface_Expecter) GetBatchByNumber

func (_e *StateInterface_Expecter) GetBatchByNumber(ctx interface{}, batchNumber interface{}, dbTx interface{}) *StateInterface_GetBatchByNumber_Call

GetBatchByNumber is a helper method to define mock.On call

  • ctx context.Context
  • batchNumber uint64
  • dbTx pgx.Tx

type StateInterface_GetBatchByNumber_Call

type StateInterface_GetBatchByNumber_Call struct {
	*mock.Call
}

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

func (*StateInterface_GetBatchByNumber_Call) Return

func (*StateInterface_GetBatchByNumber_Call) Run

func (*StateInterface_GetBatchByNumber_Call) RunAndReturn

type SyncTrustedBatchExecutor

type SyncTrustedBatchExecutor struct {
	mock.Mock
}

SyncTrustedBatchExecutor is an autogenerated mock type for the SyncTrustedBatchExecutor type

func NewSyncTrustedBatchExecutor

func NewSyncTrustedBatchExecutor(t interface {
	mock.TestingT
	Cleanup(func())
}) *SyncTrustedBatchExecutor

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

func (*SyncTrustedBatchExecutor) FullProcess

FullProcess provides a mock function with given fields: ctx, data, dbTx

func (*SyncTrustedBatchExecutor) IncrementalProcess

func (_m *SyncTrustedBatchExecutor) IncrementalProcess(ctx context.Context, data *l2_shared.ProcessData, dbTx pgx.Tx) (*l2_shared.ProcessResponse, error)

IncrementalProcess provides a mock function with given fields: ctx, data, dbTx

func (*SyncTrustedBatchExecutor) NothingProcess

NothingProcess provides a mock function with given fields: ctx, data, dbTx

func (*SyncTrustedBatchExecutor) ReProcess

ReProcess provides a mock function with given fields: ctx, data, dbTx

type SyncTrustedBatchExecutor_Expecter

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

func (*SyncTrustedBatchExecutor_Expecter) FullProcess

func (_e *SyncTrustedBatchExecutor_Expecter) FullProcess(ctx interface{}, data interface{}, dbTx interface{}) *SyncTrustedBatchExecutor_FullProcess_Call

FullProcess is a helper method to define mock.On call

  • ctx context.Context
  • data *l2_shared.ProcessData
  • dbTx pgx.Tx

func (*SyncTrustedBatchExecutor_Expecter) IncrementalProcess

func (_e *SyncTrustedBatchExecutor_Expecter) IncrementalProcess(ctx interface{}, data interface{}, dbTx interface{}) *SyncTrustedBatchExecutor_IncrementalProcess_Call

IncrementalProcess is a helper method to define mock.On call

  • ctx context.Context
  • data *l2_shared.ProcessData
  • dbTx pgx.Tx

func (*SyncTrustedBatchExecutor_Expecter) NothingProcess

func (_e *SyncTrustedBatchExecutor_Expecter) NothingProcess(ctx interface{}, data interface{}, dbTx interface{}) *SyncTrustedBatchExecutor_NothingProcess_Call

NothingProcess is a helper method to define mock.On call

  • ctx context.Context
  • data *l2_shared.ProcessData
  • dbTx pgx.Tx

func (*SyncTrustedBatchExecutor_Expecter) ReProcess

func (_e *SyncTrustedBatchExecutor_Expecter) ReProcess(ctx interface{}, data interface{}, dbTx interface{}) *SyncTrustedBatchExecutor_ReProcess_Call

ReProcess is a helper method to define mock.On call

  • ctx context.Context
  • data *l2_shared.ProcessData
  • dbTx pgx.Tx

type SyncTrustedBatchExecutor_FullProcess_Call

type SyncTrustedBatchExecutor_FullProcess_Call struct {
	*mock.Call
}

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

func (*SyncTrustedBatchExecutor_FullProcess_Call) Return

func (*SyncTrustedBatchExecutor_FullProcess_Call) Run

type SyncTrustedBatchExecutor_IncrementalProcess_Call

type SyncTrustedBatchExecutor_IncrementalProcess_Call struct {
	*mock.Call
}

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

func (*SyncTrustedBatchExecutor_IncrementalProcess_Call) Return

func (*SyncTrustedBatchExecutor_IncrementalProcess_Call) Run

type SyncTrustedBatchExecutor_NothingProcess_Call

type SyncTrustedBatchExecutor_NothingProcess_Call struct {
	*mock.Call
}

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

func (*SyncTrustedBatchExecutor_NothingProcess_Call) Return

func (*SyncTrustedBatchExecutor_NothingProcess_Call) Run

type SyncTrustedBatchExecutor_ReProcess_Call

type SyncTrustedBatchExecutor_ReProcess_Call struct {
	*mock.Call
}

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

func (*SyncTrustedBatchExecutor_ReProcess_Call) Return

func (*SyncTrustedBatchExecutor_ReProcess_Call) Run

Jump to

Keyboard shortcuts

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