testutil

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2017 License: Apache-2.0 Imports: 9 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 SetLogLevel

func SetLogLevel(level logging.Level, module string)

SetLogLevel sets up log level

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

Jump to

Keyboard shortcuts

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