Documentation
¶
Index ¶
- Variables
- func Err(err error, t *testing.T, msgs ...string)
- func False(v bool, t *testing.T, msgs ...string)
- func NewMapDatastoreForTest(t *testing.T, ktype key.KeyType) *dstore.MapDatastore
- func NewTestDatastore(ktype key.KeyType, testErrors bool) *testDatastore
- func Nil(err error, t *testing.T, msgs ...string)
- func RunBatchDeleteTest(t *testing.T, ktype key.KeyType, ds dstore.Batching)
- func RunBatchPutAndDeleteTest(t *testing.T, ktype key.KeyType, ds dstore.Batching)
- func RunBatchTest(t *testing.T, ktype key.KeyType, ds dstore.Batching)
- func SubtestAll(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestBasicPutGet(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestBasicSync(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestCombinations(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestFilter(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestLimit(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestManyKeysAndQuery(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestNotFounds(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestOrder(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestPrefix(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func SubtestReturnSizes(t *testing.T, ktype key.KeyType, ds dstore.Datastore)
- func TestElemCount(t *testing.T)
- func True(v bool, t *testing.T, msgs ...string)
Constants ¶
This section is empty.
Variables ¶
View Source
var BasicSubtests = []func(t *testing.T, ktype key.KeyType, ds dstore.Datastore){ SubtestBasicPutGet, SubtestNotFounds, SubtestPrefix, SubtestOrder, SubtestLimit, SubtestFilter, SubtestManyKeysAndQuery, SubtestReturnSizes, SubtestBasicSync, }
BasicSubtests is a list of all basic tests.
View Source
var BatchSubtests = []func(t *testing.T, ktype key.KeyType, ds dstore.Batching){ RunBatchTest, RunBatchDeleteTest, RunBatchPutAndDeleteTest, }
BatchSubtests is a list of all basic batching datastore tests.
View Source
var ElemCount = 100
ElemCount sets with how many elements the datastore suit tests are usually run with. Best to set to round numbers like 20, 30, 40... and at least to 20.
View Source
var ErrTest = errors.New("test error")
Functions ¶
func NewMapDatastoreForTest ¶
func NewTestDatastore ¶
func RunBatchDeleteTest ¶
func SubtestAll ¶
SubtestAll tests the given datastore against all the subtests.
func SubtestBasicPutGet ¶
func SubtestCombinations ¶
func SubtestManyKeysAndQuery ¶
func SubtestReturnSizes ¶
func TestElemCount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.