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 CaptureOutput(f func()) (string, error)
- func GzipContainsFile(t *testing.T, expectedFile, gzipArchive string)
- 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
- func ZipContainsFile(t *testing.T, expectedFile, zipArchive string)
- type MockCli
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureOutput ¶
CaptureOutput captures standard output for a function f and returns the output string
func GzipContainsFile ¶
func TarContainsFile ¶
func TgzContainsFile ¶
func TreeToString ¶
func ZipContainsFile ¶
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.