testutils

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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

func CheckErrorContainment(t *testing.T, testInfo, expectedErrorMsg, actualErrMsg string)

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

func GetDebugMsgWithTestNameAndFormat(testName, format string) string

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

func GetTestsDirWithDepth(depth int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL