mock

package
v0.35.0-crescendo-prev... Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: AGPL-3.0 Imports: 2 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 mockConstructorTestingTNewLedger) *Ledger

NewLedger creates a new instance of Ledger. It also registers a testing 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) HasState added in v0.26.16

func (_m *Ledger) HasState(state ledger.State) bool

HasState provides a mock function with given fields: state

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 mockConstructorTestingTNewMigration) *Migration

NewMigration creates a new instance of Migration. It also registers a testing 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 mockConstructorTestingTNewReporter) *Reporter

NewReporter creates a new instance of Reporter. It also registers a testing 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, statecommitment ledger.State) error

Report provides a mock function with given fields: payloads, statecommitment

Jump to

Keyboard shortcuts

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