enableEpochsHandlerMock

package
v0.0.0-...-08f901d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

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

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

NewEnableEpochsHandlerStub -

func NewEnableEpochsHandlerStubWithNoFlagsDefined

func NewEnableEpochsHandlerStubWithNoFlagsDefined() *EnableEpochsHandlerStub

NewEnableEpochsHandlerStubWithNoFlagsDefined -

func (*EnableEpochsHandlerStub) AddActiveFlags

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

AddActiveFlags -

func (*EnableEpochsHandlerStub) GetActivationEpoch

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

GetActivationEpoch -

func (*EnableEpochsHandlerStub) GetCurrentEpoch

func (stub *EnableEpochsHandlerStub) GetCurrentEpoch() uint32

GetCurrentEpoch -

func (*EnableEpochsHandlerStub) IsFlagDefined

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

IsFlagDefined -

func (*EnableEpochsHandlerStub) IsFlagEnabled

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

IsFlagEnabled -

func (*EnableEpochsHandlerStub) IsFlagEnabledInEpoch

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

IsFlagEnabledInEpoch -

func (*EnableEpochsHandlerStub) IsInterfaceNil

func (stub *EnableEpochsHandlerStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*EnableEpochsHandlerStub) RemoveActiveFlags

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