Documentation
¶
Index ¶
- type MutableState
- func (_mock *MutableState) AtBlockID(blockID flow.Identifier) cluster.Snapshot
- func (_m *MutableState) EXPECT() *MutableState_Expecter
- func (_mock *MutableState) Extend(proposal *cluster0.Proposal) error
- func (_mock *MutableState) Final() cluster.Snapshot
- func (_mock *MutableState) Params() cluster.Params
- type MutableState_AtBlockID_Call
- func (_c *MutableState_AtBlockID_Call) Return(snapshot cluster.Snapshot) *MutableState_AtBlockID_Call
- func (_c *MutableState_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *MutableState_AtBlockID_Call
- func (_c *MutableState_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) cluster.Snapshot) *MutableState_AtBlockID_Call
- type MutableState_Expecter
- func (_e *MutableState_Expecter) AtBlockID(blockID interface{}) *MutableState_AtBlockID_Call
- func (_e *MutableState_Expecter) Extend(proposal interface{}) *MutableState_Extend_Call
- func (_e *MutableState_Expecter) Final() *MutableState_Final_Call
- func (_e *MutableState_Expecter) Params() *MutableState_Params_Call
- type MutableState_Extend_Call
- func (_c *MutableState_Extend_Call) Return(err error) *MutableState_Extend_Call
- func (_c *MutableState_Extend_Call) Run(run func(proposal *cluster0.Proposal)) *MutableState_Extend_Call
- func (_c *MutableState_Extend_Call) RunAndReturn(run func(proposal *cluster0.Proposal) error) *MutableState_Extend_Call
- type MutableState_Final_Call
- type MutableState_Params_Call
- type Params
- type Params_ChainID_Call
- type Params_Expecter
- type Snapshot
- type Snapshot_Collection_Call
- type Snapshot_Expecter
- type Snapshot_Head_Call
- type Snapshot_Pending_Call
- type State
- type State_AtBlockID_Call
- type State_Expecter
- type State_Final_Call
- type State_Params_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutableState ¶ added in v0.14.0
MutableState is an autogenerated mock type for the MutableState type
func NewMutableState ¶ added in v0.26.1
func NewMutableState(t interface {
mock.TestingT
Cleanup(func())
}) *MutableState
NewMutableState creates a new instance of MutableState. 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 (*MutableState) AtBlockID ¶ added in v0.14.0
func (_mock *MutableState) AtBlockID(blockID flow.Identifier) cluster.Snapshot
AtBlockID provides a mock function for the type MutableState
func (*MutableState) EXPECT ¶ added in v0.46.0
func (_m *MutableState) EXPECT() *MutableState_Expecter
func (*MutableState) Extend ¶ added in v0.14.0
func (_mock *MutableState) Extend(proposal *cluster0.Proposal) error
Extend provides a mock function for the type MutableState
func (*MutableState) Final ¶ added in v0.14.0
func (_mock *MutableState) Final() cluster.Snapshot
Final provides a mock function for the type MutableState
func (*MutableState) Params ¶ added in v0.14.0
func (_mock *MutableState) Params() cluster.Params
Params provides a mock function for the type MutableState
type MutableState_AtBlockID_Call ¶ added in v0.46.0
MutableState_AtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtBlockID'
func (*MutableState_AtBlockID_Call) Return ¶ added in v0.46.0
func (_c *MutableState_AtBlockID_Call) Return(snapshot cluster.Snapshot) *MutableState_AtBlockID_Call
func (*MutableState_AtBlockID_Call) Run ¶ added in v0.46.0
func (_c *MutableState_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *MutableState_AtBlockID_Call
func (*MutableState_AtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *MutableState_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) cluster.Snapshot) *MutableState_AtBlockID_Call
type MutableState_Expecter ¶ added in v0.46.0
type MutableState_Expecter struct {
// contains filtered or unexported fields
}
func (*MutableState_Expecter) AtBlockID ¶ added in v0.46.0
func (_e *MutableState_Expecter) AtBlockID(blockID interface{}) *MutableState_AtBlockID_Call
AtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
func (*MutableState_Expecter) Extend ¶ added in v0.46.0
func (_e *MutableState_Expecter) Extend(proposal interface{}) *MutableState_Extend_Call
Extend is a helper method to define mock.On call
- proposal *cluster0.Proposal
func (*MutableState_Expecter) Final ¶ added in v0.46.0
func (_e *MutableState_Expecter) Final() *MutableState_Final_Call
Final is a helper method to define mock.On call
func (*MutableState_Expecter) Params ¶ added in v0.46.0
func (_e *MutableState_Expecter) Params() *MutableState_Params_Call
Params is a helper method to define mock.On call
type MutableState_Extend_Call ¶ added in v0.46.0
MutableState_Extend_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Extend'
func (*MutableState_Extend_Call) Return ¶ added in v0.46.0
func (_c *MutableState_Extend_Call) Return(err error) *MutableState_Extend_Call
func (*MutableState_Extend_Call) Run ¶ added in v0.46.0
func (_c *MutableState_Extend_Call) Run(run func(proposal *cluster0.Proposal)) *MutableState_Extend_Call
func (*MutableState_Extend_Call) RunAndReturn ¶ added in v0.46.0
func (_c *MutableState_Extend_Call) RunAndReturn(run func(proposal *cluster0.Proposal) error) *MutableState_Extend_Call
type MutableState_Final_Call ¶ added in v0.46.0
MutableState_Final_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Final'
func (*MutableState_Final_Call) Return ¶ added in v0.46.0
func (_c *MutableState_Final_Call) Return(snapshot cluster.Snapshot) *MutableState_Final_Call
func (*MutableState_Final_Call) Run ¶ added in v0.46.0
func (_c *MutableState_Final_Call) Run(run func()) *MutableState_Final_Call
func (*MutableState_Final_Call) RunAndReturn ¶ added in v0.46.0
func (_c *MutableState_Final_Call) RunAndReturn(run func() cluster.Snapshot) *MutableState_Final_Call
type MutableState_Params_Call ¶ added in v0.46.0
MutableState_Params_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Params'
func (*MutableState_Params_Call) Return ¶ added in v0.46.0
func (_c *MutableState_Params_Call) Return(params cluster.Params) *MutableState_Params_Call
func (*MutableState_Params_Call) Run ¶ added in v0.46.0
func (_c *MutableState_Params_Call) Run(run func()) *MutableState_Params_Call
func (*MutableState_Params_Call) RunAndReturn ¶ added in v0.46.0
func (_c *MutableState_Params_Call) RunAndReturn(run func() cluster.Params) *MutableState_Params_Call
type Params ¶ added in v0.9.6
Params is an autogenerated mock type for the Params type
func NewParams ¶ added in v0.26.1
NewParams creates a new instance of Params. 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 (*Params) EXPECT ¶ added in v0.46.0
func (_m *Params) EXPECT() *Params_Expecter
type Params_ChainID_Call ¶ added in v0.46.0
Params_ChainID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ChainID'
func (*Params_ChainID_Call) Return ¶ added in v0.46.0
func (_c *Params_ChainID_Call) Return(chainID flow.ChainID) *Params_ChainID_Call
func (*Params_ChainID_Call) Run ¶ added in v0.46.0
func (_c *Params_ChainID_Call) Run(run func()) *Params_ChainID_Call
func (*Params_ChainID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Params_ChainID_Call) RunAndReturn(run func() flow.ChainID) *Params_ChainID_Call
type Params_Expecter ¶ added in v0.46.0
type Params_Expecter struct {
// contains filtered or unexported fields
}
func (*Params_Expecter) ChainID ¶ added in v0.46.0
func (_e *Params_Expecter) ChainID() *Params_ChainID_Call
ChainID is a helper method to define mock.On call
type Snapshot ¶
Snapshot is an autogenerated mock type for the Snapshot type
func NewSnapshot ¶ added in v0.26.1
NewSnapshot creates a new instance of Snapshot. 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 (*Snapshot) Collection ¶
func (_mock *Snapshot) Collection() (*flow.Collection, error)
Collection provides a mock function for the type Snapshot
func (*Snapshot) EXPECT ¶ added in v0.46.0
func (_m *Snapshot) EXPECT() *Snapshot_Expecter
type Snapshot_Collection_Call ¶ added in v0.46.0
Snapshot_Collection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Collection'
func (*Snapshot_Collection_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Collection_Call) Return(collection *flow.Collection, err error) *Snapshot_Collection_Call
func (*Snapshot_Collection_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Collection_Call) Run(run func()) *Snapshot_Collection_Call
func (*Snapshot_Collection_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Collection_Call) RunAndReturn(run func() (*flow.Collection, error)) *Snapshot_Collection_Call
type Snapshot_Expecter ¶ added in v0.46.0
type Snapshot_Expecter struct {
// contains filtered or unexported fields
}
func (*Snapshot_Expecter) Collection ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Collection() *Snapshot_Collection_Call
Collection is a helper method to define mock.On call
func (*Snapshot_Expecter) Head ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Head() *Snapshot_Head_Call
Head is a helper method to define mock.On call
func (*Snapshot_Expecter) Pending ¶ added in v0.46.0
func (_e *Snapshot_Expecter) Pending() *Snapshot_Pending_Call
Pending is a helper method to define mock.On call
type Snapshot_Head_Call ¶ added in v0.46.0
Snapshot_Head_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Head'
func (*Snapshot_Head_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Head_Call) Return(header *flow.Header, err error) *Snapshot_Head_Call
func (*Snapshot_Head_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Head_Call) Run(run func()) *Snapshot_Head_Call
func (*Snapshot_Head_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Head_Call) RunAndReturn(run func() (*flow.Header, error)) *Snapshot_Head_Call
type Snapshot_Pending_Call ¶ added in v0.46.0
Snapshot_Pending_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Pending'
func (*Snapshot_Pending_Call) Return ¶ added in v0.46.0
func (_c *Snapshot_Pending_Call) Return(identifiers []flow.Identifier, err error) *Snapshot_Pending_Call
func (*Snapshot_Pending_Call) Run ¶ added in v0.46.0
func (_c *Snapshot_Pending_Call) Run(run func()) *Snapshot_Pending_Call
func (*Snapshot_Pending_Call) RunAndReturn ¶ added in v0.46.0
func (_c *Snapshot_Pending_Call) RunAndReturn(run func() ([]flow.Identifier, error)) *Snapshot_Pending_Call
type State ¶
State is an autogenerated mock type for the State type
func NewState ¶ added in v0.26.1
NewState creates a new instance of State. 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 (*State) AtBlockID ¶
func (_mock *State) AtBlockID(blockID flow.Identifier) cluster.Snapshot
AtBlockID provides a mock function for the type State
func (*State) EXPECT ¶ added in v0.46.0
func (_m *State) EXPECT() *State_Expecter
type State_AtBlockID_Call ¶ added in v0.46.0
State_AtBlockID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AtBlockID'
func (*State_AtBlockID_Call) Return ¶ added in v0.46.0
func (_c *State_AtBlockID_Call) Return(snapshot cluster.Snapshot) *State_AtBlockID_Call
func (*State_AtBlockID_Call) Run ¶ added in v0.46.0
func (_c *State_AtBlockID_Call) Run(run func(blockID flow.Identifier)) *State_AtBlockID_Call
func (*State_AtBlockID_Call) RunAndReturn ¶ added in v0.46.0
func (_c *State_AtBlockID_Call) RunAndReturn(run func(blockID flow.Identifier) cluster.Snapshot) *State_AtBlockID_Call
type State_Expecter ¶ added in v0.46.0
type State_Expecter struct {
// contains filtered or unexported fields
}
func (*State_Expecter) AtBlockID ¶ added in v0.46.0
func (_e *State_Expecter) AtBlockID(blockID interface{}) *State_AtBlockID_Call
AtBlockID is a helper method to define mock.On call
- blockID flow.Identifier
func (*State_Expecter) Final ¶ added in v0.46.0
func (_e *State_Expecter) Final() *State_Final_Call
Final is a helper method to define mock.On call
func (*State_Expecter) Params ¶ added in v0.46.0
func (_e *State_Expecter) Params() *State_Params_Call
Params is a helper method to define mock.On call
type State_Final_Call ¶ added in v0.46.0
State_Final_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Final'
func (*State_Final_Call) Return ¶ added in v0.46.0
func (_c *State_Final_Call) Return(snapshot cluster.Snapshot) *State_Final_Call
func (*State_Final_Call) Run ¶ added in v0.46.0
func (_c *State_Final_Call) Run(run func()) *State_Final_Call
func (*State_Final_Call) RunAndReturn ¶ added in v0.46.0
func (_c *State_Final_Call) RunAndReturn(run func() cluster.Snapshot) *State_Final_Call
type State_Params_Call ¶ added in v0.46.0
State_Params_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Params'
func (*State_Params_Call) Return ¶ added in v0.46.0
func (_c *State_Params_Call) Return(params cluster.Params) *State_Params_Call
func (*State_Params_Call) Run ¶ added in v0.46.0
func (_c *State_Params_Call) Run(run func()) *State_Params_Call
func (*State_Params_Call) RunAndReturn ¶ added in v0.46.0
func (_c *State_Params_Call) RunAndReturn(run func() cluster.Params) *State_Params_Call