mock

package
v0.46.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. 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) Get

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

Get provides a mock function for the type Ledger

func (*Ledger) GetSingleValue added in v0.26.2

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

GetSingleValue provides a mock function for the type Ledger

func (*Ledger) HasState added in v0.26.16

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

HasState provides a mock function for the type Ledger

func (*Ledger) InitialState

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

InitialState provides a mock function for the type Ledger

func (*Ledger) Prove

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

Prove provides a mock function for the type Ledger

func (*Ledger) Ready

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

Ready provides a mock function for the type Ledger

func (*Ledger) Set

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

Set provides a mock function for the type Ledger

type Ledger_Done_Call added in v0.46.0

type Ledger_Done_Call struct {
	*mock.Call
}

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

type Ledger_GetSingleValue_Call struct {
	*mock.Call
}

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 (*Ledger_GetSingleValue_Call) Run added in v0.46.0

func (*Ledger_GetSingleValue_Call) RunAndReturn added in v0.46.0

type Ledger_Get_Call added in v0.46.0

type Ledger_Get_Call struct {
	*mock.Call
}

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

type Ledger_HasState_Call struct {
	*mock.Call
}

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 (*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

type Ledger_InitialState_Call struct {
	*mock.Call
}

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 (*Ledger_InitialState_Call) Run added in v0.46.0

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

type Ledger_Prove_Call struct {
	*mock.Call
}

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

type Ledger_Ready_Call struct {
	*mock.Call
}

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

type Ledger_Set_Call struct {
	*mock.Call
}

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

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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Reporter) EXPECT added in v0.46.0

func (_m *Reporter) EXPECT() *Reporter_Expecter

func (*Reporter) Name added in v0.23.2

func (_mock *Reporter) Name() string

Name provides a mock function for the type Reporter

func (*Reporter) Report

func (_mock *Reporter) Report(payloads []ledger.Payload, statecommitment ledger.State) error

Report provides a mock function for the type Reporter

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

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

type Reporter_Name_Call struct {
	*mock.Call
}

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 (*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

type Reporter_Report_Call struct {
	*mock.Call
}

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 (*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

Jump to

Keyboard shortcuts

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