package testsuite
import "gvisor.dev/gvisor/pkg/lisafs/testsuite"
Package testsuite provides a integration testing suite for lisafs. These tests are intended for servers serving the local filesystem.
Index ¶
- func RunAllLocalFSTests(t *testing.T, tester Tester)
- func RunTest(t *testing.T, tester Tester, testName string, testFn TestFunc, mountPath string)
- type TestFunc
- type Tester
Functions ¶
func RunAllLocalFSTests ¶
RunAllLocalFSTests runs all local FS tests as subtests.
func RunTest ¶
RunTest runs the passed test function as a subtest.
Types ¶
type TestFunc ¶
TestFunc describes the signature of a test method.
type Tester ¶
type Tester interface { // NewServer returns a new instance of the tester server. NewServer(t *testing.T) *lisafs.Server // LinkSupported returns true if the backing server supports LinkAt. LinkSupported() bool // SetUserGroupIDSupported returns true if the backing server supports // changing UID/GID for files. SetUserGroupIDSupported() bool // BindSupported returns true if the backing server supports BindAt. BindSupported() bool }
Tester is the client code using this test suite. This interface abstracts away all the caller specific details.
Source Files ¶
testsuite.go
- Version
- v0.0.0-20250605235530-a6711d1e1dc6 (latest)
- Published
- Jun 5, 2025
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 5 hours ago –
Tools for package owners.