testsuite

package
v0.0.0-...-ba09d25 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Overview

Package testsuite provides a integration testing suite for lisafs. These tests are intended for servers serving the local filesystem.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunAllLocalFSTests

func RunAllLocalFSTests(t *testing.T, tester Tester)

RunAllLocalFSTests runs all local FS tests as subtests.

Types

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
}

Tester is the client code using this test suite. This interface abstracts away all the caller specific details.

Jump to

Keyboard shortcuts

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