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 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 GzipContainsFile(t *testing.T, expectedFile, gzipArchive string)
- func MatchFile(expectedFile string, actual interface{}) (success bool, err 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 ContainThisFileInTheGzip ¶ added in v0.4.0
func ExtractGZip ¶ added in v0.6.0
func ExtractGZipToTar ¶ added in v0.6.0
func GzipContainsFile ¶
func TarContainsFile ¶
func TgzContainsFile ¶
func TreeToString ¶
Types ¶
type MockCli ¶
func (*MockCli) ExecuteAndStreamOutput ¶
func (m *MockCli) ExecuteAndStreamOutput(output cli.OutputHandler, args ...string) (err error)
Click to show internal directories.
Click to hide internal directories.