test_helpers

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JsonError

func JsonError(err error) (*http.Response, error)

func MakeBoolFeatureConfig

func MakeBoolFeatureConfig(name, defaultVariation, offVariation, state string, preReqs []rest.Prerequisite) rest.FeatureConfig

func MakeBoolFeatureConfigs

func MakeBoolFeatureConfigs(name, defaultVariation, offVariation, state string, preReqs ...rest.Prerequisite) []rest.FeatureConfig

func MakeBoolPreRequisite

func MakeBoolPreRequisite(name string, variation string) rest.Prerequisite

func MakeStringFeatureConfig

func MakeStringFeatureConfig(name, defaultVariation, offVariation, state string, preReqs []rest.Prerequisite) rest.FeatureConfig

func MakeStringFeatureConfigs

func MakeStringFeatureConfigs(name, defaultVariation, offVariation, state string, preReqs ...rest.Prerequisite) []rest.FeatureConfig

Types

type MockSleeper

type MockSleeper struct {
	SleepTime time.Duration
}

func (MockSleeper) Sleep

func (ms MockSleeper) Sleep(d time.Duration)

Jump to

Keyboard shortcuts

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