dstest

package
v0.0.0-...-8b9b725 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2019 License: MIT, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

BasicSubtests is a list of all basic tests.

BatchSubtests is a list of all basic batching datastore tests.

View Source
var (
	TestError = errors.New("test error")
)

Functions

func Err

func Err(err error, t *testing.T, msgs ...string)

func False

func False(v bool, t *testing.T, msgs ...string)

func NewTestDatastore

func NewTestDatastore(testErrors bool) *testDatastore

func Nil

func Nil(err error, t *testing.T, msgs ...string)

func RunBatchDeleteTest

func RunBatchDeleteTest(t *testing.T, ds dstore.Batching)

func RunBatchPutAndDeleteTest

func RunBatchPutAndDeleteTest(t *testing.T, ds dstore.Batching)

func RunBatchTest

func RunBatchTest(t *testing.T, ds dstore.Batching)

func SubtestAll

func SubtestAll(t *testing.T, ds dstore.Datastore)

SubtestAll tests the given datastore against all the subtests.

func SubtestBasicPutGet

func SubtestBasicPutGet(t *testing.T, ds dstore.Datastore)

func SubtestManyKeysAndQuery

func SubtestManyKeysAndQuery(t *testing.T, ds dstore.Datastore)

func SubtestNotFounds

func SubtestNotFounds(t *testing.T, ds dstore.Datastore)

func True

func True(v bool, t *testing.T, msgs ...string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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