enableEpochsHandlerMock

package
v1.7.13-patch2 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: GPL-3.0 Imports: 2 Imported by: 3 modules, 7 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 EnableEpochsHandlerStub

type EnableEpochsHandlerStub struct {
	sync.RWMutex

	GetCurrentEpochCalled      func() uint32
	IsFlagDefinedCalled        func(flag core.EnableEpochFlag) bool
	IsFlagEnabledCalled        func(flag core.EnableEpochFlag) bool
	IsFlagEnabledInEpochCalled func(flag core.EnableEpochFlag, epoch uint32) bool
	GetActivationEpochCalled   func(flag core.EnableEpochFlag) uint32
	// contains filtered or unexported fields
}

EnableEpochsHandlerStub -

func NewEnableEpochsHandlerStub added in v1.7.0

func NewEnableEpochsHandlerStub(flags ...core.EnableEpochFlag) *EnableEpochsHandlerStub

NewEnableEpochsHandlerStub -

func NewEnableEpochsHandlerStubWithNoFlagsDefined added in v1.7.0

func NewEnableEpochsHandlerStubWithNoFlagsDefined() *EnableEpochsHandlerStub

NewEnableEpochsHandlerStubWithNoFlagsDefined -

func (*EnableEpochsHandlerStub) AddActiveFlags added in v1.7.0

func (stub *EnableEpochsHandlerStub) AddActiveFlags(flags ...core.EnableEpochFlag)

AddActiveFlags -

func (*EnableEpochsHandlerStub) GetActivationEpoch added in v1.7.0

func (stub *EnableEpochsHandlerStub) GetActivationEpoch(flag core.EnableEpochFlag) uint32

GetActivationEpoch -

func (*EnableEpochsHandlerStub) GetCurrentEpoch added in v1.7.0

func (stub *EnableEpochsHandlerStub) GetCurrentEpoch() uint32

GetCurrentEpoch -

func (*EnableEpochsHandlerStub) IsFlagDefined added in v1.7.0

func (stub *EnableEpochsHandlerStub) IsFlagDefined(flag core.EnableEpochFlag) bool

IsFlagDefined -

func (*EnableEpochsHandlerStub) IsFlagEnabled added in v1.7.0

func (stub *EnableEpochsHandlerStub) IsFlagEnabled(flag core.EnableEpochFlag) bool

IsFlagEnabled -

func (*EnableEpochsHandlerStub) IsFlagEnabledInEpoch added in v1.7.0

func (stub *EnableEpochsHandlerStub) IsFlagEnabledInEpoch(flag core.EnableEpochFlag, epoch uint32) bool

IsFlagEnabledInEpoch -

func (*EnableEpochsHandlerStub) IsInterfaceNil

func (stub *EnableEpochsHandlerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*EnableEpochsHandlerStub) RemoveActiveFlags added in v1.7.0

func (stub *EnableEpochsHandlerStub) RemoveActiveFlags(flags ...core.EnableEpochFlag)

RemoveActiveFlags -

Jump to

Keyboard shortcuts

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