testutil

package
v0.0.0-...-cc0dd9b Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 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