Documentation ¶
Index ¶
- func Golden() bool
- func GoldenName(name string) string
- func Long() bool
- func Repeat(t *testing.T, trial func(t *testing.T) bool)
- func RequireLong(t *testing.T)
- func RequireStress(t *testing.T)
- func Stress() bool
- func TempDir(t *testing.T) string
- func Trials(f func(t *testing.T) bool) func(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoldenName ¶
GoldenName returns a path to the named golden file.
func Repeat ¶
Repeat the given trial function. The duration is controlled by custom command-line flags. The trial function returns whether it wants to continue testing.
-short run for less time than usual -long allow more time -stress run for an extremely long time
func RequireLong ¶
RequireLong marks this test as a long test. Test will be skipped if long tests are not enabled.
func RequireStress ¶
RequireStress marks this test as a stress test. Test will be skipped if stress tests are not enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.