sandboxtest

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestFS

func TestFS(t *testing.T, makeFS func(*testing.T, string) fs.FS)

TestFS is a test suite based on testing/fstest using test data located in the directory path given as argument to the makeFS function.

The test suite invokes makeFS to construct a fs.FS instance which is expected to expose the content of the given directory path.

func TestFileSystem

func TestFileSystem(t *testing.T, makeFS func(*testing.T) sandbox.FileSystem)

TestFileSystem is a test suite which validates the behavior of FileSystem implementations.

The test suite invokes makeFS to constructs an empty file system that will be used to exercise the test scenarios.

func TestRootFS

func TestRootFS(t *testing.T, makeRootFS func(*testing.T, string) sandbox.FileSystem)

TestRootFS is a test suite designed to validate the implementation of root file systems. Such file systems are expected to guarantee that the resolution of file paths never escapes the root, even in the presence of symbolic links.

Types

This section is empty.

Jump to

Keyboard shortcuts

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