Documentation ¶
Index ¶
- func AssertStepNames(t *testing.T, report *td.StepReport, expectedStepNames ...string)
- func MakeTempDirMockFn(t *testing.T, dirs ...string) func(string, string) (string, error)
- func MakeZIP(t *testing.T, zipPath string, contents map[string]string)
- func PopulateDir(t *testing.T, dirPath string, contents map[string]string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertStepNames ¶
func AssertStepNames(t *testing.T, report *td.StepReport, expectedStepNames ...string)
AssertStepNames flattens the names of the steps in the given report, then asserts that they match the given list of strings.
func MakeTempDirMockFn ¶
MakeTempDirMockFn returns a function that can be used to mock os_steps.TempDir by setting the os_steps.TempDirContextKey context key. It takes a list of directory paths, and returns the first path on first call, then the second, and so on. If the function is called more times than the number of directories, the test fails.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.