mocks

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 5 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

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

Jump to

Keyboard shortcuts

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