testutil

package
Version: v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseTestParams

func ParseTestParams() []string

ParseTestParams parses tests params

func ResetConfigToDefaultValues

func ResetConfigToDefaultValues()

ResetConfigToDefaultValues resets configurations optins back to defaults

func SetupCoreYAMLConfig

func SetupCoreYAMLConfig()

SetupCoreYAMLConfig sets up configurations for testing

func SetupTestConfig

func SetupTestConfig()

SetupTestConfig sets up configurations for tetsing

Types

type TestRandomNumberGenerator

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

TestRandomNumberGenerator a random number generator for testing

func NewTestRandomNumberGenerator

func NewTestRandomNumberGenerator(maxNumber int) *TestRandomNumberGenerator

NewTestRandomNumberGenerator constructs a new `TestRandomNumberGenerator`

func (*TestRandomNumberGenerator) Next

func (randNumGenerator *TestRandomNumberGenerator) Next() int

Next generates next random number

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL