Documentation
¶
Index ¶
- func Elide(value string) string
- func MakeNewPassword(oldPass string) string
- func PrintResource(t *testing.T, resource any)
- func RandomFunnyString(length int) string
- func RandomFunnyStringNoSlash(length int) string
- func RandomInt(min, max int) int
- func RandomString(prefix string, n int) string
- func WaitFor(predicate func(context.Context) (bool, error)) error
- func WaitForTimeout(predicate func(context.Context) (bool, error), timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Elide ¶
Elide returns the first bit of its input string with a suffix of "..." if it's longer than a comfortable 40 characters.
func MakeNewPassword ¶
MakeNewPassword generates a new string that's guaranteed to be different than the given one.
func PrintResource ¶
PrintResource returns a resource as a readable structure
func RandomFunnyString ¶
RandomFunnyString returns a random string of the given length filled with funny Unicode code points.
func RandomFunnyStringNoSlash ¶
RandomFunnyStringNoSlash returns a random string of the given length filled with funny Unicode code points, but no forward slash.
func RandomString ¶
RandomString generates a string of given length, but random content. All content will be within the ASCII graphic character set.
Types ¶
This section is empty.