fstestutil

package
v0.0.0-...-330f150 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2016 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateVolume

func CreateVolume(t testing.TB, app *server.App, volumeName string)

func NewApp

func NewApp(t testing.TB, dataDir string) *server.App

func NewAppWithName

func NewAppWithName(t testing.TB, dataDir string, name string) *server.App

func SetDefaultTimeout

func SetDefaultTimeout(d time.Duration)

SetDefaultTimeout sets the default value for the `go test -test.timeout` flag. Original default is no timeout.

Types

type CountReader

type CountReader struct {
	// contains filtered or unexported fields
}

func (*CountReader) Read

func (c *CountReader) Read(p []byte) (n int, err error)

type Mount

type Mount struct {
	// Dir is the temporary directory where the filesystem is mounted.
	Dir string
	// contains filtered or unexported fields
}

func Mounted

func Mounted(t testing.TB, app *server.App, volumeName string) *Mount

TODO this vs. bazil.org/fuse/fs/fstestutil#Mounted

func (*Mount) Close

func (mnt *Mount) Close()

Close unmounts the filesystem and waits for fs.Serve to return.

TODO not true: Any returned error will be stored in Err.

It is safe to call Close multiple times.

func (*Mount) Protocol

func (mnt *Mount) Protocol() (*fuse.Protocol, error)

Jump to

Keyboard shortcuts

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