Documentation
¶
Index ¶
- type Ledger
- func (_mock *Ledger) Done() <-chan struct{}
- func (_m *Ledger) EXPECT() *Ledger_Expecter
- func (_mock *Ledger) Get(query *ledger.Query) ([]ledger.Value, error)
- func (_mock *Ledger) GetSingleValue(query *ledger.QuerySingleValue) (ledger.Value, error)
- func (_mock *Ledger) HasState(state ledger.State) bool
- func (_mock *Ledger) InitialState() ledger.State
- func (_mock *Ledger) Prove(query *ledger.Query) (ledger.Proof, error)
- func (_mock *Ledger) Ready() <-chan struct{}
- func (_mock *Ledger) Set(update *ledger.Update) (ledger.State, *ledger.TrieUpdate, error)
- type Ledger_Done_Call
- type Ledger_Expecter
- func (_e *Ledger_Expecter) Done() *Ledger_Done_Call
- func (_e *Ledger_Expecter) Get(query interface{}) *Ledger_Get_Call
- func (_e *Ledger_Expecter) GetSingleValue(query interface{}) *Ledger_GetSingleValue_Call
- func (_e *Ledger_Expecter) HasState(state interface{}) *Ledger_HasState_Call
- func (_e *Ledger_Expecter) InitialState() *Ledger_InitialState_Call
- func (_e *Ledger_Expecter) Prove(query interface{}) *Ledger_Prove_Call
- func (_e *Ledger_Expecter) Ready() *Ledger_Ready_Call
- func (_e *Ledger_Expecter) Set(update interface{}) *Ledger_Set_Call
- type Ledger_GetSingleValue_Call
- func (_c *Ledger_GetSingleValue_Call) Return(value ledger.Value, err error) *Ledger_GetSingleValue_Call
- func (_c *Ledger_GetSingleValue_Call) Run(run func(query *ledger.QuerySingleValue)) *Ledger_GetSingleValue_Call
- func (_c *Ledger_GetSingleValue_Call) RunAndReturn(run func(query *ledger.QuerySingleValue) (ledger.Value, error)) *Ledger_GetSingleValue_Call
- type Ledger_Get_Call
- type Ledger_HasState_Call
- type Ledger_InitialState_Call
- type Ledger_Prove_Call
- type Ledger_Ready_Call
- type Ledger_Set_Call
- func (_c *Ledger_Set_Call) Return(newState ledger.State, trieUpdate *ledger.TrieUpdate, err error) *Ledger_Set_Call
- func (_c *Ledger_Set_Call) Run(run func(update *ledger.Update)) *Ledger_Set_Call
- func (_c *Ledger_Set_Call) RunAndReturn(run func(update *ledger.Update) (ledger.State, *ledger.TrieUpdate, error)) *Ledger_Set_Call
- type Reporter
- type Reporter_Expecter
- type Reporter_Name_Call
- type Reporter_Report_Call
- func (_c *Reporter_Report_Call) Return(err error) *Reporter_Report_Call
- func (_c *Reporter_Report_Call) Run(run func(payloads []ledger.Payload, statecommitment ledger.State)) *Reporter_Report_Call
- func (_c *Reporter_Report_Call) RunAndReturn(run func(payloads []ledger.Payload, statecommitment ledger.State) error) *Reporter_Report_Call
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
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. The first argument is typically a *testing.T value.
func (*Ledger) Done ¶
func (_mock *Ledger) Done() <-chan struct{}
Done provides a mock function for the type Ledger
func (*Ledger) EXPECT ¶ added in v0.46.0
func (_m *Ledger) EXPECT() *Ledger_Expecter
func (*Ledger) GetSingleValue ¶ added in v0.26.2
GetSingleValue provides a mock function for the type Ledger
func (*Ledger) InitialState ¶
InitialState provides a mock function for the type Ledger
type Ledger_Done_Call ¶ added in v0.46.0
Ledger_Done_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Done'
func (*Ledger_Done_Call) Return ¶ added in v0.46.0
func (_c *Ledger_Done_Call) Return(valCh <-chan struct{}) *Ledger_Done_Call
func (*Ledger_Done_Call) Run ¶ added in v0.46.0
func (_c *Ledger_Done_Call) Run(run func()) *Ledger_Done_Call
func (*Ledger_Done_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Ledger_Done_Call) RunAndReturn(run func() <-chan struct{}) *Ledger_Done_Call
type Ledger_Expecter ¶ added in v0.46.0
type Ledger_Expecter struct {
// contains filtered or unexported fields
}
func (*Ledger_Expecter) Done ¶ added in v0.46.0
func (_e *Ledger_Expecter) Done() *Ledger_Done_Call
Done is a helper method to define mock.On call
func (*Ledger_Expecter) Get ¶ added in v0.46.0
func (_e *Ledger_Expecter) Get(query interface{}) *Ledger_Get_Call
Get is a helper method to define mock.On call
- query *ledger.Query
func (*Ledger_Expecter) GetSingleValue ¶ added in v0.46.0
func (_e *Ledger_Expecter) GetSingleValue(query interface{}) *Ledger_GetSingleValue_Call
GetSingleValue is a helper method to define mock.On call
- query *ledger.QuerySingleValue
func (*Ledger_Expecter) HasState ¶ added in v0.46.0
func (_e *Ledger_Expecter) HasState(state interface{}) *Ledger_HasState_Call
HasState is a helper method to define mock.On call
- state ledger.State
func (*Ledger_Expecter) InitialState ¶ added in v0.46.0
func (_e *Ledger_Expecter) InitialState() *Ledger_InitialState_Call
InitialState is a helper method to define mock.On call
func (*Ledger_Expecter) Prove ¶ added in v0.46.0
func (_e *Ledger_Expecter) Prove(query interface{}) *Ledger_Prove_Call
Prove is a helper method to define mock.On call
- query *ledger.Query
func (*Ledger_Expecter) Ready ¶ added in v0.46.0
func (_e *Ledger_Expecter) Ready() *Ledger_Ready_Call
Ready is a helper method to define mock.On call
func (*Ledger_Expecter) Set ¶ added in v0.46.0
func (_e *Ledger_Expecter) Set(update interface{}) *Ledger_Set_Call
Set is a helper method to define mock.On call
- update *ledger.Update
type Ledger_GetSingleValue_Call ¶ added in v0.46.0
Ledger_GetSingleValue_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSingleValue'
func (*Ledger_GetSingleValue_Call) Return ¶ added in v0.46.0
func (_c *Ledger_GetSingleValue_Call) Return(value ledger.Value, err error) *Ledger_GetSingleValue_Call
func (*Ledger_GetSingleValue_Call) Run ¶ added in v0.46.0
func (_c *Ledger_GetSingleValue_Call) Run(run func(query *ledger.QuerySingleValue)) *Ledger_GetSingleValue_Call
func (*Ledger_GetSingleValue_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Ledger_GetSingleValue_Call) RunAndReturn(run func(query *ledger.QuerySingleValue) (ledger.Value, error)) *Ledger_GetSingleValue_Call
type Ledger_Get_Call ¶ added in v0.46.0
Ledger_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'
func (*Ledger_Get_Call) Return ¶ added in v0.46.0
func (_c *Ledger_Get_Call) Return(values []ledger.Value, err error) *Ledger_Get_Call
func (*Ledger_Get_Call) Run ¶ added in v0.46.0
func (_c *Ledger_Get_Call) Run(run func(query *ledger.Query)) *Ledger_Get_Call
func (*Ledger_Get_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Ledger_Get_Call) RunAndReturn(run func(query *ledger.Query) ([]ledger.Value, error)) *Ledger_Get_Call
type Ledger_HasState_Call ¶ added in v0.46.0
Ledger_HasState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HasState'
func (*Ledger_HasState_Call) Return ¶ added in v0.46.0
func (_c *Ledger_HasState_Call) Return(b bool) *Ledger_HasState_Call
func (*Ledger_HasState_Call) Run ¶ added in v0.46.0
func (_c *Ledger_HasState_Call) Run(run func(state ledger.State)) *Ledger_HasState_Call
func (*Ledger_HasState_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Ledger_HasState_Call) RunAndReturn(run func(state ledger.State) bool) *Ledger_HasState_Call
type Ledger_InitialState_Call ¶ added in v0.46.0
Ledger_InitialState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitialState'
func (*Ledger_InitialState_Call) Return ¶ added in v0.46.0
func (_c *Ledger_InitialState_Call) Return(state ledger.State) *Ledger_InitialState_Call
func (*Ledger_InitialState_Call) Run ¶ added in v0.46.0
func (_c *Ledger_InitialState_Call) Run(run func()) *Ledger_InitialState_Call
func (*Ledger_InitialState_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Ledger_InitialState_Call) RunAndReturn(run func() ledger.State) *Ledger_InitialState_Call
type Ledger_Prove_Call ¶ added in v0.46.0
Ledger_Prove_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Prove'
func (*Ledger_Prove_Call) Return ¶ added in v0.46.0
func (_c *Ledger_Prove_Call) Return(proof ledger.Proof, err error) *Ledger_Prove_Call
func (*Ledger_Prove_Call) Run ¶ added in v0.46.0
func (_c *Ledger_Prove_Call) Run(run func(query *ledger.Query)) *Ledger_Prove_Call
func (*Ledger_Prove_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Ledger_Prove_Call) RunAndReturn(run func(query *ledger.Query) (ledger.Proof, error)) *Ledger_Prove_Call
type Ledger_Ready_Call ¶ added in v0.46.0
Ledger_Ready_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Ready'
func (*Ledger_Ready_Call) Return ¶ added in v0.46.0
func (_c *Ledger_Ready_Call) Return(valCh <-chan struct{}) *Ledger_Ready_Call
func (*Ledger_Ready_Call) Run ¶ added in v0.46.0
func (_c *Ledger_Ready_Call) Run(run func()) *Ledger_Ready_Call
func (*Ledger_Ready_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Ledger_Ready_Call) RunAndReturn(run func() <-chan struct{}) *Ledger_Ready_Call
type Ledger_Set_Call ¶ added in v0.46.0
Ledger_Set_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Set'
func (*Ledger_Set_Call) Return ¶ added in v0.46.0
func (_c *Ledger_Set_Call) Return(newState ledger.State, trieUpdate *ledger.TrieUpdate, err error) *Ledger_Set_Call
func (*Ledger_Set_Call) Run ¶ added in v0.46.0
func (_c *Ledger_Set_Call) Run(run func(update *ledger.Update)) *Ledger_Set_Call
func (*Ledger_Set_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Ledger_Set_Call) RunAndReturn(run func(update *ledger.Update) (ledger.State, *ledger.TrieUpdate, error)) *Ledger_Set_Call
type Reporter ¶
Reporter is an autogenerated mock type for the Reporter type
func NewReporter ¶ added in v0.26.1
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. The first argument is typically a *testing.T value.
func (*Reporter) EXPECT ¶ added in v0.46.0
func (_m *Reporter) EXPECT() *Reporter_Expecter
type Reporter_Expecter ¶ added in v0.46.0
type Reporter_Expecter struct {
// contains filtered or unexported fields
}
func (*Reporter_Expecter) Name ¶ added in v0.46.0
func (_e *Reporter_Expecter) Name() *Reporter_Name_Call
Name is a helper method to define mock.On call
func (*Reporter_Expecter) Report ¶ added in v0.46.0
func (_e *Reporter_Expecter) Report(payloads interface{}, statecommitment interface{}) *Reporter_Report_Call
Report is a helper method to define mock.On call
- payloads []ledger.Payload
- statecommitment ledger.State
type Reporter_Name_Call ¶ added in v0.46.0
Reporter_Name_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Name'
func (*Reporter_Name_Call) Return ¶ added in v0.46.0
func (_c *Reporter_Name_Call) Return(s string) *Reporter_Name_Call
func (*Reporter_Name_Call) Run ¶ added in v0.46.0
func (_c *Reporter_Name_Call) Run(run func()) *Reporter_Name_Call
func (*Reporter_Name_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Reporter_Name_Call) RunAndReturn(run func() string) *Reporter_Name_Call
type Reporter_Report_Call ¶ added in v0.46.0
Reporter_Report_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Report'
func (*Reporter_Report_Call) Return ¶ added in v0.46.0
func (_c *Reporter_Report_Call) Return(err error) *Reporter_Report_Call
func (*Reporter_Report_Call) Run ¶ added in v0.46.0
func (_c *Reporter_Report_Call) Run(run func(payloads []ledger.Payload, statecommitment ledger.State)) *Reporter_Report_Call
func (*Reporter_Report_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Reporter_Report_Call) RunAndReturn(run func(payloads []ledger.Payload, statecommitment ledger.State) error) *Reporter_Report_Call