mock

package
v0.13.1-patch.3 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2021 License: AGPL-3.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster struct {
	mock.Mock
}

Cluster is an autogenerated mock type for the Cluster type

func (*Cluster) ChainID

func (_m *Cluster) ChainID() flow.ChainID

ChainID provides a mock function with given fields:

func (*Cluster) EpochCounter

func (_m *Cluster) EpochCounter() uint64

EpochCounter provides a mock function with given fields:

func (*Cluster) Index

func (_m *Cluster) Index() uint

Index provides a mock function with given fields:

func (*Cluster) Members

func (_m *Cluster) Members() flow.IdentityList

Members provides a mock function with given fields:

func (*Cluster) RootBlock

func (_m *Cluster) RootBlock() *cluster.Block

RootBlock provides a mock function with given fields:

func (*Cluster) RootQC

func (_m *Cluster) RootQC() *flow.QuorumCertificate

RootQC provides a mock function with given fields:

type Consumer

type Consumer struct {
	mock.Mock
}

Consumer is an autogenerated mock type for the Consumer type

func (*Consumer) BlockFinalized

func (_m *Consumer) BlockFinalized(block *flow.Header)

BlockFinalized provides a mock function with given fields: block

func (*Consumer) BlockProcessable

func (_m *Consumer) BlockProcessable(block *flow.Header)

BlockProcessable provides a mock function with given fields: block

func (*Consumer) EpochCommittedPhaseStarted

func (_m *Consumer) EpochCommittedPhaseStarted(epoch uint64, first *flow.Header)

EpochCommittedPhaseStarted provides a mock function with given fields: epoch, first

func (*Consumer) EpochSetupPhaseStarted

func (_m *Consumer) EpochSetupPhaseStarted(epoch uint64, first *flow.Header)

EpochSetupPhaseStarted provides a mock function with given fields: epoch, first

func (*Consumer) EpochTransition

func (_m *Consumer) EpochTransition(newEpoch uint64, first *flow.Header)

EpochTransition provides a mock function with given fields: newEpoch, first

type DKG

type DKG struct {
	mock.Mock
}

DKG is an autogenerated mock type for the DKG type

func (*DKG) GroupKey

func (_m *DKG) GroupKey() crypto.PublicKey

GroupKey provides a mock function with given fields:

func (*DKG) Index

func (_m *DKG) Index(nodeID flow.Identifier) (uint, error)

Index provides a mock function with given fields: nodeID

func (*DKG) KeyShare

func (_m *DKG) KeyShare(nodeID flow.Identifier) (crypto.PublicKey, error)

KeyShare provides a mock function with given fields: nodeID

func (*DKG) Size

func (_m *DKG) Size() uint

Size provides a mock function with given fields:

type Epoch

type Epoch struct {
	mock.Mock
}

Epoch is an autogenerated mock type for the Epoch type

func (*Epoch) Cluster

func (_m *Epoch) Cluster(index uint) (protocol.Cluster, error)

Cluster provides a mock function with given fields: index

func (*Epoch) Clustering

func (_m *Epoch) Clustering() (flow.ClusterList, error)

Clustering provides a mock function with given fields:

func (*Epoch) Counter

func (_m *Epoch) Counter() (uint64, error)

Counter provides a mock function with given fields:

func (*Epoch) DKG

func (_m *Epoch) DKG() (protocol.DKG, error)

DKG provides a mock function with given fields:

func (*Epoch) FinalView

func (_m *Epoch) FinalView() (uint64, error)

FinalView provides a mock function with given fields:

func (*Epoch) FirstView added in v0.13.0

func (_m *Epoch) FirstView() (uint64, error)

FirstView provides a mock function with given fields:

func (*Epoch) InitialIdentities

func (_m *Epoch) InitialIdentities() (flow.IdentityList, error)

InitialIdentities provides a mock function with given fields:

func (*Epoch) Seed

func (_m *Epoch) Seed(indices ...uint32) ([]byte, error)

Seed provides a mock function with given fields: indices

type EpochQuery

type EpochQuery struct {
	mock.Mock
}

EpochQuery is an autogenerated mock type for the EpochQuery type

func (*EpochQuery) Current

func (_m *EpochQuery) Current() protocol.Epoch

Current provides a mock function with given fields:

func (*EpochQuery) Next

func (_m *EpochQuery) Next() protocol.Epoch

Next provides a mock function with given fields:

func (*EpochQuery) Previous added in v0.13.0

func (_m *EpochQuery) Previous() protocol.Epoch

Previous provides a mock function with given fields:

type Metrics

type Metrics struct {
	mock.Mock
}

Metrics is an autogenerated mock type for the Metrics type

func (*Metrics) BlockFinalized

func (_m *Metrics) BlockFinalized()

BlockFinalized provides a mock function with given fields:

func (*Metrics) BlockProposed

func (_m *Metrics) BlockProposed()

BlockProposed provides a mock function with given fields:

func (*Metrics) BlockSealed

func (_m *Metrics) BlockSealed()

BlockSealed provides a mock function with given fields:

func (*Metrics) GuaranteesFinalized

func (_m *Metrics) GuaranteesFinalized(count uint)

GuaranteesFinalized provides a mock function with given fields: count

func (*Metrics) GuaranteesProposed

func (_m *Metrics) GuaranteesProposed(count uint)

GuaranteesProposed provides a mock function with given fields: count

func (*Metrics) GuaranteesSealed

func (_m *Metrics) GuaranteesSealed(count uint)

GuaranteesSealed provides a mock function with given fields: count

func (*Metrics) SealsFinalized

func (_m *Metrics) SealsFinalized(count uint)

SealsFinalized provides a mock function with given fields: count

func (*Metrics) SealsProposed

func (_m *Metrics) SealsProposed(count uint)

SealsProposed provides a mock function with given fields: count

func (*Metrics) SealsSealed

func (_m *Metrics) SealsSealed(count uint)

SealsSealed provides a mock function with given fields: count

type Mutator

type Mutator struct {
	mock.Mock
}

Mutator is an autogenerated mock type for the Mutator type

func (*Mutator) Bootstrap

func (_m *Mutator) Bootstrap(root *flow.Block, result *flow.ExecutionResult, seal *flow.Seal) error

Bootstrap provides a mock function with given fields: root, result, seal

func (*Mutator) Extend

func (_m *Mutator) Extend(block *flow.Block) error

Extend provides a mock function with given fields: block

func (*Mutator) Finalize

func (_m *Mutator) Finalize(blockID flow.Identifier) error

Finalize provides a mock function with given fields: blockID

func (*Mutator) HeaderExtend

func (_m *Mutator) HeaderExtend(block *flow.Block) error

HeaderExtend provides a mock function with given fields: block

func (*Mutator) MarkValid

func (_m *Mutator) MarkValid(blockID flow.Identifier) error

MarkValid provides a mock function with given fields: blockID

type Params

type Params struct {
	mock.Mock
}

Params is an autogenerated mock type for the Params type

func (*Params) ChainID

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

ChainID provides a mock function with given fields:

func (*Params) Root

func (_m *Params) Root() (*flow.Header, error)

Root provides a mock function with given fields:

func (*Params) Seal

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

Seal provides a mock function with given fields:

type ReadOnlyState

type ReadOnlyState struct {
	mock.Mock
}

ReadOnlyState is an autogenerated mock type for the ReadOnlyState type

func (*ReadOnlyState) AtBlockID

func (_m *ReadOnlyState) AtBlockID(blockID flow.Identifier) protocol.Snapshot

AtBlockID provides a mock function with given fields: blockID

func (*ReadOnlyState) AtHeight

func (_m *ReadOnlyState) AtHeight(height uint64) protocol.Snapshot

AtHeight provides a mock function with given fields: height

func (*ReadOnlyState) Final

func (_m *ReadOnlyState) Final() protocol.Snapshot

Final provides a mock function with given fields:

func (*ReadOnlyState) Params

func (_m *ReadOnlyState) Params() protocol.Params

Params provides a mock function with given fields:

func (*ReadOnlyState) Sealed

func (_m *ReadOnlyState) Sealed() protocol.Snapshot

Sealed 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 (*Snapshot) Commit

func (_m *Snapshot) Commit() ([]byte, error)

Commit provides a mock function with given fields:

func (*Snapshot) Epochs

func (_m *Snapshot) Epochs() protocol.EpochQuery

Epochs 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) Identities

func (_m *Snapshot) Identities(selector flow.IdentityFilter) (flow.IdentityList, error)

Identities provides a mock function with given fields: selector

func (*Snapshot) Identity

func (_m *Snapshot) Identity(nodeID flow.Identifier) (*flow.Identity, error)

Identity provides a mock function with given fields: nodeID

func (*Snapshot) Pending

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

Pending provides a mock function with given fields:

func (*Snapshot) Phase

func (_m *Snapshot) Phase() (flow.EpochPhase, error)

Phase provides a mock function with given fields:

func (*Snapshot) Seed

func (_m *Snapshot) Seed(indices ...uint32) ([]byte, error)

Seed provides a mock function with given fields: indices

type State

type State struct {
	mock.Mock
}

State is an autogenerated mock type for the State type

func (*State) AtBlockID

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

AtBlockID provides a mock function with given fields: blockID

func (*State) AtHeight

func (_m *State) AtHeight(height uint64) protocol.Snapshot

AtHeight provides a mock function with given fields: height

func (*State) Final

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

Final provides a mock function with given fields:

func (*State) Mutate

func (_m *State) Mutate() protocol.Mutator

Mutate provides a mock function with given fields:

func (*State) Params

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

Params provides a mock function with given fields:

func (*State) Sealed

func (_m *State) Sealed() protocol.Snapshot

Sealed 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