mock

package
v0.26.6 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ledger

type Ledger struct {
	mock.Mock
}

Ledger is an autogenerated mock type for the Ledger type

func NewLedger added in v0.26.1

func NewLedger(t testing.TB) *Ledger

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

func (*Ledger) Done

func (_m *Ledger) Done() <-chan struct{}

Done provides a mock function with given fields:

func (*Ledger) Get

func (_m *Ledger) Get(query *ledger.Query) ([]ledger.Value, error)

Get provides a mock function with given fields: query

func (*Ledger) GetSingleValue added in v0.26.2

func (_m *Ledger) GetSingleValue(query *ledger.QuerySingleValue) (ledger.Value, error)

GetSingleValue provides a mock function with given fields: query

func (*Ledger) InitialState

func (_m *Ledger) InitialState() ledger.State

InitialState provides a mock function with given fields:

func (*Ledger) Prove

func (_m *Ledger) Prove(query *ledger.Query) (ledger.Proof, error)

Prove provides a mock function with given fields: query

func (*Ledger) Ready

func (_m *Ledger) Ready() <-chan struct{}

Ready provides a mock function with given fields:

func (*Ledger) Set

func (_m *Ledger) Set(update *ledger.Update) (ledger.State, *ledger.TrieUpdate, error)

Set provides a mock function with given fields: update

type Migration added in v0.26.1

type Migration struct {
	mock.Mock
}

Migration is an autogenerated mock type for the Migration type

func NewMigration added in v0.26.1

func NewMigration(t testing.TB) *Migration

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

func (*Migration) Execute added in v0.26.1

func (_m *Migration) Execute(payloads []ledger.Payload) ([]ledger.Payload, error)

Execute provides a mock function with given fields: payloads

type Reporter

type Reporter struct {
	mock.Mock
}

Reporter is an autogenerated mock type for the Reporter type

func NewReporter added in v0.26.1

func NewReporter(t testing.TB) *Reporter

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

func (*Reporter) Name added in v0.23.2

func (_m *Reporter) Name() string

Name provides a mock function with given fields:

func (*Reporter) Report

func (_m *Reporter) Report(payloads []ledger.Payload) error

Report provides a mock function with given fields: payloads

Jump to

Keyboard shortcuts

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