Documentation ¶
Index ¶
- Variables
- func BailOut(after time.Duration)
- func CreateTempDir(fs afero.Fs, prefix string) (string, func(), error)
- func DiffStringSlices(slice1 []string, slice2 []string) []string
- func DiffStrings(s1, s2 string) []string
- func NewTestdataBuilder(fs afero.Fs, workingDir string, t testing.TB) *testdataBuilder
- func RandBool() bool
Constants ¶
This section is empty.
Variables ¶
Rnd is used only for testing.
Functions ¶
func BailOut ¶ added in v0.58.0
BailOut panics with a stack trace after the given duration. Useful for hanging tests.
func CreateTempDir ¶ added in v0.56.0
CreateTempDir creates a temp dir in the given filesystem and returns the dirnam and a func that removes it when done.
func DiffStringSlices ¶ added in v0.65.0
DiffStringSlices returns the difference between two string slices. Useful in tests. See: http://stackoverflow.com/questions/19374219/how-to-find-the-difference-between-two-slices-of-strings-in-golang
func DiffStrings ¶ added in v0.65.0
DiffStrings splits the strings into fields and runs it into DiffStringSlices. Useful for tests.
func NewTestdataBuilder ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.