filesystemtest

package
v1.94.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL