testutil

package
v0.0.0-...-6bf75d6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 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

Jump to

Keyboard shortcuts

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