Documentation ¶
Index ¶
- func AssertContents(t *testing.T, fs afero.Fs, expectedPath, contentPath string)
- func AssertExists(t *testing.T, fs afero.Fs, path string)
- func AssertNotExists(t *testing.T, fs afero.Fs, path string)
- func AssertOutput(t *testing.T, filename, actual string)
- func ReadTestData(t *testing.T, name string) string
- func StageDir(t *testing.T, fs afero.Fs, src, dest string)
- func StageFile(t *testing.T, fs afero.Fs, src, dest string)
- func WithApp(t *testing.T, root string, fn func(*mocks.App, afero.Fs))
- func WithAppFs(t *testing.T, root string, fs afero.Fs, fn func(*mocks.App, afero.Fs))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertContents ¶
AssertContents asserts the contents of a file.
func AssertExists ¶
AssertExists asserts if a path exists.
func AssertNotExists ¶
AssertNotExists asserts a path does exist.
func AssertOutput ¶
AssertOutput asserts the output matches the actual contents
func ReadTestData ¶
ReadTestData reads a file from `testdata` and returns it as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.