Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTestFileTree ¶
func CreateTestFileTree(t *testing.T, fs filesystem.FS, testDir string, fileModTime time.Time, fileAccessTime time.Time) []string
CreateTestFileTree generates a randomised tree of directories and files under the specified `testDir` in the provided filesystem and returns a slice of all created paths.
func GenerateTestFile ¶
func GenerateTestFile(t *testing.T, fs filesystem.FS, filePath string, desiredSizeInBytes int, blockSizeInBytes int)
GenerateTestFile generates a file and writes zero-filled blocks until it reaches desiredSizeInBytes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.