testutil

package
v0.0.1-really Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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