Documentation ¶
Index ¶
- func CheckActualVsExpectedOutputMatch(t *testing.T, ...)
- func CheckErrorContainment(t *testing.T, testInfo, expectedErrorMsg, actualErrMsg string)
- func GetDebugMsgWithTestNameAndFormat(testName, format string) string
- func GetTestsDir() string
- func GetTestsDirFromInternalPkg() string
- func GetTestsDirWithDepth(depth int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckActualVsExpectedOutputMatch ¶ added in v1.0.0
func CheckActualVsExpectedOutputMatch(t *testing.T, testName, dirName, expectedOutputFileName, actualOutput, testInfo 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 ¶ added in v1.0.0
CheckErrorContainment: helping func - if the actual error/warning message does not contain the expected error, fail the test with relevant info
func GetDebugMsgWithTestNameAndFormat ¶ added in v1.0.0
GetDebugMsgWithTestNameAndFormat: testing helping func - writes debug message for good path tests
func GetTestsDir ¶
func GetTestsDir() string
func GetTestsDirFromInternalPkg ¶ added in v1.0.0
func GetTestsDirFromInternalPkg() string
func GetTestsDirWithDepth ¶ added in v1.0.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.