mocks

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *Client

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

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetOffChainData

func (_m *Client) GetOffChainData(ctx context.Context, hash common.Hash) ([]byte, error)

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

func (*Client) GetStatus added in v0.0.8

func (_m *Client) GetStatus(ctx context.Context) (*types.DACStatus, error)

GetStatus provides a mock function with given fields: ctx

func (*Client) ListOffChainData added in v0.0.7

func (_m *Client) ListOffChainData(ctx context.Context, hashes []common.Hash) (map[common.Hash][]byte, error)

ListOffChainData provides a mock function with given fields: ctx, hashes

func (*Client) SignSequence

func (_m *Client) SignSequence(ctx context.Context, signedSequence types.SignedSequence) ([]byte, error)

SignSequence provides a mock function with given fields: ctx, signedSequence

func (*Client) SignSequenceBanana added in v0.0.8

func (_m *Client) SignSequenceBanana(ctx context.Context, signedSequence types.SignedSequenceBanana) ([]byte, error)

SignSequenceBanana provides a mock function with given fields: ctx, signedSequence

type ClientFactory

type ClientFactory struct {
	mock.Mock
}

ClientFactory is an autogenerated mock type for the Factory type

func NewClientFactory

func NewClientFactory(t interface {
	mock.TestingT
	Cleanup(func())
}) *ClientFactory

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

func (_m *ClientFactory) EXPECT() *ClientFactory_Expecter

func (*ClientFactory) New

func (_m *ClientFactory) New(url string) client.Client

New provides a mock function with given fields: url

type ClientFactory_Expecter

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

func (*ClientFactory_Expecter) New

func (_e *ClientFactory_Expecter) New(url interface{}) *ClientFactory_New_Call

New is a helper method to define mock.On call

  • url string

type ClientFactory_New_Call

type ClientFactory_New_Call struct {
	*mock.Call
}

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

func (*ClientFactory_New_Call) Return

func (*ClientFactory_New_Call) Run

func (_c *ClientFactory_New_Call) Run(run func(url string)) *ClientFactory_New_Call

func (*ClientFactory_New_Call) RunAndReturn

func (_c *ClientFactory_New_Call) RunAndReturn(run func(string) client.Client) *ClientFactory_New_Call

type Client_Expecter

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

func (*Client_Expecter) GetOffChainData

func (_e *Client_Expecter) GetOffChainData(ctx interface{}, hash interface{}) *Client_GetOffChainData_Call

GetOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • hash common.Hash

func (*Client_Expecter) GetStatus added in v0.0.8

func (_e *Client_Expecter) GetStatus(ctx interface{}) *Client_GetStatus_Call

GetStatus is a helper method to define mock.On call

  • ctx context.Context

func (*Client_Expecter) ListOffChainData added in v0.0.7

func (_e *Client_Expecter) ListOffChainData(ctx interface{}, hashes interface{}) *Client_ListOffChainData_Call

ListOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • hashes []common.Hash

func (*Client_Expecter) SignSequence

func (_e *Client_Expecter) SignSequence(ctx interface{}, signedSequence interface{}) *Client_SignSequence_Call

SignSequence is a helper method to define mock.On call

  • ctx context.Context
  • signedSequence types.SignedSequence

func (*Client_Expecter) SignSequenceBanana added in v0.0.8

func (_e *Client_Expecter) SignSequenceBanana(ctx interface{}, signedSequence interface{}) *Client_SignSequenceBanana_Call

SignSequenceBanana is a helper method to define mock.On call

  • ctx context.Context
  • signedSequence types.SignedSequenceBanana

type Client_GetOffChainData_Call

type Client_GetOffChainData_Call struct {
	*mock.Call
}

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

func (*Client_GetOffChainData_Call) Return

func (*Client_GetOffChainData_Call) Run

func (*Client_GetOffChainData_Call) RunAndReturn

type Client_GetStatus_Call added in v0.0.8

type Client_GetStatus_Call struct {
	*mock.Call
}

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

func (*Client_GetStatus_Call) Return added in v0.0.8

func (*Client_GetStatus_Call) Run added in v0.0.8

func (*Client_GetStatus_Call) RunAndReturn added in v0.0.8

type Client_ListOffChainData_Call added in v0.0.7

type Client_ListOffChainData_Call struct {
	*mock.Call
}

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

func (*Client_ListOffChainData_Call) Return added in v0.0.7

func (*Client_ListOffChainData_Call) Run added in v0.0.7

func (*Client_ListOffChainData_Call) RunAndReturn added in v0.0.7

type Client_SignSequenceBanana_Call added in v0.0.8

type Client_SignSequenceBanana_Call struct {
	*mock.Call
}

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

func (*Client_SignSequenceBanana_Call) Return added in v0.0.8

func (*Client_SignSequenceBanana_Call) Run added in v0.0.8

func (*Client_SignSequenceBanana_Call) RunAndReturn added in v0.0.8

type Client_SignSequence_Call

type Client_SignSequence_Call struct {
	*mock.Call
}

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

func (*Client_SignSequence_Call) Return

func (*Client_SignSequence_Call) Run

func (_c *Client_SignSequence_Call) Run(run func(ctx context.Context, signedSequence types.SignedSequence)) *Client_SignSequence_Call

func (*Client_SignSequence_Call) RunAndReturn

type DB

type DB struct {
	mock.Mock
}

DB is an autogenerated mock type for the DB type

func NewDB

func NewDB(t interface {
	mock.TestingT
	Cleanup(func())
}) *DB

NewDB creates a new instance of DB. 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 (*DB) CountOffchainData added in v0.0.8

func (_m *DB) CountOffchainData(ctx context.Context) (uint64, error)

CountOffchainData provides a mock function with given fields: ctx

func (*DB) DeleteUnresolvedBatchKeys added in v0.0.6

func (_m *DB) DeleteUnresolvedBatchKeys(ctx context.Context, bks []types.BatchKey) error

DeleteUnresolvedBatchKeys provides a mock function with given fields: ctx, bks

func (*DB) DetectOffchainDataGaps added in v0.0.8

func (_m *DB) DetectOffchainDataGaps(ctx context.Context) (map[uint64]uint64, error)

DetectOffchainDataGaps provides a mock function with given fields: ctx

func (*DB) EXPECT

func (_m *DB) EXPECT() *DB_Expecter

func (*DB) GetLastProcessedBlock

func (_m *DB) GetLastProcessedBlock(ctx context.Context, task string) (uint64, error)

GetLastProcessedBlock provides a mock function with given fields: ctx, task

func (*DB) GetOffChainData

func (_m *DB) GetOffChainData(ctx context.Context, key common.Hash) (*types.OffChainData, error)

GetOffChainData provides a mock function with given fields: ctx, key

func (*DB) GetUnresolvedBatchKeys added in v0.0.6

func (_m *DB) GetUnresolvedBatchKeys(ctx context.Context, limit uint) ([]types.BatchKey, error)

GetUnresolvedBatchKeys provides a mock function with given fields: ctx, limit

func (*DB) ListOffChainData added in v0.0.7

func (_m *DB) ListOffChainData(ctx context.Context, keys []common.Hash) ([]types.OffChainData, error)

ListOffChainData provides a mock function with given fields: ctx, keys

func (*DB) StoreLastProcessedBlock

func (_m *DB) StoreLastProcessedBlock(ctx context.Context, block uint64, task string) error

StoreLastProcessedBlock provides a mock function with given fields: ctx, block, task

func (*DB) StoreOffChainData

func (_m *DB) StoreOffChainData(ctx context.Context, od []types.OffChainData) error

StoreOffChainData provides a mock function with given fields: ctx, od

func (*DB) StoreUnresolvedBatchKeys added in v0.0.6

func (_m *DB) StoreUnresolvedBatchKeys(ctx context.Context, bks []types.BatchKey) error

StoreUnresolvedBatchKeys provides a mock function with given fields: ctx, bks

type DB_CountOffchainData_Call added in v0.0.8

type DB_CountOffchainData_Call struct {
	*mock.Call
}

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

func (*DB_CountOffchainData_Call) Return added in v0.0.8

func (*DB_CountOffchainData_Call) Run added in v0.0.8

func (*DB_CountOffchainData_Call) RunAndReturn added in v0.0.8

type DB_DeleteUnresolvedBatchKeys_Call added in v0.0.6

type DB_DeleteUnresolvedBatchKeys_Call struct {
	*mock.Call
}

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

func (*DB_DeleteUnresolvedBatchKeys_Call) Return added in v0.0.6

func (*DB_DeleteUnresolvedBatchKeys_Call) Run added in v0.0.6

func (*DB_DeleteUnresolvedBatchKeys_Call) RunAndReturn added in v0.0.6

type DB_DetectOffchainDataGaps_Call added in v0.0.8

type DB_DetectOffchainDataGaps_Call struct {
	*mock.Call
}

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

func (*DB_DetectOffchainDataGaps_Call) Return added in v0.0.8

func (*DB_DetectOffchainDataGaps_Call) Run added in v0.0.8

func (*DB_DetectOffchainDataGaps_Call) RunAndReturn added in v0.0.8

type DB_Expecter

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

func (*DB_Expecter) CountOffchainData added in v0.0.8

func (_e *DB_Expecter) CountOffchainData(ctx interface{}) *DB_CountOffchainData_Call

CountOffchainData is a helper method to define mock.On call

  • ctx context.Context

func (*DB_Expecter) DeleteUnresolvedBatchKeys added in v0.0.6

func (_e *DB_Expecter) DeleteUnresolvedBatchKeys(ctx interface{}, bks interface{}) *DB_DeleteUnresolvedBatchKeys_Call

DeleteUnresolvedBatchKeys is a helper method to define mock.On call

  • ctx context.Context
  • bks []types.BatchKey

func (*DB_Expecter) DetectOffchainDataGaps added in v0.0.8

func (_e *DB_Expecter) DetectOffchainDataGaps(ctx interface{}) *DB_DetectOffchainDataGaps_Call

DetectOffchainDataGaps is a helper method to define mock.On call

  • ctx context.Context

func (*DB_Expecter) GetLastProcessedBlock

func (_e *DB_Expecter) GetLastProcessedBlock(ctx interface{}, task interface{}) *DB_GetLastProcessedBlock_Call

GetLastProcessedBlock is a helper method to define mock.On call

  • ctx context.Context
  • task string

func (*DB_Expecter) GetOffChainData

func (_e *DB_Expecter) GetOffChainData(ctx interface{}, key interface{}) *DB_GetOffChainData_Call

GetOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • key common.Hash

func (*DB_Expecter) GetUnresolvedBatchKeys added in v0.0.6

func (_e *DB_Expecter) GetUnresolvedBatchKeys(ctx interface{}, limit interface{}) *DB_GetUnresolvedBatchKeys_Call

GetUnresolvedBatchKeys is a helper method to define mock.On call

  • ctx context.Context
  • limit uint

func (*DB_Expecter) ListOffChainData added in v0.0.7

func (_e *DB_Expecter) ListOffChainData(ctx interface{}, keys interface{}) *DB_ListOffChainData_Call

ListOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • keys []common.Hash

func (*DB_Expecter) StoreLastProcessedBlock

func (_e *DB_Expecter) StoreLastProcessedBlock(ctx interface{}, block interface{}, task interface{}) *DB_StoreLastProcessedBlock_Call

StoreLastProcessedBlock is a helper method to define mock.On call

  • ctx context.Context
  • block uint64
  • task string

func (*DB_Expecter) StoreOffChainData

func (_e *DB_Expecter) StoreOffChainData(ctx interface{}, od interface{}) *DB_StoreOffChainData_Call

StoreOffChainData is a helper method to define mock.On call

  • ctx context.Context
  • od []types.OffChainData

func (*DB_Expecter) StoreUnresolvedBatchKeys added in v0.0.6

func (_e *DB_Expecter) StoreUnresolvedBatchKeys(ctx interface{}, bks interface{}) *DB_StoreUnresolvedBatchKeys_Call

StoreUnresolvedBatchKeys is a helper method to define mock.On call

  • ctx context.Context
  • bks []types.BatchKey

type DB_GetLastProcessedBlock_Call

type DB_GetLastProcessedBlock_Call struct {
	*mock.Call
}

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

func (*DB_GetLastProcessedBlock_Call) Return

func (*DB_GetLastProcessedBlock_Call) Run

func (*DB_GetLastProcessedBlock_Call) RunAndReturn

type DB_GetOffChainData_Call

type DB_GetOffChainData_Call struct {
	*mock.Call
}

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

func (*DB_GetOffChainData_Call) Return

func (*DB_GetOffChainData_Call) Run

func (*DB_GetOffChainData_Call) RunAndReturn

type DB_GetUnresolvedBatchKeys_Call added in v0.0.6

type DB_GetUnresolvedBatchKeys_Call struct {
	*mock.Call
}

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

func (*DB_GetUnresolvedBatchKeys_Call) Return added in v0.0.6

func (*DB_GetUnresolvedBatchKeys_Call) Run added in v0.0.6

func (*DB_GetUnresolvedBatchKeys_Call) RunAndReturn added in v0.0.6

type DB_ListOffChainData_Call added in v0.0.7

type DB_ListOffChainData_Call struct {
	*mock.Call
}

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

func (*DB_ListOffChainData_Call) Return added in v0.0.7

func (*DB_ListOffChainData_Call) Run added in v0.0.7

func (*DB_ListOffChainData_Call) RunAndReturn added in v0.0.7

type DB_StoreLastProcessedBlock_Call

type DB_StoreLastProcessedBlock_Call struct {
	*mock.Call
}

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

func (*DB_StoreLastProcessedBlock_Call) Return

func (*DB_StoreLastProcessedBlock_Call) Run

func (*DB_StoreLastProcessedBlock_Call) RunAndReturn

type DB_StoreOffChainData_Call

type DB_StoreOffChainData_Call struct {
	*mock.Call
}

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

func (*DB_StoreOffChainData_Call) Return

func (*DB_StoreOffChainData_Call) Run

func (*DB_StoreOffChainData_Call) RunAndReturn

type DB_StoreUnresolvedBatchKeys_Call added in v0.0.6

type DB_StoreUnresolvedBatchKeys_Call struct {
	*mock.Call
}

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

func (*DB_StoreUnresolvedBatchKeys_Call) Return added in v0.0.6

func (*DB_StoreUnresolvedBatchKeys_Call) Run added in v0.0.6

func (*DB_StoreUnresolvedBatchKeys_Call) RunAndReturn added in v0.0.6

type Etherman

type Etherman struct {
	mock.Mock
}

Etherman is an autogenerated mock type for the Etherman type

func NewEtherman

func NewEtherman(t interface {
	mock.TestingT
	Cleanup(func())
}) *Etherman

NewEtherman creates a new instance of Etherman. 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 (*Etherman) BlockByNumber added in v0.0.8

func (_m *Etherman) BlockByNumber(ctx context.Context, number *big.Int) (*types.Block, error)

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

func (*Etherman) CodeAt added in v0.0.8

func (_m *Etherman) CodeAt(ctx context.Context, account common.Address, blockNumber *big.Int) ([]byte, error)

CodeAt provides a mock function with given fields: ctx, account, blockNumber

func (*Etherman) EXPECT

func (_m *Etherman) EXPECT() *Etherman_Expecter

func (*Etherman) FilterSequenceBatches

func (_m *Etherman) FilterSequenceBatches(opts *bind.FilterOpts, numBatch []uint64) (*polygonvalidiumetrog.PolygonvalidiumetrogSequenceBatchesIterator, error)

FilterSequenceBatches provides a mock function with given fields: opts, numBatch

func (*Etherman) GetCurrentDataCommittee

func (_m *Etherman) GetCurrentDataCommittee() (*etherman.DataCommittee, error)

GetCurrentDataCommittee provides a mock function with given fields:

func (*Etherman) GetCurrentDataCommitteeMembers

func (_m *Etherman) GetCurrentDataCommitteeMembers() ([]etherman.DataCommitteeMember, error)

GetCurrentDataCommitteeMembers provides a mock function with given fields:

func (*Etherman) GetTx

func (_m *Etherman) GetTx(ctx context.Context, txHash common.Hash) (*types.Transaction, bool, error)

GetTx provides a mock function with given fields: ctx, txHash

func (*Etherman) HeaderByNumber

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

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

func (*Etherman) TrustedSequencer

func (_m *Etherman) TrustedSequencer(ctx context.Context) (common.Address, error)

TrustedSequencer provides a mock function with given fields: ctx

func (*Etherman) TrustedSequencerURL

func (_m *Etherman) TrustedSequencerURL(ctx context.Context) (string, error)

TrustedSequencerURL provides a mock function with given fields: ctx

func (*Etherman) WatchSetTrustedSequencer

WatchSetTrustedSequencer provides a mock function with given fields: ctx, events

func (*Etherman) WatchSetTrustedSequencerURL

WatchSetTrustedSequencerURL provides a mock function with given fields: ctx, events

type Etherman_BlockByNumber_Call added in v0.0.8

type Etherman_BlockByNumber_Call struct {
	*mock.Call
}

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

func (*Etherman_BlockByNumber_Call) Return added in v0.0.8

func (*Etherman_BlockByNumber_Call) Run added in v0.0.8

func (*Etherman_BlockByNumber_Call) RunAndReturn added in v0.0.8

type Etherman_CodeAt_Call added in v0.0.8

type Etherman_CodeAt_Call struct {
	*mock.Call
}

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

func (*Etherman_CodeAt_Call) Return added in v0.0.8

func (_c *Etherman_CodeAt_Call) Return(_a0 []byte, _a1 error) *Etherman_CodeAt_Call

func (*Etherman_CodeAt_Call) Run added in v0.0.8

func (_c *Etherman_CodeAt_Call) Run(run func(ctx context.Context, account common.Address, blockNumber *big.Int)) *Etherman_CodeAt_Call

func (*Etherman_CodeAt_Call) RunAndReturn added in v0.0.8

func (_c *Etherman_CodeAt_Call) RunAndReturn(run func(context.Context, common.Address, *big.Int) ([]byte, error)) *Etherman_CodeAt_Call

type Etherman_Expecter

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

func (*Etherman_Expecter) BlockByNumber added in v0.0.8

func (_e *Etherman_Expecter) BlockByNumber(ctx interface{}, number interface{}) *Etherman_BlockByNumber_Call

BlockByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*Etherman_Expecter) CodeAt added in v0.0.8

func (_e *Etherman_Expecter) CodeAt(ctx interface{}, account interface{}, blockNumber interface{}) *Etherman_CodeAt_Call

CodeAt is a helper method to define mock.On call

  • ctx context.Context
  • account common.Address
  • blockNumber *big.Int

func (*Etherman_Expecter) FilterSequenceBatches

func (_e *Etherman_Expecter) FilterSequenceBatches(opts interface{}, numBatch interface{}) *Etherman_FilterSequenceBatches_Call

FilterSequenceBatches is a helper method to define mock.On call

  • opts *bind.FilterOpts
  • numBatch []uint64

func (*Etherman_Expecter) GetCurrentDataCommittee

func (_e *Etherman_Expecter) GetCurrentDataCommittee() *Etherman_GetCurrentDataCommittee_Call

GetCurrentDataCommittee is a helper method to define mock.On call

func (*Etherman_Expecter) GetCurrentDataCommitteeMembers

func (_e *Etherman_Expecter) GetCurrentDataCommitteeMembers() *Etherman_GetCurrentDataCommitteeMembers_Call

GetCurrentDataCommitteeMembers is a helper method to define mock.On call

func (*Etherman_Expecter) GetTx

func (_e *Etherman_Expecter) GetTx(ctx interface{}, txHash interface{}) *Etherman_GetTx_Call

GetTx is a helper method to define mock.On call

  • ctx context.Context
  • txHash common.Hash

func (*Etherman_Expecter) HeaderByNumber

func (_e *Etherman_Expecter) HeaderByNumber(ctx interface{}, number interface{}) *Etherman_HeaderByNumber_Call

HeaderByNumber is a helper method to define mock.On call

  • ctx context.Context
  • number *big.Int

func (*Etherman_Expecter) TrustedSequencer

func (_e *Etherman_Expecter) TrustedSequencer(ctx interface{}) *Etherman_TrustedSequencer_Call

TrustedSequencer is a helper method to define mock.On call

  • ctx context.Context

func (*Etherman_Expecter) TrustedSequencerURL

func (_e *Etherman_Expecter) TrustedSequencerURL(ctx interface{}) *Etherman_TrustedSequencerURL_Call

TrustedSequencerURL is a helper method to define mock.On call

  • ctx context.Context

func (*Etherman_Expecter) WatchSetTrustedSequencer

func (_e *Etherman_Expecter) WatchSetTrustedSequencer(ctx interface{}, events interface{}) *Etherman_WatchSetTrustedSequencer_Call

WatchSetTrustedSequencer is a helper method to define mock.On call

  • ctx context.Context
  • events chan *polygonvalidiumetrog.PolygonvalidiumetrogSetTrustedSequencer

func (*Etherman_Expecter) WatchSetTrustedSequencerURL

func (_e *Etherman_Expecter) WatchSetTrustedSequencerURL(ctx interface{}, events interface{}) *Etherman_WatchSetTrustedSequencerURL_Call

WatchSetTrustedSequencerURL is a helper method to define mock.On call

  • ctx context.Context
  • events chan *polygonvalidiumetrog.PolygonvalidiumetrogSetTrustedSequencerURL

type Etherman_FilterSequenceBatches_Call

type Etherman_FilterSequenceBatches_Call struct {
	*mock.Call
}

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

func (*Etherman_FilterSequenceBatches_Call) Run

type Etherman_GetCurrentDataCommitteeMembers_Call

type Etherman_GetCurrentDataCommitteeMembers_Call struct {
	*mock.Call
}

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

func (*Etherman_GetCurrentDataCommitteeMembers_Call) Return

func (*Etherman_GetCurrentDataCommitteeMembers_Call) Run

func (*Etherman_GetCurrentDataCommitteeMembers_Call) RunAndReturn

type Etherman_GetCurrentDataCommittee_Call

type Etherman_GetCurrentDataCommittee_Call struct {
	*mock.Call
}

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

func (*Etherman_GetCurrentDataCommittee_Call) Return

func (*Etherman_GetCurrentDataCommittee_Call) Run

func (*Etherman_GetCurrentDataCommittee_Call) RunAndReturn

type Etherman_GetTx_Call

type Etherman_GetTx_Call struct {
	*mock.Call
}

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

func (*Etherman_GetTx_Call) Return

func (_c *Etherman_GetTx_Call) Return(_a0 *types.Transaction, _a1 bool, _a2 error) *Etherman_GetTx_Call

func (*Etherman_GetTx_Call) Run

func (_c *Etherman_GetTx_Call) Run(run func(ctx context.Context, txHash common.Hash)) *Etherman_GetTx_Call

func (*Etherman_GetTx_Call) RunAndReturn

type Etherman_HeaderByNumber_Call

type Etherman_HeaderByNumber_Call struct {
	*mock.Call
}

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

func (*Etherman_HeaderByNumber_Call) Return

func (*Etherman_HeaderByNumber_Call) Run

func (*Etherman_HeaderByNumber_Call) RunAndReturn

type Etherman_TrustedSequencerURL_Call

type Etherman_TrustedSequencerURL_Call struct {
	*mock.Call
}

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

func (*Etherman_TrustedSequencerURL_Call) Return

func (*Etherman_TrustedSequencerURL_Call) Run

func (*Etherman_TrustedSequencerURL_Call) RunAndReturn

type Etherman_TrustedSequencer_Call

type Etherman_TrustedSequencer_Call struct {
	*mock.Call
}

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

func (*Etherman_TrustedSequencer_Call) Return

func (*Etherman_TrustedSequencer_Call) Run

func (*Etherman_TrustedSequencer_Call) RunAndReturn

type Etherman_WatchSetTrustedSequencerURL_Call

type Etherman_WatchSetTrustedSequencerURL_Call struct {
	*mock.Call
}

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

func (*Etherman_WatchSetTrustedSequencerURL_Call) Return

type Etherman_WatchSetTrustedSequencer_Call

type Etherman_WatchSetTrustedSequencer_Call struct {
	*mock.Call
}

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

func (*Etherman_WatchSetTrustedSequencer_Call) Return

type GapsDetector added in v0.0.8

type GapsDetector struct {
	mock.Mock
}

GapsDetector is an autogenerated mock type for the GapsDetector type

func NewGapsDetector added in v0.0.8

func NewGapsDetector(t interface {
	mock.TestingT
	Cleanup(func())
}) *GapsDetector

NewGapsDetector creates a new instance of GapsDetector. 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 (*GapsDetector) EXPECT added in v0.0.8

func (_m *GapsDetector) EXPECT() *GapsDetector_Expecter

func (*GapsDetector) Gaps added in v0.0.8

func (_m *GapsDetector) Gaps() map[uint64]uint64

Gaps provides a mock function with given fields:

type GapsDetector_Expecter added in v0.0.8

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

func (*GapsDetector_Expecter) Gaps added in v0.0.8

Gaps is a helper method to define mock.On call

type GapsDetector_Gaps_Call added in v0.0.8

type GapsDetector_Gaps_Call struct {
	*mock.Call
}

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

func (*GapsDetector_Gaps_Call) Return added in v0.0.8

func (*GapsDetector_Gaps_Call) Run added in v0.0.8

func (_c *GapsDetector_Gaps_Call) Run(run func()) *GapsDetector_Gaps_Call

func (*GapsDetector_Gaps_Call) RunAndReturn added in v0.0.8

func (_c *GapsDetector_Gaps_Call) RunAndReturn(run func() map[uint64]uint64) *GapsDetector_Gaps_Call

type SequencerTracker

type SequencerTracker struct {
	mock.Mock
}

SequencerTracker is an autogenerated mock type for the SequencerTracker type

func NewSequencerTracker

func NewSequencerTracker(t interface {
	mock.TestingT
	Cleanup(func())
}) *SequencerTracker

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

func (*SequencerTracker) GetSequenceBatch

func (_m *SequencerTracker) GetSequenceBatch(ctx context.Context, batchNum uint64) (*sequencer.SeqBatch, error)

GetSequenceBatch provides a mock function with given fields: ctx, batchNum

type SequencerTracker_Expecter

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

func (*SequencerTracker_Expecter) GetSequenceBatch

func (_e *SequencerTracker_Expecter) GetSequenceBatch(ctx interface{}, batchNum interface{}) *SequencerTracker_GetSequenceBatch_Call

GetSequenceBatch is a helper method to define mock.On call

  • ctx context.Context
  • batchNum uint64

type SequencerTracker_GetSequenceBatch_Call

type SequencerTracker_GetSequenceBatch_Call struct {
	*mock.Call
}

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

func (*SequencerTracker_GetSequenceBatch_Call) Return

func (*SequencerTracker_GetSequenceBatch_Call) Run

func (*SequencerTracker_GetSequenceBatch_Call) RunAndReturn

type Subscription

type Subscription struct {
	mock.Mock
}

Subscription is an autogenerated mock type for the Subscription type

func NewSubscription

func NewSubscription(t interface {
	mock.TestingT
	Cleanup(func())
}) *Subscription

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

func (_m *Subscription) EXPECT() *Subscription_Expecter

func (*Subscription) Err

func (_m *Subscription) Err() <-chan error

Err provides a mock function with given fields:

func (*Subscription) Unsubscribe

func (_m *Subscription) Unsubscribe()

Unsubscribe provides a mock function with given fields:

type Subscription_Err_Call

type Subscription_Err_Call struct {
	*mock.Call
}

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

func (*Subscription_Err_Call) Return

func (_c *Subscription_Err_Call) Return(_a0 <-chan error) *Subscription_Err_Call

func (*Subscription_Err_Call) Run

func (_c *Subscription_Err_Call) Run(run func()) *Subscription_Err_Call

func (*Subscription_Err_Call) RunAndReturn

func (_c *Subscription_Err_Call) RunAndReturn(run func() <-chan error) *Subscription_Err_Call

type Subscription_Expecter

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

func (*Subscription_Expecter) Err

Err is a helper method to define mock.On call

func (*Subscription_Expecter) Unsubscribe

Unsubscribe is a helper method to define mock.On call

type Subscription_Unsubscribe_Call

type Subscription_Unsubscribe_Call struct {
	*mock.Call
}

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

func (*Subscription_Unsubscribe_Call) Return

func (*Subscription_Unsubscribe_Call) Run

func (*Subscription_Unsubscribe_Call) RunAndReturn

func (_c *Subscription_Unsubscribe_Call) RunAndReturn(run func()) *Subscription_Unsubscribe_Call

type Tx

type Tx struct {
	mock.Mock
}

Tx is an autogenerated mock type for the Tx type

func NewTx

func NewTx(t interface {
	mock.TestingT
	Cleanup(func())
}) *Tx

NewTx creates a new instance of Tx. 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 (*Tx) Commit

func (_m *Tx) Commit() error

Commit provides a mock function with given fields:

func (*Tx) EXPECT

func (_m *Tx) EXPECT() *Tx_Expecter

func (*Tx) ExecContext

func (_m *Tx) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)

ExecContext provides a mock function with given fields: ctx, query, args

func (*Tx) QueryContext

func (_m *Tx) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)

QueryContext provides a mock function with given fields: ctx, query, args

func (*Tx) QueryRowxContext

func (_m *Tx) QueryRowxContext(ctx context.Context, query string, args ...interface{}) *sqlx.Row

QueryRowxContext provides a mock function with given fields: ctx, query, args

func (*Tx) QueryxContext

func (_m *Tx) QueryxContext(ctx context.Context, query string, args ...interface{}) (*sqlx.Rows, error)

QueryxContext provides a mock function with given fields: ctx, query, args

func (*Tx) Rollback

func (_m *Tx) Rollback() error

Rollback provides a mock function with given fields:

type Tx_Commit_Call

type Tx_Commit_Call struct {
	*mock.Call
}

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

func (*Tx_Commit_Call) Return

func (_c *Tx_Commit_Call) Return(_a0 error) *Tx_Commit_Call

func (*Tx_Commit_Call) Run

func (_c *Tx_Commit_Call) Run(run func()) *Tx_Commit_Call

func (*Tx_Commit_Call) RunAndReturn

func (_c *Tx_Commit_Call) RunAndReturn(run func() error) *Tx_Commit_Call

type Tx_ExecContext_Call

type Tx_ExecContext_Call struct {
	*mock.Call
}

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

func (*Tx_ExecContext_Call) Return

func (_c *Tx_ExecContext_Call) Return(_a0 sql.Result, _a1 error) *Tx_ExecContext_Call

func (*Tx_ExecContext_Call) Run

func (_c *Tx_ExecContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_ExecContext_Call

func (*Tx_ExecContext_Call) RunAndReturn

func (_c *Tx_ExecContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (sql.Result, error)) *Tx_ExecContext_Call

type Tx_Expecter

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

func (*Tx_Expecter) Commit

func (_e *Tx_Expecter) Commit() *Tx_Commit_Call

Commit is a helper method to define mock.On call

func (*Tx_Expecter) ExecContext

func (_e *Tx_Expecter) ExecContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_ExecContext_Call

ExecContext is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Tx_Expecter) QueryContext

func (_e *Tx_Expecter) QueryContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryContext_Call

QueryContext is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Tx_Expecter) QueryRowxContext

func (_e *Tx_Expecter) QueryRowxContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryRowxContext_Call

QueryRowxContext is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Tx_Expecter) QueryxContext

func (_e *Tx_Expecter) QueryxContext(ctx interface{}, query interface{}, args ...interface{}) *Tx_QueryxContext_Call

QueryxContext is a helper method to define mock.On call

  • ctx context.Context
  • query string
  • args ...interface{}

func (*Tx_Expecter) Rollback

func (_e *Tx_Expecter) Rollback() *Tx_Rollback_Call

Rollback is a helper method to define mock.On call

type Tx_QueryContext_Call

type Tx_QueryContext_Call struct {
	*mock.Call
}

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

func (*Tx_QueryContext_Call) Return

func (_c *Tx_QueryContext_Call) Return(_a0 *sql.Rows, _a1 error) *Tx_QueryContext_Call

func (*Tx_QueryContext_Call) Run

func (_c *Tx_QueryContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryContext_Call

func (*Tx_QueryContext_Call) RunAndReturn

func (_c *Tx_QueryContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sql.Rows, error)) *Tx_QueryContext_Call

type Tx_QueryRowxContext_Call

type Tx_QueryRowxContext_Call struct {
	*mock.Call
}

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

func (*Tx_QueryRowxContext_Call) Return

func (*Tx_QueryRowxContext_Call) Run

func (_c *Tx_QueryRowxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryRowxContext_Call

func (*Tx_QueryRowxContext_Call) RunAndReturn

func (_c *Tx_QueryRowxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) *sqlx.Row) *Tx_QueryRowxContext_Call

type Tx_QueryxContext_Call

type Tx_QueryxContext_Call struct {
	*mock.Call
}

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

func (*Tx_QueryxContext_Call) Return

func (*Tx_QueryxContext_Call) Run

func (_c *Tx_QueryxContext_Call) Run(run func(ctx context.Context, query string, args ...interface{})) *Tx_QueryxContext_Call

func (*Tx_QueryxContext_Call) RunAndReturn

func (_c *Tx_QueryxContext_Call) RunAndReturn(run func(context.Context, string, ...interface{}) (*sqlx.Rows, error)) *Tx_QueryxContext_Call

type Tx_Rollback_Call

type Tx_Rollback_Call struct {
	*mock.Call
}

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

func (*Tx_Rollback_Call) Return

func (_c *Tx_Rollback_Call) Return(_a0 error) *Tx_Rollback_Call

func (*Tx_Rollback_Call) Run

func (_c *Tx_Rollback_Call) Run(run func()) *Tx_Rollback_Call

func (*Tx_Rollback_Call) RunAndReturn

func (_c *Tx_Rollback_Call) RunAndReturn(run func() error) *Tx_Rollback_Call

Jump to

Keyboard shortcuts

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