mock

package
v0.43.1-access-memory-... Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: AGPL-3.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 (_m *MutableState) AtBlockID(blockID flow.Identifier) cluster.Snapshot

AtBlockID provides a mock function with given fields: blockID

func (*MutableState) Extend added in v0.14.0

func (_m *MutableState) Extend(proposal *modelcluster.Proposal) error

Extend provides a mock function with given fields: proposal

func (*MutableState) Final added in v0.14.0

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

Final provides a mock function with no fields

func (*MutableState) Params added in v0.14.0

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

Params provides a mock function with no fields

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 (_m *Params) ChainID() flow.ChainID

ChainID provides a mock function with no fields

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 (_m *Snapshot) Collection() (*flow.Collection, error)

Collection provides a mock function with no fields

func (*Snapshot) Head

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

Head provides a mock function with no fields

func (*Snapshot) Pending

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

Pending provides a mock function with no fields

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 (_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 no fields

func (*State) Params added in v0.9.6

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

Params provides a mock function with no fields

Jump to

Keyboard shortcuts

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