testutils

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Args

func Args(format string, a ...interface{}) []string

Args convenience function to generate tokenized argument list from format string w/ args

Eg. args("-e %s", "dev") -> []string{"-e", "dev"}

func NewFakeTokenSource added in v1.0.29

func NewFakeTokenSource(token string) oauth2.TokenSource

func RandString added in v0.0.21

func RandString(n int) string

RandString generates a random alphanumeric string (a-z0-9) of length n

func SliceIntoRandomIntervals added in v1.0.8

func SliceIntoRandomIntervals(duration time.Duration, n int) []time.Duration

SliceIntoRandomIntervals slices a time.Duration into n random intervals

Types

This section is empty.

Jump to

Keyboard shortcuts

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