mocks

package
v38.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxIndexer

type TxIndexer struct {
	mock.Mock
}

TxIndexer is an autogenerated mock type for the TxIndexer type

func NewTxIndexer

func NewTxIndexer(t mockConstructorTestingTNewTxIndexer) *TxIndexer

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

func (*TxIndexer) AddBatch

func (_m *TxIndexer) AddBatch(b *txindex.Batch) error

AddBatch provides a mock function with given fields: b

func (*TxIndexer) Get

func (_m *TxIndexer) Get(hash []byte) (*types.TxResult, error)

Get provides a mock function with given fields: hash

func (*TxIndexer) Index

func (_m *TxIndexer) Index(result *types.TxResult) error

Index provides a mock function with given fields: result

func (*TxIndexer) Search

func (_m *TxIndexer) Search(ctx context.Context, q *query.Query) ([]*types.TxResult, error)

Search provides a mock function with given fields: ctx, q

func (*TxIndexer) SetLogger

func (_m *TxIndexer) SetLogger(l log.Logger)

SetLogger provides a mock function with given fields: l

Jump to

Keyboard shortcuts

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