Documentation ¶
Overview ¶
Package test provides utilities for testing. Do not import this into non-test code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomIntWithMax ¶
RandomIntWithMax returns a random int in range [0, max].
func RandomNonZeroInt ¶
RandomNonZeroInt return a random nonzero int up to the supplied max.
func RandomString ¶
func RandomString() string
RandomString return a random alphanumeric string with length 10.
func RandomStringWithLen ¶
RandomStringWithLen returns a random alphanumeric string with a specified length.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.