base: github.com/grailbio/base/file/internal/testutil Index | Files

package testutil

import "github.com/grailbio/base/file/internal/testutil"

Index

Package Files

testutil.go

func TestAll Uses

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

TestAll runs all the tests in this package.

func TestDiscard Uses

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

func TestEmpty Uses

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

TestEmpty creates an empty file and tests its operations.

func TestErrors Uses

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

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

func TestList Uses

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

TestList tests List implementations.

func TestListDir Uses

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

TestListDir tests ListDir implementations.

func TestNotExist Uses

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 Uses

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

TestReads tests various combination of reads and seeks.

func TestRemove Uses

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

TestRemove tests file Remove() function.

func TestStat Uses

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

TestStat tests Stat method implementations.

func TestWrites Uses

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

TestWrites tests file Write functions.

Package testutil imports 9 packages (graph). Updated 2019-07-23. Refresh now. Tools for package owners.