Documentation ¶
Index ¶
- Variables
- func CheckDomain(t *testing.T, itr corekv.Iterator, start, end []byte)
- func CheckInvalid(t *testing.T, itr corekv.Iterator)
- func CheckItem(t *testing.T, itr corekv.Iterator, key []byte, value []byte)
- func CheckKeyPanics(t *testing.T, itr corekv.Iterator)
- func CheckNext(t *testing.T, itr corekv.Iterator, expected bool)
- func CheckNextPanics(t *testing.T, itr corekv.Iterator)
- func CheckValid(t *testing.T, itr corekv.Iterator, expected bool)
- func CheckValue(t *testing.T, ctx context.Context, db corekv.Store, key []byte, ...)
- func CheckValuePanics(t *testing.T, itr corekv.Iterator)
- func SubtestAll(t *testing.T, store corekv.Store)
- func SubtestBackendsGetSetDelete(t *testing.T, store corekv.Store)
- func SubtestBasicPutGet(t *testing.T, store corekv.Store)
- func SubtestDBIterator(t *testing.T, store corekv.Store)
- func SubtestLimit(t *testing.T, store corekv.Store)
- func SubtestManyKeysAndQuery(t *testing.T, store corekv.Store)
- func SubtestNotFounds(t *testing.T, store corekv.Store)
- func SubtestPrefix(t *testing.T, store corekv.Store)
- func TestDBBatch(t *testing.T, store corekv.Batchable)
- func TestElemCount(t *testing.T)
- func VerifyIterator(t *testing.T, itr corekv.Iterator, expected []int64, msg string)
Constants ¶
This section is empty.
Variables ¶
View Source
var BasicSubtests = []func(t *testing.T, store corekv.Store){ SubtestBackendsGetSetDelete, }
BasicSubtests is a list of all basic 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.
Functions ¶
func CheckValue ¶
func SubtestAll ¶
SubtestAll tests the given datastore against all the subtests.
func TestElemCount ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.