mocks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 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 BlockIndexer

type BlockIndexer struct {
	mock.Mock
}

BlockIndexer is an autogenerated mock type for the BlockIndexer type

func NewBlockIndexer

func NewBlockIndexer(t interface {
	mock.TestingT
	Cleanup(func())
}) *BlockIndexer

NewBlockIndexer creates a new instance of BlockIndexer. 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 (*BlockIndexer) GetRetainHeight added in v1.0.0

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

GetRetainHeight provides a mock function with no fields

func (*BlockIndexer) Has

func (_m *BlockIndexer) Has(height int64) (bool, error)

Has provides a mock function with given fields: height

func (*BlockIndexer) Index

func (_m *BlockIndexer) Index(events types.EventDataNewBlockEvents) error

Index provides a mock function with given fields: events

func (*BlockIndexer) Prune added in v1.0.0

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

Prune provides a mock function with given fields: retainHeight

func (*BlockIndexer) Search

func (_m *BlockIndexer) Search(ctx context.Context, q *query.Query) ([]int64, error)

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

func (*BlockIndexer) SetLogger added in v0.38.0

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

SetLogger provides a mock function with given fields: l

func (*BlockIndexer) SetRetainHeight added in v1.0.0

func (_m *BlockIndexer) 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