Documentation ¶
Overview ¶
Test contains common test helpers used across packages in porter.
Index ¶
Constants ¶
View Source
const ( MockedCommandEnv = "MOCK_COMMAND" ExpectedCommandEnv = "EXPECTED_COMMAND" ExpectedCommandExitCodeEnv = "EXPECTED_COMMAND_EXIT_CODE" ExpectedCommandErrorEnv = "EXPECTED_COMMAND_STDERR" ExpectedCommandOutputEnv = "EXPECTED_COMMAND_STDOUT" )
Variables ¶
This section is empty.
Functions ¶
func CompareGoldenFile ¶ added in v1.0.1
CompareGoldenFile checks if the specified string matches the content of a golden test file. When they are different and PORTER_UPDATE_TEST_FILES is true, the file is updated to match the new test output.
Types ¶
Click to show internal directories.
Click to hide internal directories.