testhelpers

package
v0.0.0-...-ffea4ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StrVal      string        = "TEST"
	IntStr      string        = "2"
	IntVal      int           = 2
	FloatStr    string        = "1.2345E+00"
	FloatVal    float64       = 1.2345
	BoolStr     string        = "true"
	BoolVal     bool          = true
	UrlStr      string        = "http://www.example.com"
	UrlVal, _                 = url.Parse(UrlStr)
	DurationStr string        = "5s"
	DurationVal time.Duration = 5 * time.Second
	TimeStr     string        = "2012-11-01T22:08:41+00:00"
	TimeVal, _                = time.Parse(time.RFC3339, TimeStr)
	SliceStr    string        = "val1,val2,val3"
	SliceVal    []string      = []string{"val1", "val2", "val3"}
)

Functions

func MockConfig

func MockConfig() *cfg.Config

func TestConfig

func TestConfig(c *cfg.Config, t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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