mocks

package
v0.5.0-beta5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EthTxManagerMock

type EthTxManagerMock struct {
	mock.Mock
}

EthTxManagerMock is an autogenerated mock type for the EthTxManager type

func NewEthTxManagerMock

func NewEthTxManagerMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthTxManagerMock

NewEthTxManagerMock creates a new instance of EthTxManagerMock. 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 (*EthTxManagerMock) AddWithGas

func (_m *EthTxManagerMock) AddWithGas(ctx context.Context, to *common.Address, value *big.Int, data []byte, gasOffset uint64, sidecar *types.BlobTxSidecar, gas uint64) (common.Hash, error)

AddWithGas provides a mock function with given fields: ctx, to, value, data, gasOffset, sidecar, gas

func (*EthTxManagerMock) Remove

func (_m *EthTxManagerMock) Remove(ctx context.Context, hash common.Hash) error

Remove provides a mock function with given fields: ctx, hash

func (*EthTxManagerMock) Result

Result provides a mock function with given fields: ctx, hash

func (*EthTxManagerMock) ResultsByStatus

ResultsByStatus provides a mock function with given fields: ctx, status

func (*EthTxManagerMock) Start

func (_m *EthTxManagerMock) Start()

Start provides a mock function with given fields:

type EthermanMock

type EthermanMock struct {
	mock.Mock
}

EthermanMock is an autogenerated mock type for the Etherman type

func NewEthermanMock

func NewEthermanMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthermanMock

NewEthermanMock creates a new instance of EthermanMock. 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 (*EthermanMock) CurrentNonce

func (_m *EthermanMock) CurrentNonce(ctx context.Context, address common.Address) (uint64, error)

CurrentNonce provides a mock function with given fields: ctx, address

func (*EthermanMock) EstimateGas

func (_m *EthermanMock) EstimateGas(ctx context.Context, from common.Address, to *common.Address, value *big.Int, data []byte) (uint64, error)

EstimateGas provides a mock function with given fields: ctx, from, to, value, data

func (*EthermanMock) GetLatestBatchNumber

func (_m *EthermanMock) GetLatestBatchNumber() (uint64, error)

GetLatestBatchNumber provides a mock function with given fields:

func (*EthermanMock) GetLatestBlockHeader

func (_m *EthermanMock) GetLatestBlockHeader(ctx context.Context) (*types.Header, error)

GetLatestBlockHeader provides a mock function with given fields: ctx

type RPCInterfaceMock added in v0.4.0

type RPCInterfaceMock struct {
	mock.Mock
}

RPCInterfaceMock is an autogenerated mock type for the RPCInterface type

func NewRPCInterfaceMock added in v0.4.0

func NewRPCInterfaceMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *RPCInterfaceMock

NewRPCInterfaceMock creates a new instance of RPCInterfaceMock. 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 (*RPCInterfaceMock) GetBatch added in v0.4.0

func (_m *RPCInterfaceMock) GetBatch(batchNumber uint64) (*types.RPCBatch, error)

GetBatch provides a mock function with given fields: batchNumber

func (*RPCInterfaceMock) GetWitness added in v0.4.0

func (_m *RPCInterfaceMock) GetWitness(batchNumber uint64, fullWitness bool) ([]byte, error)

GetWitness provides a mock function with given fields: batchNumber, fullWitness

type TxBuilderMock

type TxBuilderMock struct {
	mock.Mock
}

TxBuilderMock is an autogenerated mock type for the TxBuilder type

func NewTxBuilderMock

func NewTxBuilderMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *TxBuilderMock

NewTxBuilderMock creates a new instance of TxBuilderMock. 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 (*TxBuilderMock) BuildSequenceBatchesTx

func (_m *TxBuilderMock) BuildSequenceBatchesTx(ctx context.Context, sequences seqsendertypes.Sequence) (*types.Transaction, error)

BuildSequenceBatchesTx provides a mock function with given fields: ctx, sequences

func (*TxBuilderMock) EXPECT

func (_m *TxBuilderMock) EXPECT() *TxBuilderMock_Expecter

func (*TxBuilderMock) NewBatchFromL2Block

func (_m *TxBuilderMock) NewBatchFromL2Block(l2Block *datastream.L2Block) seqsendertypes.Batch

NewBatchFromL2Block provides a mock function with given fields: l2Block

func (*TxBuilderMock) NewSequence

func (_m *TxBuilderMock) NewSequence(ctx context.Context, batches []seqsendertypes.Batch, coinbase common.Address) (seqsendertypes.Sequence, error)

NewSequence provides a mock function with given fields: ctx, batches, coinbase

func (*TxBuilderMock) NewSequenceIfWorthToSend

func (_m *TxBuilderMock) NewSequenceIfWorthToSend(ctx context.Context, sequenceBatches []seqsendertypes.Batch, l2Coinbase common.Address, batchNumber uint64) (seqsendertypes.Sequence, error)

NewSequenceIfWorthToSend provides a mock function with given fields: ctx, sequenceBatches, l2Coinbase, batchNumber

func (*TxBuilderMock) SetCondNewSeq

SetCondNewSeq provides a mock function with given fields: cond

func (*TxBuilderMock) String

func (_m *TxBuilderMock) String() string

String provides a mock function with given fields:

type TxBuilderMock_BuildSequenceBatchesTx_Call

type TxBuilderMock_BuildSequenceBatchesTx_Call struct {
	*mock.Call
}

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

func (*TxBuilderMock_BuildSequenceBatchesTx_Call) Return

func (*TxBuilderMock_BuildSequenceBatchesTx_Call) Run

func (*TxBuilderMock_BuildSequenceBatchesTx_Call) RunAndReturn

type TxBuilderMock_Expecter

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

func (*TxBuilderMock_Expecter) BuildSequenceBatchesTx

func (_e *TxBuilderMock_Expecter) BuildSequenceBatchesTx(ctx interface{}, sequences interface{}) *TxBuilderMock_BuildSequenceBatchesTx_Call

BuildSequenceBatchesTx is a helper method to define mock.On call

  • ctx context.Context
  • sequences seqsendertypes.Sequence

func (*TxBuilderMock_Expecter) NewBatchFromL2Block

func (_e *TxBuilderMock_Expecter) NewBatchFromL2Block(l2Block interface{}) *TxBuilderMock_NewBatchFromL2Block_Call

NewBatchFromL2Block is a helper method to define mock.On call

  • l2Block *datastream.L2Block

func (*TxBuilderMock_Expecter) NewSequence

func (_e *TxBuilderMock_Expecter) NewSequence(ctx interface{}, batches interface{}, coinbase interface{}) *TxBuilderMock_NewSequence_Call

NewSequence is a helper method to define mock.On call

  • ctx context.Context
  • batches []seqsendertypes.Batch
  • coinbase common.Address

func (*TxBuilderMock_Expecter) NewSequenceIfWorthToSend

func (_e *TxBuilderMock_Expecter) NewSequenceIfWorthToSend(ctx interface{}, sequenceBatches interface{}, l2Coinbase interface{}, batchNumber interface{}) *TxBuilderMock_NewSequenceIfWorthToSend_Call

NewSequenceIfWorthToSend is a helper method to define mock.On call

  • ctx context.Context
  • sequenceBatches []seqsendertypes.Batch
  • l2Coinbase common.Address
  • batchNumber uint64

func (*TxBuilderMock_Expecter) SetCondNewSeq

func (_e *TxBuilderMock_Expecter) SetCondNewSeq(cond interface{}) *TxBuilderMock_SetCondNewSeq_Call

SetCondNewSeq is a helper method to define mock.On call

  • cond txbuilder.CondNewSequence

func (*TxBuilderMock_Expecter) String

String is a helper method to define mock.On call

type TxBuilderMock_NewBatchFromL2Block_Call

type TxBuilderMock_NewBatchFromL2Block_Call struct {
	*mock.Call
}

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

func (*TxBuilderMock_NewBatchFromL2Block_Call) Return

func (*TxBuilderMock_NewBatchFromL2Block_Call) Run

func (*TxBuilderMock_NewBatchFromL2Block_Call) RunAndReturn

type TxBuilderMock_NewSequenceIfWorthToSend_Call

type TxBuilderMock_NewSequenceIfWorthToSend_Call struct {
	*mock.Call
}

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

func (*TxBuilderMock_NewSequenceIfWorthToSend_Call) Return

func (*TxBuilderMock_NewSequenceIfWorthToSend_Call) Run

type TxBuilderMock_NewSequence_Call

type TxBuilderMock_NewSequence_Call struct {
	*mock.Call
}

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

func (*TxBuilderMock_NewSequence_Call) Return

func (*TxBuilderMock_NewSequence_Call) Run

type TxBuilderMock_SetCondNewSeq_Call

type TxBuilderMock_SetCondNewSeq_Call struct {
	*mock.Call
}

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

func (*TxBuilderMock_SetCondNewSeq_Call) Return

func (*TxBuilderMock_SetCondNewSeq_Call) Run

func (*TxBuilderMock_SetCondNewSeq_Call) RunAndReturn

type TxBuilderMock_String_Call

type TxBuilderMock_String_Call struct {
	*mock.Call
}

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

func (*TxBuilderMock_String_Call) Return

func (*TxBuilderMock_String_Call) Run

func (*TxBuilderMock_String_Call) RunAndReturn

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

Jump to

Keyboard shortcuts

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