testutil

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestAll

func TestAll(ctx context.Context, t *testing.T, impl file.Implementation, dir string)

TestAll runs all the tests in this package.

func TestDiscard

func TestDiscard(ctx context.Context, t *testing.T, impl file.Implementation, dir string)

func TestEmpty

func TestEmpty(
	ctx context.Context,
	t *testing.T,
	impl file.Implementation,
	path string)

TestEmpty creates an empty file and tests its operations.

func TestErrors

func TestErrors(
	ctx context.Context,
	t *testing.T,
	impl file.Implementation,
	path string)

TestErrors tests handling of errors. "path" shouldn't exist.

func TestList

func TestList(ctx context.Context, t *testing.T, impl file.Implementation, dir string)

TestList tests List implementations.

func TestListDir

func TestListDir(ctx context.Context, t *testing.T, impl file.Implementation, dir string)

TestListDir tests ListDir implementations.

func TestNotExist

func TestNotExist(
	ctx context.Context,
	t *testing.T,
	impl file.Implementation,
	path string)

TestNotExist tests that the implementation behaves correctly for paths that do not exist.

func TestReads

func TestReads(
	ctx context.Context,
	t *testing.T,
	impl file.Implementation,
	path string)

TestReads tests various combination of reads and seeks.

func TestRemove

func TestRemove(ctx context.Context, t *testing.T, impl file.Implementation, path string)

TestRemove tests file Remove() function.

func TestStat

func TestStat(ctx context.Context, t *testing.T, impl file.Implementation, path string)

TestStat tests Stat method implementations.

func TestWrites

func TestWrites(ctx context.Context, t *testing.T, impl file.Implementation, dir string)

TestWrites tests file Write functions.

Types

This section is empty.

Jump to

Keyboard shortcuts

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