testutil

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestConcurrentOffsetReads added in v0.0.11

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

TestConcurrentOffsetReads tests arbitrarily-ordered, concurrent reads.

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 TestStandard added in v0.0.11

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

TestStandard runs tests for all of the standard file API functionality.

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