Documentation
¶
Overview ¶
package tests provides helper functions and mocks for running tests
package tests provides helper functions and mocks for running tests
package tests provides helper functions and mocks for running tests
Index ¶
- func AssertFileHasContent(t *testing.T, filePath string)
- func AssertFileHasExpectedLines(t *testing.T, expectedLines []string, filePath string)
- func ContainThisFileInTheGzip(expectedFilePath string, actual interface{}) (success bool, err error)
- func ExtractGZip(t *testing.T, gzipArchive, fileName string) string
- func ExtractGZipToTar(t *testing.T, gzipArchive string) string
- func FindUniqueElements(array1, array2 []string) ([]string, []string)
- func GzipContainsFile(t *testing.T, expectedFile, gzipArchive string)
- func MatchFile(expectedFile, actualFile string) (success bool, err error)
- func MatchLines(t *testing.T, expectedLines []string, actualFile string) (bool, error)
- func PrintTree(dir string, indent string)
- func TarContainsFile(t *testing.T, expectedFile, archiveFile, internalPath string)
- func TgzContainsFile(t *testing.T, expectedFile, archiveFile, internalPath string)
- func Tree(dir string)
- func TreeToString(dir string) string
- type MockCli
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertFileHasContent ¶ added in v0.7.0
func AssertFileHasExpectedLines ¶ added in v0.8.1
func ContainThisFileInTheGzip ¶ added in v0.4.0
func ExtractGZip ¶ added in v0.6.0
func ExtractGZipToTar ¶ added in v0.6.0
func FindUniqueElements ¶ added in v0.7.0
func GzipContainsFile ¶
func MatchLines ¶ added in v0.8.1
func TarContainsFile ¶
func TgzContainsFile ¶
func TreeToString ¶
Types ¶
type MockCli ¶
func (*MockCli) ExecuteAndStreamOutput ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.