proposermock

package
v1.12.3-warp-verify5 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package proposermock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Windower

type Windower struct {
	// contains filtered or unexported fields
}

Windower is a mock of Windower interface.

func NewWindower

func NewWindower(ctrl *gomock.Controller) *Windower

NewWindower creates a new mock instance.

func (*Windower) Delay

func (m *Windower) Delay(ctx context.Context, blockHeight, pChainHeight uint64, validatorID ids.NodeID, maxWindows int) (time.Duration, error)

Delay mocks base method.

func (*Windower) EXPECT

func (m *Windower) EXPECT() *WindowerMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*Windower) ExpectedProposer

func (m *Windower) ExpectedProposer(ctx context.Context, blockHeight, pChainHeight, slot uint64) (ids.NodeID, error)

ExpectedProposer mocks base method.

func (*Windower) MinDelayForProposer

func (m *Windower) MinDelayForProposer(ctx context.Context, blockHeight, pChainHeight uint64, nodeID ids.NodeID, startSlot uint64) (time.Duration, error)

MinDelayForProposer mocks base method.

func (*Windower) Proposers

func (m *Windower) Proposers(ctx context.Context, blockHeight, pChainHeight uint64, maxWindows int) ([]ids.NodeID, error)

Proposers mocks base method.

type WindowerMockRecorder

type WindowerMockRecorder struct {
	// contains filtered or unexported fields
}

WindowerMockRecorder is the mock recorder for Windower.

func (*WindowerMockRecorder) Delay

func (mr *WindowerMockRecorder) Delay(ctx, blockHeight, pChainHeight, validatorID, maxWindows any) *gomock.Call

Delay indicates an expected call of Delay.

func (*WindowerMockRecorder) ExpectedProposer

func (mr *WindowerMockRecorder) ExpectedProposer(ctx, blockHeight, pChainHeight, slot any) *gomock.Call

ExpectedProposer indicates an expected call of ExpectedProposer.

func (*WindowerMockRecorder) MinDelayForProposer

func (mr *WindowerMockRecorder) MinDelayForProposer(ctx, blockHeight, pChainHeight, nodeID, startSlot any) *gomock.Call

MinDelayForProposer indicates an expected call of MinDelayForProposer.

func (*WindowerMockRecorder) Proposers

func (mr *WindowerMockRecorder) Proposers(ctx, blockHeight, pChainHeight, maxWindows any) *gomock.Call

Proposers indicates an expected call of Proposers.

Jump to

Keyboard shortcuts

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