mock

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 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

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

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

GetSingleValue provides a mock function with given fields: query

func (*Ledger) HasState

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

type Migration struct {
	mock.Mock
}

Migration is an autogenerated mock type for the Migration type

func NewMigration

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

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

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

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