Documentation ¶
Index ¶
- func GenerateMeAString(seed, size int64) string
- func GetRandomUpstreams(minCount, maxCount int) []*types.UpstreamAddress
- func GetTestFolder(t testing.TB) (string, func())
- func GetUpstream(i int) *types.UpstreamAddress
- func GetUpstreams(from, to int) []*types.UpstreamAddress
- func ShouldntFail(t testing.TB, errors ...error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateMeAString ¶
GenerateMeAString generates a pseudo-randomized string of the provided size, with the
func GetRandomUpstreams ¶ added in v0.1.2
func GetRandomUpstreams(minCount, maxCount int) []*types.UpstreamAddress
GetRandomUpstreams returns a slice with a random number of upstreams
func GetTestFolder ¶
GetTestFolder creates and returns a random test folder and a cleanup function. If the folder could not be created or removed afterwords, the test fails fatally.
func GetUpstream ¶ added in v0.1.2
func GetUpstream(i int) *types.UpstreamAddress
GetUpstream returns a fully configured upstream address
func GetUpstreams ¶ added in v0.1.2
func GetUpstreams(from, to int) []*types.UpstreamAddress
GetUpstreams returns a fully configured slice of sequential upstream address
func ShouldntFail ¶
ShouldntFail checks if any of the supplied parameters are non-nil errors and it fatally fails the test if they are.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.