mocks

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2025 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 DvsRequestIndexer

type DvsRequestIndexer struct {
	mock.Mock
}

DvsRequestIndexer is an autogenerated mock type for the DvsRequestIndexer type

func NewDvsRequestIndexer

func NewDvsRequestIndexer(t interface {
	mock.TestingT
	Cleanup(func())
}) *DvsRequestIndexer

NewDvsRequestIndexer creates a new instance of DvsRequestIndexer. 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 (*DvsRequestIndexer) AddBatch

func (_m *DvsRequestIndexer) AddBatch(b *requestindex.Batch) error

AddBatch provides a mock function with given fields: b

func (*DvsRequestIndexer) Get

func (_m *DvsRequestIndexer) Get(hash []byte) (*types.DVSRequestResult, error)

Get provides a mock function with given fields: hash

func (*DvsRequestIndexer) Index

func (_m *DvsRequestIndexer) Index(result *types.DVSRequestResult) error

Index provides a mock function with given fields: result

func (*DvsRequestIndexer) Search

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

func (*DvsRequestIndexer) SetLogger

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