Documentation ¶
Index ¶
- Variables
- func MustCommand(t *testing.T, name string, args ...string) ([]byte, []byte)
- func MustGenerate(tipe reflect.Type, test *testing.T) reflect.Value
- func MustGenerateBytes(test *testing.T) []byte
- func MustGenerateHex(test *testing.T) string
- func MustGenerateString(test *testing.T) string
- func MustReadAndClose(t *testing.T, r io.ReadCloser) []byte
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func MustCommand ¶
MustExecute executes a command and returns the values of stdout and stderr or fails the 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 MustGenerateString ¶
MustGenerateString generates a random string or fails a test.
func MustReadAndClose ¶
func MustReadAndClose(t *testing.T, r io.ReadCloser) []byte
MustReadAndClose reads initializes a command and returns the command and pipes for stdin, stdout and stderr or fails the test.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.