Documentation ¶
Index ¶
- func AssertCombinedOutput(t *testing.T, expectedStdOut string, expectedStdErr string, f func())
- func AssertCombinedOutputFunc(t *testing.T, assertFunc func(stdOut, stdErr string), f func())
- func AssertErrorLevel(t *testing.T, f func())
- func AssertErrorLevelFunc(t *testing.T, level int, assertFunc func(stdErr string), f func())
- func AssertErrorLevelOutput(t *testing.T, level int, expected string, f func())
- func AssertErrorOutput(t *testing.T, expected string, f func())
- func AssertErrorOutputFunc(t *testing.T, assertFunc func(stdErr string), f func())
- func AssertOutput(t *testing.T, expected string, f func())
- func AssertOutputFunc(t *testing.T, assertFunc func(stdErr string), f func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertCombinedOutput ¶
AssertCombinedOutput tests the output of func f, asserting stdout/stderr matches expectedStdOut/expectedStdErr
func AssertCombinedOutputFunc ¶
AssertCombinedOutputFunc tests the output of func f, asserting using func assertFunc
func AssertErrorLevel ¶
AssertErrorLevel tests that exit code is equal to 1
func AssertErrorLevelFunc ¶
AssertErrorLevelFunc tests the output of func f, asserting using func assertFunc and exit code is equal to level
func AssertErrorLevelOutput ¶
AssertErrorLevelOutput tests the output of func f, asserting stderr matches expected and exit code is equal to 1
func AssertErrorOutput ¶
AssertErrorOutput tests the output of func f, asserting stderr matches expected
func AssertErrorOutputFunc ¶
AssertErrorOutputFunc tests the output of func f, asserting using func assertFunc
func AssertOutput ¶
AssertOutput tests the output of func f, asserting stdout matches expected
func AssertOutputFunc ¶
AssertOutputFunc tests the output of func f, asserting using func assertFunc
Types ¶
This section is empty.