Documentation ¶
Index ¶
- Variables
- func MustAbsolutePath(path string, test *testing.T) string
- func MustGenerate(tipe reflect.Type, test *testing.T) reflect.Value
- func MustGenerateBytes(test *testing.T) []byte
- func MustGenerateHex(test *testing.T) string
- func MustGenerateHexes(test *testing.T) []string
- func MustGenerateInt(test *testing.T) int
- func MustGenerateString(test *testing.T) string
- func MustGenerateStrings(test *testing.T) []string
- func MustGenerateURL(test *testing.T) *url.URL
- func MustGenerateUint(test *testing.T) uint
- func MustLoadX509KeyPair(certificate string, key string, test *testing.T) tls.Certificate
- func MustRead(path string, test *testing.T) []byte
- func MustTemplate(path string, values map[string]string, test *testing.T) []byte
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MustAbsolutePath ¶
MustAbsolutePath returns the absolute path to a file or fails the provided test.
func MustGenerate ¶
MustGenerate generates and returns a random value of a type or fails a test.
func MustGenerateBytes ¶
MustGenerateBytes generates a random slice of bytes or fails a test.
func MustGenerateHex ¶
MustGenerateHex generates a random hexidecimal string or fails a test.
func MustGenerateHexes ¶
MustGenerateHexes generates a random slice of hexidecimal strings or fails a test.
func MustGenerateInt ¶
MustGenerateInt generates a random integer or fails a test.
func MustGenerateString ¶
MustGenerateString generates a random string or fails a test.
func MustGenerateStrings ¶
MustGenerateStrings generates a random slice of strings or fails a test.
func MustGenerateURL ¶
MustGenerateURL generates a random *url.URL or fails a test.
func MustGenerateUint ¶
MustGenerateUint generates a random integer or fails a test.
func MustLoadX509KeyPair ¶
MustLoadX509KeyPair loads a tls.Certificate from PEM encoded key pair files or fails the test.
Types ¶
This section is empty.