Documentation
¶
Index ¶
- Variables
- func AssertFileContents(t *testing.T, fs afero.Fs, path string, content string) bool
- func AssertModePerm(t testing.TB, fs afero.Fs, path, mode string) bool
- func AssertPathExists(t *testing.T, fs afero.Fs, path string, msgAndArgs ...interface{}) bool
- func EnsureFileContent(fs afero.Fs, path string, reader io.Reader) error
- func EnsureTestFileContent(t *testing.T, fs afero.Fs, path string, content string)
- func Env() map[string]string
- func GetenvOrDefault(key, defaultValue string) string
- func Reset()
Constants ¶
This section is empty.
Variables ¶
View Source
var CurrentUser = user.Current
View Source
var ( // DefaultFileSystem allows to change the implementation of the default file system, for example for tests DefaultFileSystem afero.Fs = afero.NewOsFs() )
Functions ¶
func AssertFileContents ¶
func AssertPathExists ¶
func EnsureTestFileContent ¶
func GetenvOrDefault ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.