mock

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MutableState added in v0.14.0

type MutableState struct {
	mock.Mock
}

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

type MutableState_AtBlockID_Call struct {
	*mock.Call
}

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

func (*MutableState_AtBlockID_Call) RunAndReturn added in v0.46.0

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

Final is a helper method to define mock.On call

func (*MutableState_Expecter) Params added in v0.46.0

Params is a helper method to define mock.On call

type MutableState_Extend_Call added in v0.46.0

type MutableState_Extend_Call struct {
	*mock.Call
}

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

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

type MutableState_Final_Call struct {
	*mock.Call
}

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

type MutableState_Params_Call struct {
	*mock.Call
}

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

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

type Params struct {
	mock.Mock
}

Params is an autogenerated mock type for the Params type

func NewParams added in v0.26.1

func NewParams(t interface {
	mock.TestingT
	Cleanup(func())
}) *Params

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) ChainID added in v0.9.6

func (_mock *Params) ChainID() flow.ChainID

ChainID provides a mock function for the type Params

func (*Params) EXPECT added in v0.46.0

func (_m *Params) EXPECT() *Params_Expecter

type Params_ChainID_Call added in v0.46.0

type Params_ChainID_Call struct {
	*mock.Call
}

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

type Snapshot struct {
	mock.Mock
}

Snapshot is an autogenerated mock type for the Snapshot type

func NewSnapshot added in v0.26.1

func NewSnapshot(t interface {
	mock.TestingT
	Cleanup(func())
}) *Snapshot

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

func (*Snapshot) Head

func (_mock *Snapshot) Head() (*flow.Header, error)

Head provides a mock function for the type Snapshot

func (*Snapshot) Pending

func (_mock *Snapshot) Pending() ([]flow.Identifier, error)

Pending provides a mock function for the type Snapshot

type Snapshot_Collection_Call added in v0.46.0

type Snapshot_Collection_Call struct {
	*mock.Call
}

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

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

Head is a helper method to define mock.On call

func (*Snapshot_Expecter) Pending added in v0.46.0

Pending is a helper method to define mock.On call

type Snapshot_Head_Call added in v0.46.0

type Snapshot_Head_Call struct {
	*mock.Call
}

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

type Snapshot_Pending_Call struct {
	*mock.Call
}

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

type State struct {
	mock.Mock
}

State is an autogenerated mock type for the State type

func NewState added in v0.26.1

func NewState(t interface {
	mock.TestingT
	Cleanup(func())
}) *State

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

func (*State) Final

func (_mock *State) Final() cluster.Snapshot

Final provides a mock function for the type State

func (*State) Params added in v0.9.6

func (_mock *State) Params() cluster.Params

Params provides a mock function for the type State

type State_AtBlockID_Call added in v0.46.0

type State_AtBlockID_Call struct {
	*mock.Call
}

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

type State_Final_Call struct {
	*mock.Call
}

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

type State_Params_Call struct {
	*mock.Call
}

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

Jump to

Keyboard shortcuts

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