mocks

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Indexer

type Indexer struct {
	mock.Mock
}

Indexer is an autogenerated mock type for the Indexer type

func NewMockIndexer

func NewMockIndexer(
	t *testing.T,
	id string,
	version indexer.Version,
	types []string,
	prepare,
	complete,
	index chan mock.Arguments,
) (remoteIndexer indexer.Indexer, mockIndexer *Indexer)

NewMockIndexer returns a do-nothing test indexer with specified elements.

  • id -- GetID return
  • version -- GetVersion return
  • types -- GetTypes return
  • prepare -- write PrepareReindex args to chan when called
  • complete -- write CompleteReindex args to chan when called
  • index -- write Index args to chan when called

func (*Indexer) CompleteReindex

func (_m *Indexer) CompleteReindex(from indexer.Version, to indexer.Version) error

CompleteReindex provides a mock function with given fields: from, to

func (*Indexer) GetID

func (_m *Indexer) GetID() string

GetID provides a mock function with given fields:

func (*Indexer) GetTypes

func (_m *Indexer) GetTypes() []string

GetTypes provides a mock function with given fields:

func (*Indexer) GetVersion

func (_m *Indexer) GetVersion() indexer.Version

GetVersion provides a mock function with given fields:

func (*Indexer) Index

func (_m *Indexer) Index(networkID string, states types.StatesByID) (types.StateErrors, error)

Index provides a mock function with given fields: networkID, states

func (*Indexer) PrepareReindex

func (_m *Indexer) PrepareReindex(from indexer.Version, to indexer.Version, isFirstReindex bool) error

PrepareReindex provides a mock function with given fields: from, to, isFirstReindex

func (*Indexer) String

func (_m *Indexer) String() string

Jump to

Keyboard shortcuts

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