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 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 string)
- func TgzContainsFile(t *testing.T, expectedFile, archiveFile 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 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.