mocks

package
v0.0.0-...-2c4dd60 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TxStore

type TxStore struct {
	mock.Mock
}

TxStore is an autogenerated mock type for the TxStore type

func NewTxStore

func NewTxStore(t mockConstructorTestingTNewTxStore) *TxStore

NewTxStore creates a new instance of TxStore. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TxStore) AddTx

func (_m *TxStore) AddTx(tx pb.Tx) error

AddTx provides a mock function with given fields: tx

func (*TxStore) AllTxsForStateURI

func (_m *TxStore) AllTxsForStateURI(stateURI string, fromTxID state.Version) (tree.TxIterator, error)

AllTxsForStateURI provides a mock function with given fields: stateURI, fromTxID

func (*TxStore) AllValidTxsForStateURIOrdered

func (_m *TxStore) AllValidTxsForStateURIOrdered(stateURI string, fromTxID state.Version) tree.TxIterator

AllValidTxsForStateURIOrdered provides a mock function with given fields: stateURI, fromTxID

func (*TxStore) Close

func (_m *TxStore) Close()

Close provides a mock function with given fields:

func (*TxStore) DebugPrint

func (_m *TxStore) DebugPrint()

DebugPrint provides a mock function with given fields:

func (*TxStore) FetchTx

func (_m *TxStore) FetchTx(stateURI string, txID state.Version) (pb.Tx, error)

FetchTx provides a mock function with given fields: stateURI, txID

func (*TxStore) IsStateURIWithData

func (_m *TxStore) IsStateURIWithData(stateURI string) (bool, error)

IsStateURIWithData provides a mock function with given fields: stateURI

func (*TxStore) Leaves

func (_m *TxStore) Leaves(stateURI string) ([]state.Version, error)

Leaves provides a mock function with given fields: stateURI

func (*TxStore) MarkLeaf

func (_m *TxStore) MarkLeaf(stateURI string, txID state.Version) error

MarkLeaf provides a mock function with given fields: stateURI, txID

func (*TxStore) OnNewStateURIWithData

func (_m *TxStore) OnNewStateURIWithData(fn tree.NewStateURIWithDataCallback)

OnNewStateURIWithData provides a mock function with given fields: fn

func (*TxStore) RemoveTx

func (_m *TxStore) RemoveTx(stateURI string, txID state.Version) error

RemoveTx provides a mock function with given fields: stateURI, txID

func (*TxStore) Start

func (_m *TxStore) Start() error

Start provides a mock function with given fields:

func (*TxStore) StateURIsWithData

func (_m *TxStore) StateURIsWithData() (types.Set[string], error)

StateURIsWithData provides a mock function with given fields:

func (*TxStore) TxExists

func (_m *TxStore) TxExists(stateURI string, txID state.Version) (bool, error)

TxExists provides a mock function with given fields: stateURI, txID

func (*TxStore) UnmarkLeaf

func (_m *TxStore) UnmarkLeaf(stateURI string, txID state.Version) error

UnmarkLeaf provides a mock function with given fields: stateURI, txID

Jump to

Keyboard shortcuts

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