Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStdoutAndStderr ¶
CaptureStdoutAndStderr temporarily pipes os.Stdout and os.Stderr into a buffer. Imported from https://github.com/moul/u/blob/master/io.go.
func FilterStability ¶
func FilterStability(t *testing.T, mode StabilityMode)
func MutateByteSlice ¶
Contract: !bytes.Equal(input, output) && len(input) >= len(output) TODO: keep output size the same; search all usage first.
func NewTestCaseDir ¶
NewTestCaseDir creates a new temporary directory for a test case. Returns the directory path and a cleanup function.
Types ¶
type StabilityMode ¶
type StabilityMode string
const ( Stable StabilityMode = "stable" Flappy StabilityMode = "flappy" Broken StabilityMode = "broken" )
Click to show internal directories.
Click to hide internal directories.