mocks

package
v0.0.0-...-3979f71 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexerDb

type IndexerDb struct {
	mock.Mock
}

IndexerDb is an autogenerated mock type for the IndexerDb type

func NewIndexerDb

func NewIndexerDb(t mockConstructorTestingTNewIndexerDb) *IndexerDb

NewIndexerDb creates a new instance of IndexerDb. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IndexerDb) AddBlock

func (_m *IndexerDb) AddBlock(block *types.ValidatedBlock) error

AddBlock provides a mock function with given fields: block

func (*IndexerDb) AppLocalState

func (_m *IndexerDb) AppLocalState(ctx context.Context, filter idb.ApplicationQuery) (<-chan idb.AppLocalStateRow, uint64)

AppLocalState provides a mock function with given fields: ctx, filter

func (*IndexerDb) ApplicationBoxes

func (_m *IndexerDb) ApplicationBoxes(ctx context.Context, filter idb.ApplicationBoxQuery) (<-chan idb.ApplicationBoxRow, uint64)

ApplicationBoxes provides a mock function with given fields: ctx, filter

func (*IndexerDb) Applications

func (_m *IndexerDb) Applications(ctx context.Context, filter idb.ApplicationQuery) (<-chan idb.ApplicationRow, uint64)

Applications provides a mock function with given fields: ctx, filter

func (*IndexerDb) AssetBalances

func (_m *IndexerDb) AssetBalances(ctx context.Context, abq idb.AssetBalanceQuery) (<-chan idb.AssetBalanceRow, uint64)

AssetBalances provides a mock function with given fields: ctx, abq

func (*IndexerDb) Assets

func (_m *IndexerDb) Assets(ctx context.Context, filter idb.AssetsQuery) (<-chan idb.AssetRow, uint64)

Assets provides a mock function with given fields: ctx, filter

func (*IndexerDb) Close

func (_m *IndexerDb) Close()

Close provides a mock function with given fields:

func (*IndexerDb) DeleteTransactions

func (_m *IndexerDb) DeleteTransactions(ctx context.Context, keep uint64) error

DeleteTransactions provides a mock function with given fields: ctx, keep

func (*IndexerDb) GetAccounts

func (_m *IndexerDb) GetAccounts(ctx context.Context, opts idb.AccountQueryOptions) (<-chan idb.AccountRow, uint64)

GetAccounts provides a mock function with given fields: ctx, opts

func (*IndexerDb) GetBlock

func (_m *IndexerDb) GetBlock(ctx context.Context, round uint64, options idb.GetBlockOptions) (v2types.BlockHeader, []idb.TxnRow, error)

GetBlock provides a mock function with given fields: ctx, round, options

func (*IndexerDb) GetNetworkState

func (_m *IndexerDb) GetNetworkState() (idb.NetworkState, error)

GetNetworkState provides a mock function with given fields:

func (*IndexerDb) GetNextRoundToAccount

func (_m *IndexerDb) GetNextRoundToAccount() (uint64, error)

GetNextRoundToAccount provides a mock function with given fields:

func (*IndexerDb) GetSpecialAccounts

func (_m *IndexerDb) GetSpecialAccounts(ctx context.Context) (types.SpecialAddresses, error)

GetSpecialAccounts provides a mock function with given fields: ctx

func (*IndexerDb) Health

func (_m *IndexerDb) Health(ctx context.Context) (idb.Health, error)

Health provides a mock function with given fields: ctx

func (*IndexerDb) LoadGenesis

func (_m *IndexerDb) LoadGenesis(genesis v2types.Genesis) error

LoadGenesis provides a mock function with given fields: genesis

func (*IndexerDb) SetNetworkState

func (_m *IndexerDb) SetNetworkState(genesis v2types.Digest) error

SetNetworkState provides a mock function with given fields: genesis

func (*IndexerDb) Transactions

func (_m *IndexerDb) Transactions(ctx context.Context, tf idb.TransactionFilter) (<-chan idb.TxnRow, uint64)

Transactions provides a mock function with given fields: ctx, tf

Jump to

Keyboard shortcuts

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