Documentation ¶
Index ¶
- type Ledger
- func (_m *Ledger) Done() <-chan struct{}
- func (_m *Ledger) Get(query *ledger.Query) ([]ledger.Value, error)
- func (_m *Ledger) GetSingleValue(query *ledger.QuerySingleValue) (ledger.Value, error)
- func (_m *Ledger) InitialState() ledger.State
- func (_m *Ledger) Prove(query *ledger.Query) (ledger.Proof, error)
- func (_m *Ledger) Ready() <-chan struct{}
- func (_m *Ledger) Set(update *ledger.Update) (ledger.State, *ledger.TrieUpdate, error)
- type Migration
- type NewLedgerT
- type NewMigrationT
- type NewReporterT
- type Reporter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ledger ¶
Ledger is an autogenerated mock type for the Ledger type
func NewLedger ¶ added in v0.26.1
func NewLedger(t NewLedgerT) *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) GetSingleValue ¶ added in v0.26.2
GetSingleValue provides a mock function with given fields: query
func (*Ledger) InitialState ¶
InitialState provides a mock function with given fields:
type Migration ¶ added in v0.26.1
Migration is an autogenerated mock type for the Migration type
func NewMigration ¶ added in v0.26.1
func NewMigration(t NewMigrationT) *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.
type NewLedgerT ¶ added in v0.27.0
type NewMigrationT ¶ added in v0.27.0
type NewReporterT ¶ added in v0.27.0
type Reporter ¶
Reporter is an autogenerated mock type for the Reporter type
func NewReporter ¶ added in v0.26.1
func NewReporter(t NewReporterT) *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.