mocks

package
v0.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggSenderStorage

type AggSenderStorage struct {
	mock.Mock
}

AggSenderStorage is an autogenerated mock type for the AggSenderStorage type

func NewAggSenderStorage

func NewAggSenderStorage(t interface {
	mock.TestingT
	Cleanup(func())
}) *AggSenderStorage

NewAggSenderStorage creates a new instance of AggSenderStorage. 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 (*AggSenderStorage) DeleteCertificate

func (_m *AggSenderStorage) DeleteCertificate(ctx context.Context, certificateID common.Hash) error

DeleteCertificate provides a mock function with given fields: ctx, certificateID

func (*AggSenderStorage) EXPECT

func (*AggSenderStorage) GetCertificateByHeight

func (_m *AggSenderStorage) GetCertificateByHeight(height uint64) (*types.CertificateInfo, error)

GetCertificateByHeight provides a mock function with given fields: height

func (*AggSenderStorage) GetCertificatesByStatus

func (_m *AggSenderStorage) GetCertificatesByStatus(status []agglayer.CertificateStatus) ([]*types.CertificateInfo, error)

GetCertificatesByStatus provides a mock function with given fields: status

func (*AggSenderStorage) GetLastSentCertificate

func (_m *AggSenderStorage) GetLastSentCertificate() (*types.CertificateInfo, error)

GetLastSentCertificate provides a mock function with given fields:

func (*AggSenderStorage) SaveLastSentCertificate

func (_m *AggSenderStorage) SaveLastSentCertificate(ctx context.Context, certificate types.CertificateInfo) error

SaveLastSentCertificate provides a mock function with given fields: ctx, certificate

func (*AggSenderStorage) UpdateCertificate added in v0.5.0

func (_m *AggSenderStorage) UpdateCertificate(ctx context.Context, certificate types.CertificateInfo) error

UpdateCertificate provides a mock function with given fields: ctx, certificate

type AggSenderStorage_DeleteCertificate_Call

type AggSenderStorage_DeleteCertificate_Call struct {
	*mock.Call
}

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

func (*AggSenderStorage_DeleteCertificate_Call) Return

func (*AggSenderStorage_DeleteCertificate_Call) Run

func (*AggSenderStorage_DeleteCertificate_Call) RunAndReturn

type AggSenderStorage_Expecter

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

func (*AggSenderStorage_Expecter) DeleteCertificate

func (_e *AggSenderStorage_Expecter) DeleteCertificate(ctx interface{}, certificateID interface{}) *AggSenderStorage_DeleteCertificate_Call

DeleteCertificate is a helper method to define mock.On call

  • ctx context.Context
  • certificateID common.Hash

func (*AggSenderStorage_Expecter) GetCertificateByHeight

func (_e *AggSenderStorage_Expecter) GetCertificateByHeight(height interface{}) *AggSenderStorage_GetCertificateByHeight_Call

GetCertificateByHeight is a helper method to define mock.On call

  • height uint64

func (*AggSenderStorage_Expecter) GetCertificatesByStatus

func (_e *AggSenderStorage_Expecter) GetCertificatesByStatus(status interface{}) *AggSenderStorage_GetCertificatesByStatus_Call

GetCertificatesByStatus is a helper method to define mock.On call

  • status []agglayer.CertificateStatus

func (*AggSenderStorage_Expecter) GetLastSentCertificate

GetLastSentCertificate is a helper method to define mock.On call

func (*AggSenderStorage_Expecter) SaveLastSentCertificate

func (_e *AggSenderStorage_Expecter) SaveLastSentCertificate(ctx interface{}, certificate interface{}) *AggSenderStorage_SaveLastSentCertificate_Call

SaveLastSentCertificate is a helper method to define mock.On call

  • ctx context.Context
  • certificate types.CertificateInfo

func (*AggSenderStorage_Expecter) UpdateCertificate added in v0.5.0

func (_e *AggSenderStorage_Expecter) UpdateCertificate(ctx interface{}, certificate interface{}) *AggSenderStorage_UpdateCertificate_Call

UpdateCertificate is a helper method to define mock.On call

  • ctx context.Context
  • certificate types.CertificateInfo

type AggSenderStorage_GetCertificateByHeight_Call

type AggSenderStorage_GetCertificateByHeight_Call struct {
	*mock.Call
}

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

func (*AggSenderStorage_GetCertificateByHeight_Call) Return

func (*AggSenderStorage_GetCertificateByHeight_Call) Run

func (*AggSenderStorage_GetCertificateByHeight_Call) RunAndReturn

type AggSenderStorage_GetCertificatesByStatus_Call

type AggSenderStorage_GetCertificatesByStatus_Call struct {
	*mock.Call
}

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

func (*AggSenderStorage_GetCertificatesByStatus_Call) Return

func (*AggSenderStorage_GetCertificatesByStatus_Call) Run

func (*AggSenderStorage_GetCertificatesByStatus_Call) RunAndReturn

type AggSenderStorage_GetLastSentCertificate_Call

type AggSenderStorage_GetLastSentCertificate_Call struct {
	*mock.Call
}

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

func (*AggSenderStorage_GetLastSentCertificate_Call) Return

func (*AggSenderStorage_GetLastSentCertificate_Call) Run

func (*AggSenderStorage_GetLastSentCertificate_Call) RunAndReturn

type AggSenderStorage_SaveLastSentCertificate_Call

type AggSenderStorage_SaveLastSentCertificate_Call struct {
	*mock.Call
}

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

func (*AggSenderStorage_SaveLastSentCertificate_Call) Return

func (*AggSenderStorage_SaveLastSentCertificate_Call) Run

func (*AggSenderStorage_SaveLastSentCertificate_Call) RunAndReturn

type AggSenderStorage_UpdateCertificate_Call added in v0.5.0

type AggSenderStorage_UpdateCertificate_Call struct {
	*mock.Call
}

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

func (*AggSenderStorage_UpdateCertificate_Call) Return added in v0.5.0

func (*AggSenderStorage_UpdateCertificate_Call) Run added in v0.5.0

func (*AggSenderStorage_UpdateCertificate_Call) RunAndReturn added in v0.5.0

type BlockNotifier

type BlockNotifier struct {
	mock.Mock
}

BlockNotifier is an autogenerated mock type for the BlockNotifier type

func NewBlockNotifier

func NewBlockNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockNotifier

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

func (_m *BlockNotifier) EXPECT() *BlockNotifier_Expecter

func (*BlockNotifier) String

func (_m *BlockNotifier) String() string

String provides a mock function with given fields:

func (*BlockNotifier) Subscribe

func (_m *BlockNotifier) Subscribe(id string) <-chan types.EventNewBlock

Subscribe provides a mock function with given fields: id

type BlockNotifier_Expecter

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

func (*BlockNotifier_Expecter) String

String is a helper method to define mock.On call

func (*BlockNotifier_Expecter) Subscribe

func (_e *BlockNotifier_Expecter) Subscribe(id interface{}) *BlockNotifier_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • id string

type BlockNotifier_String_Call

type BlockNotifier_String_Call struct {
	*mock.Call
}

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

func (*BlockNotifier_String_Call) Return

func (*BlockNotifier_String_Call) Run

func (*BlockNotifier_String_Call) RunAndReturn

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

type BlockNotifier_Subscribe_Call

type BlockNotifier_Subscribe_Call struct {
	*mock.Call
}

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

func (*BlockNotifier_Subscribe_Call) Return

func (*BlockNotifier_Subscribe_Call) Run

func (*BlockNotifier_Subscribe_Call) RunAndReturn

type EpochNotifier

type EpochNotifier struct {
	mock.Mock
}

EpochNotifier is an autogenerated mock type for the EpochNotifier type

func NewEpochNotifier

func NewEpochNotifier(t interface {
	mock.TestingT
	Cleanup(func())
}) *EpochNotifier

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

func (_m *EpochNotifier) EXPECT() *EpochNotifier_Expecter

func (*EpochNotifier) Start

func (_m *EpochNotifier) Start(ctx context.Context)

Start provides a mock function with given fields: ctx

func (*EpochNotifier) String

func (_m *EpochNotifier) String() string

String provides a mock function with given fields:

func (*EpochNotifier) Subscribe

func (_m *EpochNotifier) Subscribe(id string) <-chan types.EpochEvent

Subscribe provides a mock function with given fields: id

type EpochNotifier_Expecter

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

func (*EpochNotifier_Expecter) Start

func (_e *EpochNotifier_Expecter) Start(ctx interface{}) *EpochNotifier_Start_Call

Start is a helper method to define mock.On call

  • ctx context.Context

func (*EpochNotifier_Expecter) String

String is a helper method to define mock.On call

func (*EpochNotifier_Expecter) Subscribe

func (_e *EpochNotifier_Expecter) Subscribe(id interface{}) *EpochNotifier_Subscribe_Call

Subscribe is a helper method to define mock.On call

  • id string

type EpochNotifier_Start_Call

type EpochNotifier_Start_Call struct {
	*mock.Call
}

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

func (*EpochNotifier_Start_Call) Return

func (*EpochNotifier_Start_Call) Run

func (*EpochNotifier_Start_Call) RunAndReturn

type EpochNotifier_String_Call

type EpochNotifier_String_Call struct {
	*mock.Call
}

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

func (*EpochNotifier_String_Call) Return

func (*EpochNotifier_String_Call) Run

func (*EpochNotifier_String_Call) RunAndReturn

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

type EpochNotifier_Subscribe_Call

type EpochNotifier_Subscribe_Call struct {
	*mock.Call
}

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

func (*EpochNotifier_Subscribe_Call) Return

func (*EpochNotifier_Subscribe_Call) Run

func (*EpochNotifier_Subscribe_Call) RunAndReturn

type EthClient

type EthClient struct {
	mock.Mock
}

EthClient is an autogenerated mock type for the EthClient type

func NewEthClient

func NewEthClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *EthClient

NewEthClient creates a new instance of EthClient. 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 (*EthClient) BlockNumber

func (_m *EthClient) BlockNumber(ctx context.Context) (uint64, error)

BlockNumber provides a mock function with given fields: ctx

func (*EthClient) EXPECT

func (_m *EthClient) EXPECT() *EthClient_Expecter

func (*EthClient) HeaderByNumber

func (_m *EthClient) HeaderByNumber(ctx context.Context, number *big.Int) (*coretypes.Header, error)

HeaderByNumber provides a mock function with given fields: ctx, number

type EthClient_BlockNumber_Call

type EthClient_BlockNumber_Call struct {
	*mock.Call
}

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

func (*EthClient_BlockNumber_Call) Return

func (*EthClient_BlockNumber_Call) Run

func (*EthClient_BlockNumber_Call) RunAndReturn

type EthClient_Expecter

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

func (*EthClient_Expecter) BlockNumber

func (_e *EthClient_Expecter) BlockNumber(ctx interface{}) *EthClient_BlockNumber_Call

BlockNumber is a helper method to define mock.On call

  • ctx context.Context

func (*EthClient_Expecter) HeaderByNumber

func (_e *EthClient_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *EthClient_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

type EthClient_HeaderByNumber_Call

type EthClient_HeaderByNumber_Call struct {
	*mock.Call
}

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

func (*EthClient_HeaderByNumber_Call) Return

func (*EthClient_HeaderByNumber_Call) Run

func (*EthClient_HeaderByNumber_Call) RunAndReturn

type GenericSubscriber

type GenericSubscriber[T interface{}] struct {
	mock.Mock
}

GenericSubscriber is an autogenerated mock type for the GenericSubscriber type

func NewGenericSubscriber

func NewGenericSubscriber[T interface{}](t interface {
	mock.TestingT
	Cleanup(func())
}) *GenericSubscriber[T]

NewGenericSubscriber creates a new instance of GenericSubscriber. 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 (*GenericSubscriber[T]) EXPECT

func (_m *GenericSubscriber[T]) EXPECT() *GenericSubscriber_Expecter[T]

func (*GenericSubscriber[T]) Publish

func (_m *GenericSubscriber[T]) Publish(data T)

Publish provides a mock function with given fields: data

func (*GenericSubscriber[T]) Subscribe

func (_m *GenericSubscriber[T]) Subscribe(subscriberName string) <-chan T

Subscribe provides a mock function with given fields: subscriberName

type GenericSubscriber_Expecter

type GenericSubscriber_Expecter[T interface{}] struct {
	// contains filtered or unexported fields
}

func (*GenericSubscriber_Expecter[T]) Publish

func (_e *GenericSubscriber_Expecter[T]) Publish(data interface{}) *GenericSubscriber_Publish_Call[T]

Publish is a helper method to define mock.On call

  • data T

func (*GenericSubscriber_Expecter[T]) Subscribe

func (_e *GenericSubscriber_Expecter[T]) Subscribe(subscriberName interface{}) *GenericSubscriber_Subscribe_Call[T]

Subscribe is a helper method to define mock.On call

  • subscriberName string

type GenericSubscriber_Publish_Call

type GenericSubscriber_Publish_Call[T interface{}] struct {
	*mock.Call
}

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

func (*GenericSubscriber_Publish_Call[T]) Return

func (*GenericSubscriber_Publish_Call[T]) Run

func (_c *GenericSubscriber_Publish_Call[T]) Run(run func(data T)) *GenericSubscriber_Publish_Call[T]

func (*GenericSubscriber_Publish_Call[T]) RunAndReturn

func (_c *GenericSubscriber_Publish_Call[T]) RunAndReturn(run func(T)) *GenericSubscriber_Publish_Call[T]

type GenericSubscriber_Subscribe_Call

type GenericSubscriber_Subscribe_Call[T interface{}] struct {
	*mock.Call
}

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

func (*GenericSubscriber_Subscribe_Call[T]) Return

func (*GenericSubscriber_Subscribe_Call[T]) Run

func (_c *GenericSubscriber_Subscribe_Call[T]) Run(run func(subscriberName string)) *GenericSubscriber_Subscribe_Call[T]

func (*GenericSubscriber_Subscribe_Call[T]) RunAndReturn

func (_c *GenericSubscriber_Subscribe_Call[T]) RunAndReturn(run func(string) <-chan T) *GenericSubscriber_Subscribe_Call[T]

type L1InfoTreeSyncer

type L1InfoTreeSyncer struct {
	mock.Mock
}

L1InfoTreeSyncer is an autogenerated mock type for the L1InfoTreeSyncer type

func NewL1InfoTreeSyncer

func NewL1InfoTreeSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *L1InfoTreeSyncer

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

func (*L1InfoTreeSyncer) GetInfoByGlobalExitRoot

func (_m *L1InfoTreeSyncer) GetInfoByGlobalExitRoot(globalExitRoot common.Hash) (*l1infotreesync.L1InfoTreeLeaf, error)

GetInfoByGlobalExitRoot provides a mock function with given fields: globalExitRoot

func (*L1InfoTreeSyncer) GetL1InfoTreeMerkleProofFromIndexToRoot

func (_m *L1InfoTreeSyncer) GetL1InfoTreeMerkleProofFromIndexToRoot(ctx context.Context, index uint32, root common.Hash) (treetypes.Proof, error)

GetL1InfoTreeMerkleProofFromIndexToRoot provides a mock function with given fields: ctx, index, root

func (*L1InfoTreeSyncer) GetL1InfoTreeRootByIndex

func (_m *L1InfoTreeSyncer) GetL1InfoTreeRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)

GetL1InfoTreeRootByIndex provides a mock function with given fields: ctx, index

type L1InfoTreeSyncer_Expecter

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

func (*L1InfoTreeSyncer_Expecter) GetInfoByGlobalExitRoot

func (_e *L1InfoTreeSyncer_Expecter) GetInfoByGlobalExitRoot(globalExitRoot interface{}) *L1InfoTreeSyncer_GetInfoByGlobalExitRoot_Call

GetInfoByGlobalExitRoot is a helper method to define mock.On call

  • globalExitRoot common.Hash

func (*L1InfoTreeSyncer_Expecter) GetL1InfoTreeMerkleProofFromIndexToRoot

func (_e *L1InfoTreeSyncer_Expecter) GetL1InfoTreeMerkleProofFromIndexToRoot(ctx interface{}, index interface{}, root interface{}) *L1InfoTreeSyncer_GetL1InfoTreeMerkleProofFromIndexToRoot_Call

GetL1InfoTreeMerkleProofFromIndexToRoot is a helper method to define mock.On call

  • ctx context.Context
  • index uint32
  • root common.Hash

func (*L1InfoTreeSyncer_Expecter) GetL1InfoTreeRootByIndex

func (_e *L1InfoTreeSyncer_Expecter) GetL1InfoTreeRootByIndex(ctx interface{}, index interface{}) *L1InfoTreeSyncer_GetL1InfoTreeRootByIndex_Call

GetL1InfoTreeRootByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

type L1InfoTreeSyncer_GetInfoByGlobalExitRoot_Call

type L1InfoTreeSyncer_GetInfoByGlobalExitRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetInfoByGlobalExitRoot_Call) Return

func (*L1InfoTreeSyncer_GetInfoByGlobalExitRoot_Call) Run

func (*L1InfoTreeSyncer_GetInfoByGlobalExitRoot_Call) RunAndReturn

type L1InfoTreeSyncer_GetL1InfoTreeMerkleProofFromIndexToRoot_Call

type L1InfoTreeSyncer_GetL1InfoTreeMerkleProofFromIndexToRoot_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetL1InfoTreeMerkleProofFromIndexToRoot_Call) Return

func (*L1InfoTreeSyncer_GetL1InfoTreeMerkleProofFromIndexToRoot_Call) Run

func (*L1InfoTreeSyncer_GetL1InfoTreeMerkleProofFromIndexToRoot_Call) RunAndReturn

type L1InfoTreeSyncer_GetL1InfoTreeRootByIndex_Call

type L1InfoTreeSyncer_GetL1InfoTreeRootByIndex_Call struct {
	*mock.Call
}

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

func (*L1InfoTreeSyncer_GetL1InfoTreeRootByIndex_Call) Return

func (*L1InfoTreeSyncer_GetL1InfoTreeRootByIndex_Call) Run

func (*L1InfoTreeSyncer_GetL1InfoTreeRootByIndex_Call) RunAndReturn

type L2BridgeSyncer

type L2BridgeSyncer struct {
	mock.Mock
}

L2BridgeSyncer is an autogenerated mock type for the L2BridgeSyncer type

func NewL2BridgeSyncer

func NewL2BridgeSyncer(t interface {
	mock.TestingT
	Cleanup(func())
}) *L2BridgeSyncer

NewL2BridgeSyncer creates a new instance of L2BridgeSyncer. 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 (*L2BridgeSyncer) BlockFinality

func (_m *L2BridgeSyncer) BlockFinality() etherman.BlockNumberFinality

BlockFinality provides a mock function with given fields:

func (*L2BridgeSyncer) EXPECT

func (*L2BridgeSyncer) GetBlockByLER

func (_m *L2BridgeSyncer) GetBlockByLER(ctx context.Context, ler common.Hash) (uint64, error)

GetBlockByLER provides a mock function with given fields: ctx, ler

func (*L2BridgeSyncer) GetBridgesPublished

func (_m *L2BridgeSyncer) GetBridgesPublished(ctx context.Context, fromBlock uint64, toBlock uint64) ([]bridgesync.Bridge, error)

GetBridgesPublished provides a mock function with given fields: ctx, fromBlock, toBlock

func (*L2BridgeSyncer) GetClaims

func (_m *L2BridgeSyncer) GetClaims(ctx context.Context, fromBlock uint64, toBlock uint64) ([]bridgesync.Claim, error)

GetClaims provides a mock function with given fields: ctx, fromBlock, toBlock

func (*L2BridgeSyncer) GetExitRootByIndex

func (_m *L2BridgeSyncer) GetExitRootByIndex(ctx context.Context, index uint32) (treetypes.Root, error)

GetExitRootByIndex provides a mock function with given fields: ctx, index

func (*L2BridgeSyncer) GetLastProcessedBlock

func (_m *L2BridgeSyncer) GetLastProcessedBlock(ctx context.Context) (uint64, error)

GetLastProcessedBlock provides a mock function with given fields: ctx

func (*L2BridgeSyncer) OriginNetwork

func (_m *L2BridgeSyncer) OriginNetwork() uint32

OriginNetwork provides a mock function with given fields:

type L2BridgeSyncer_BlockFinality_Call

type L2BridgeSyncer_BlockFinality_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncer_BlockFinality_Call) Return

func (*L2BridgeSyncer_BlockFinality_Call) Run

func (*L2BridgeSyncer_BlockFinality_Call) RunAndReturn

type L2BridgeSyncer_Expecter

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

func (*L2BridgeSyncer_Expecter) BlockFinality

BlockFinality is a helper method to define mock.On call

func (*L2BridgeSyncer_Expecter) GetBlockByLER

func (_e *L2BridgeSyncer_Expecter) GetBlockByLER(ctx interface{}, ler interface{}) *L2BridgeSyncer_GetBlockByLER_Call

GetBlockByLER is a helper method to define mock.On call

  • ctx context.Context
  • ler common.Hash

func (*L2BridgeSyncer_Expecter) GetBridgesPublished

func (_e *L2BridgeSyncer_Expecter) GetBridgesPublished(ctx interface{}, fromBlock interface{}, toBlock interface{}) *L2BridgeSyncer_GetBridgesPublished_Call

GetBridgesPublished is a helper method to define mock.On call

  • ctx context.Context
  • fromBlock uint64
  • toBlock uint64

func (*L2BridgeSyncer_Expecter) GetClaims

func (_e *L2BridgeSyncer_Expecter) GetClaims(ctx interface{}, fromBlock interface{}, toBlock interface{}) *L2BridgeSyncer_GetClaims_Call

GetClaims is a helper method to define mock.On call

  • ctx context.Context
  • fromBlock uint64
  • toBlock uint64

func (*L2BridgeSyncer_Expecter) GetExitRootByIndex

func (_e *L2BridgeSyncer_Expecter) GetExitRootByIndex(ctx interface{}, index interface{}) *L2BridgeSyncer_GetExitRootByIndex_Call

GetExitRootByIndex is a helper method to define mock.On call

  • ctx context.Context
  • index uint32

func (*L2BridgeSyncer_Expecter) GetLastProcessedBlock

func (_e *L2BridgeSyncer_Expecter) GetLastProcessedBlock(ctx interface{}) *L2BridgeSyncer_GetLastProcessedBlock_Call

GetLastProcessedBlock is a helper method to define mock.On call

  • ctx context.Context

func (*L2BridgeSyncer_Expecter) OriginNetwork

OriginNetwork is a helper method to define mock.On call

type L2BridgeSyncer_GetBlockByLER_Call

type L2BridgeSyncer_GetBlockByLER_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncer_GetBlockByLER_Call) Return

func (*L2BridgeSyncer_GetBlockByLER_Call) Run

func (*L2BridgeSyncer_GetBlockByLER_Call) RunAndReturn

type L2BridgeSyncer_GetBridgesPublished_Call

type L2BridgeSyncer_GetBridgesPublished_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncer_GetBridgesPublished_Call) Return

func (*L2BridgeSyncer_GetBridgesPublished_Call) Run

func (*L2BridgeSyncer_GetBridgesPublished_Call) RunAndReturn

type L2BridgeSyncer_GetClaims_Call

type L2BridgeSyncer_GetClaims_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncer_GetClaims_Call) Return

func (*L2BridgeSyncer_GetClaims_Call) Run

func (_c *L2BridgeSyncer_GetClaims_Call) Run(run func(ctx context.Context, fromBlock uint64, toBlock uint64)) *L2BridgeSyncer_GetClaims_Call

func (*L2BridgeSyncer_GetClaims_Call) RunAndReturn

type L2BridgeSyncer_GetExitRootByIndex_Call

type L2BridgeSyncer_GetExitRootByIndex_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncer_GetExitRootByIndex_Call) Return

func (*L2BridgeSyncer_GetExitRootByIndex_Call) Run

func (*L2BridgeSyncer_GetExitRootByIndex_Call) RunAndReturn

type L2BridgeSyncer_GetLastProcessedBlock_Call

type L2BridgeSyncer_GetLastProcessedBlock_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncer_GetLastProcessedBlock_Call) Return

func (*L2BridgeSyncer_GetLastProcessedBlock_Call) Run

func (*L2BridgeSyncer_GetLastProcessedBlock_Call) RunAndReturn

type L2BridgeSyncer_OriginNetwork_Call

type L2BridgeSyncer_OriginNetwork_Call struct {
	*mock.Call
}

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

func (*L2BridgeSyncer_OriginNetwork_Call) Return

func (*L2BridgeSyncer_OriginNetwork_Call) Run

func (*L2BridgeSyncer_OriginNetwork_Call) RunAndReturn

type Logger

type Logger struct {
	mock.Mock
}

Logger is an autogenerated mock type for the Logger type

func NewLogger

func NewLogger(t interface {
	mock.TestingT
	Cleanup(func())
}) *Logger

NewLogger creates a new instance of Logger. 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 (*Logger) Debug

func (_m *Logger) Debug(args ...interface{})

Debug provides a mock function with given fields: args

func (*Logger) Debugf

func (_m *Logger) Debugf(format string, args ...interface{})

Debugf provides a mock function with given fields: format, args

func (*Logger) EXPECT

func (_m *Logger) EXPECT() *Logger_Expecter

func (*Logger) Error

func (_m *Logger) Error(args ...interface{})

Error provides a mock function with given fields: args

func (*Logger) Errorf

func (_m *Logger) Errorf(format string, args ...interface{})

Errorf provides a mock function with given fields: format, args

func (*Logger) Fatalf added in v0.5.0

func (_m *Logger) Fatalf(format string, args ...interface{})

Fatalf provides a mock function with given fields: format, args

func (*Logger) Info

func (_m *Logger) Info(args ...interface{})

Info provides a mock function with given fields: args

func (*Logger) Infof

func (_m *Logger) Infof(format string, args ...interface{})

Infof provides a mock function with given fields: format, args

func (*Logger) Warn

func (_m *Logger) Warn(args ...interface{})

Warn provides a mock function with given fields: args

func (*Logger) Warnf

func (_m *Logger) Warnf(format string, args ...interface{})

Warnf provides a mock function with given fields: format, args

type Logger_Debug_Call

type Logger_Debug_Call struct {
	*mock.Call
}

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

func (*Logger_Debug_Call) Return

func (_c *Logger_Debug_Call) Return() *Logger_Debug_Call

func (*Logger_Debug_Call) Run

func (_c *Logger_Debug_Call) Run(run func(args ...interface{})) *Logger_Debug_Call

func (*Logger_Debug_Call) RunAndReturn

func (_c *Logger_Debug_Call) RunAndReturn(run func(...interface{})) *Logger_Debug_Call

type Logger_Debugf_Call

type Logger_Debugf_Call struct {
	*mock.Call
}

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

func (*Logger_Debugf_Call) Return

func (_c *Logger_Debugf_Call) Return() *Logger_Debugf_Call

func (*Logger_Debugf_Call) Run

func (_c *Logger_Debugf_Call) Run(run func(format string, args ...interface{})) *Logger_Debugf_Call

func (*Logger_Debugf_Call) RunAndReturn

func (_c *Logger_Debugf_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Debugf_Call

type Logger_Error_Call

type Logger_Error_Call struct {
	*mock.Call
}

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

func (*Logger_Error_Call) Return

func (_c *Logger_Error_Call) Return() *Logger_Error_Call

func (*Logger_Error_Call) Run

func (_c *Logger_Error_Call) Run(run func(args ...interface{})) *Logger_Error_Call

func (*Logger_Error_Call) RunAndReturn

func (_c *Logger_Error_Call) RunAndReturn(run func(...interface{})) *Logger_Error_Call

type Logger_Errorf_Call

type Logger_Errorf_Call struct {
	*mock.Call
}

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

func (*Logger_Errorf_Call) Return

func (_c *Logger_Errorf_Call) Return() *Logger_Errorf_Call

func (*Logger_Errorf_Call) Run

func (_c *Logger_Errorf_Call) Run(run func(format string, args ...interface{})) *Logger_Errorf_Call

func (*Logger_Errorf_Call) RunAndReturn

func (_c *Logger_Errorf_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Errorf_Call

type Logger_Expecter

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

func (*Logger_Expecter) Debug

func (_e *Logger_Expecter) Debug(args ...interface{}) *Logger_Debug_Call

Debug is a helper method to define mock.On call

  • args ...interface{}

func (*Logger_Expecter) Debugf

func (_e *Logger_Expecter) Debugf(format interface{}, args ...interface{}) *Logger_Debugf_Call

Debugf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*Logger_Expecter) Error

func (_e *Logger_Expecter) Error(args ...interface{}) *Logger_Error_Call

Error is a helper method to define mock.On call

  • args ...interface{}

func (*Logger_Expecter) Errorf

func (_e *Logger_Expecter) Errorf(format interface{}, args ...interface{}) *Logger_Errorf_Call

Errorf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*Logger_Expecter) Fatalf added in v0.5.0

func (_e *Logger_Expecter) Fatalf(format interface{}, args ...interface{}) *Logger_Fatalf_Call

Fatalf is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*Logger_Expecter) Info

func (_e *Logger_Expecter) Info(args ...interface{}) *Logger_Info_Call

Info is a helper method to define mock.On call

  • args ...interface{}

func (*Logger_Expecter) Infof

func (_e *Logger_Expecter) Infof(format interface{}, args ...interface{}) *Logger_Infof_Call

Infof is a helper method to define mock.On call

  • format string
  • args ...interface{}

func (*Logger_Expecter) Warn

func (_e *Logger_Expecter) Warn(args ...interface{}) *Logger_Warn_Call

Warn is a helper method to define mock.On call

  • args ...interface{}

func (*Logger_Expecter) Warnf

func (_e *Logger_Expecter) Warnf(format interface{}, args ...interface{}) *Logger_Warnf_Call

Warnf is a helper method to define mock.On call

  • format string
  • args ...interface{}

type Logger_Fatalf_Call added in v0.5.0

type Logger_Fatalf_Call struct {
	*mock.Call
}

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

func (*Logger_Fatalf_Call) Return added in v0.5.0

func (_c *Logger_Fatalf_Call) Return() *Logger_Fatalf_Call

func (*Logger_Fatalf_Call) Run added in v0.5.0

func (_c *Logger_Fatalf_Call) Run(run func(format string, args ...interface{})) *Logger_Fatalf_Call

func (*Logger_Fatalf_Call) RunAndReturn added in v0.5.0

func (_c *Logger_Fatalf_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Fatalf_Call

type Logger_Info_Call

type Logger_Info_Call struct {
	*mock.Call
}

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

func (*Logger_Info_Call) Return

func (_c *Logger_Info_Call) Return() *Logger_Info_Call

func (*Logger_Info_Call) Run

func (_c *Logger_Info_Call) Run(run func(args ...interface{})) *Logger_Info_Call

func (*Logger_Info_Call) RunAndReturn

func (_c *Logger_Info_Call) RunAndReturn(run func(...interface{})) *Logger_Info_Call

type Logger_Infof_Call

type Logger_Infof_Call struct {
	*mock.Call
}

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

func (*Logger_Infof_Call) Return

func (_c *Logger_Infof_Call) Return() *Logger_Infof_Call

func (*Logger_Infof_Call) Run

func (_c *Logger_Infof_Call) Run(run func(format string, args ...interface{})) *Logger_Infof_Call

func (*Logger_Infof_Call) RunAndReturn

func (_c *Logger_Infof_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Infof_Call

type Logger_Warn_Call

type Logger_Warn_Call struct {
	*mock.Call
}

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

func (*Logger_Warn_Call) Return

func (_c *Logger_Warn_Call) Return() *Logger_Warn_Call

func (*Logger_Warn_Call) Run

func (_c *Logger_Warn_Call) Run(run func(args ...interface{})) *Logger_Warn_Call

func (*Logger_Warn_Call) RunAndReturn

func (_c *Logger_Warn_Call) RunAndReturn(run func(...interface{})) *Logger_Warn_Call

type Logger_Warnf_Call

type Logger_Warnf_Call struct {
	*mock.Call
}

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

func (*Logger_Warnf_Call) Return

func (_c *Logger_Warnf_Call) Return() *Logger_Warnf_Call

func (*Logger_Warnf_Call) Run

func (_c *Logger_Warnf_Call) Run(run func(format string, args ...interface{})) *Logger_Warnf_Call

func (*Logger_Warnf_Call) RunAndReturn

func (_c *Logger_Warnf_Call) RunAndReturn(run func(string, ...interface{})) *Logger_Warnf_Call

Jump to

Keyboard shortcuts

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