enableEpochsHandlerMock

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: GPL-3.0 Imports: 2 Imported by: 6

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