Documentation
¶
Index ¶
- Variables
- func Err(err error, t *testing.T, msgs ...string)
- func False(v bool, t *testing.T, msgs ...string)
- func NewTestDatastore(testErrors bool) *testDatastore
- func Nil(err error, t *testing.T, msgs ...string)
- func RunBatchDeleteTest(t *testing.T, ds dstore.Batching)
- func RunBatchPutAndDeleteTest(t *testing.T, ds dstore.Batching)
- func RunBatchTest(t *testing.T, ds dstore.Batching)
- func SubtestAll(t *testing.T, ds dstore.Datastore)
- func SubtestBasicPutGet(t *testing.T, ds dstore.Datastore)
- func SubtestManyKeysAndQuery(t *testing.T, ds dstore.Datastore)
- func SubtestNotFounds(t *testing.T, ds dstore.Datastore)
- func True(v bool, t *testing.T, msgs ...string)
Constants ¶
This section is empty.
Variables ¶
View Source
var BasicSubtests = []func(t *testing.T, ds dstore.Datastore){ SubtestBasicPutGet, SubtestNotFounds, SubtestManyKeysAndQuery, }
BasicSubtests is a list of all basic tests.
View Source
var BatchSubtests = []func(t *testing.T, ds dstore.Batching){ RunBatchTest, RunBatchDeleteTest, RunBatchPutAndDeleteTest, }
BatchSubtests is a list of all basic batching datastore tests.
View Source
var (
TestError = errors.New("test error")
)
Functions ¶
func NewTestDatastore ¶
func NewTestDatastore(testErrors bool) *testDatastore
func SubtestAll ¶
SubtestAll tests the given datastore against all the subtests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.