mock_l2_shared

package
v0.5.13-RC1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 6 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 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