Documentation ¶
Index ¶
- func CheckActualVsExpectedOutputMatch(t *testing.T, ...)
- func CheckErrorContainment(t *testing.T, testInfo, expectedErrorMsg, actualErrMsg string)
- func ConnlistTestNameByTestArgs(dirName, focusWorkload, format string) (testName, expectedOutputFileName string)
- func DiffTestNameByTestArgs(ref1, ref2, format string) (testName, expectedOutputFileName string)
- func GetTestDirPath(dirName string) string
- func WarnOnErrorReadingFile(err error, file string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckActualVsExpectedOutputMatch ¶
func CheckActualVsExpectedOutputMatch(t *testing.T, expectedOutputFileName, actualOutput, testInfo, testingPkg string)
CheckActualVsExpectedOutputMatch: testing helping func - checks if actual output matches expected output, if not generates actual output file if --update flag is on, writes the actual output to the expected output file
func CheckErrorContainment ¶
CheckErrorContainment: helping func - if the actual error/warning message does not contain the expected error, fail the test with relevant info
func ConnlistTestNameByTestArgs ¶
func ConnlistTestNameByTestArgs(dirName, focusWorkload, format string) (testName, expectedOutputFileName string)
ConnlistTestNameByTestArgs returns connlist test name and test's expected output file from some tests args
func DiffTestNameByTestArgs ¶
DiffTestNameByTestArgs returns diff test name and test's expected output file from some tests args
func GetTestDirPath ¶
helping func - returns test's dir path from test's dir name
func WarnOnErrorReadingFile ¶
Types ¶
This section is empty.