mocks

package
v100.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 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 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) (*v1.TxResult, error)

Get provides a mock function with given fields: hash

func (*TxIndexer) GetRetainHeight

func (_m *TxIndexer) GetRetainHeight() (int64, error)

GetRetainHeight provides a mock function with given fields:

func (*TxIndexer) Index

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

Index provides a mock function with given fields: result

func (*TxIndexer) Prune

func (_m *TxIndexer) Prune(retainHeight int64) (int64, int64, error)

Prune provides a mock function with given fields: retainHeight

func (*TxIndexer) Search

func (_m *TxIndexer) Search(ctx context.Context, q *query.Query, pagSettings txindex.Pagination) ([]*v1.TxResult, int, error)

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

func (*TxIndexer) SetLogger

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

SetLogger provides a mock function with given fields: l

func (*TxIndexer) SetRetainHeight

func (_m *TxIndexer) SetRetainHeight(retainHeight int64) error

SetRetainHeight provides a mock function with given fields: retainHeight

Jump to

Keyboard shortcuts

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