testutils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

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 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

func DiffTestNameByTestArgs(ref1, ref2, format string) (testName, expectedOutputFileName string)

DiffTestNameByTestArgs returns diff test name and test's expected output file from some tests args

func GetTestDirPath

func GetTestDirPath(dirName string) string

helping func - returns test's dir path from test's dir name

func WarnOnErrorReadingFile

func WarnOnErrorReadingFile(err error, file string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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