mock

package
v0.29.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 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

type MutableState struct {
	mock.Mock
}

MutableState is an autogenerated mock type for the MutableState type

func NewMutableState

func NewMutableState(t mockConstructorTestingTNewMutableState) *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.

func (*MutableState) AtBlockID

func (_m *MutableState) AtBlockID(blockID flow.Identifier) cluster.Snapshot

AtBlockID provides a mock function with given fields: blockID

func (*MutableState) Extend

func (_m *MutableState) Extend(candidate *modelcluster.Block) error

Extend provides a mock function with given fields: candidate

func (*MutableState) Final

func (_m *MutableState) Final() cluster.Snapshot

Final provides a mock function with given fields:

func (*MutableState) Params

func (_m *MutableState) Params() cluster.Params

Params provides a mock function with given fields:

type Params

type Params struct {
	mock.Mock
}

Params is an autogenerated mock type for the Params type

func NewParams

func NewParams(t mockConstructorTestingTNewParams) *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.

func (*Params) ChainID

func (_m *Params) ChainID() (flow.ChainID, error)

ChainID provides a mock function with given fields:

type Snapshot

type Snapshot struct {
	mock.Mock
}

Snapshot is an autogenerated mock type for the Snapshot type

func NewSnapshot

func NewSnapshot(t mockConstructorTestingTNewSnapshot) *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.

func (*Snapshot) Collection

func (_m *Snapshot) Collection() (*flow.Collection, error)

Collection provides a mock function with given fields:

func (*Snapshot) Head

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

Head provides a mock function with given fields:

func (*Snapshot) Pending

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

Pending provides a mock function with given fields:

type State

type State struct {
	mock.Mock
}

State is an autogenerated mock type for the State type

func NewState

func NewState(t mockConstructorTestingTNewState) *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.

func (*State) AtBlockID

func (_m *State) AtBlockID(blockID flow.Identifier) cluster.Snapshot

AtBlockID provides a mock function with given fields: blockID

func (*State) Final

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

Final provides a mock function with given fields:

func (*State) Params

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

Params provides a mock function with given fields:

Jump to

Keyboard shortcuts

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