package dstest
import "github.com/ipfs/go-datastore/test"
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 SubtestBasicSync(t *testing.T, ds dstore.Datastore)
- func SubtestCombinations(t *testing.T, ds dstore.Datastore)
- func SubtestFilter(t *testing.T, ds dstore.Datastore)
- func SubtestLimit(t *testing.T, ds dstore.Datastore)
- func SubtestManyKeysAndQuery(t *testing.T, ds dstore.Datastore)
- func SubtestNotFounds(t *testing.T, ds dstore.Datastore)
- func SubtestOrder(t *testing.T, ds dstore.Datastore)
- func SubtestPrefix(t *testing.T, ds dstore.Datastore)
- func SubtestReturnSizes(t *testing.T, ds dstore.Datastore)
- func TestElemCount(t *testing.T)
- func True(v bool, t *testing.T, msgs ...string)
Variables ¶
var BasicSubtests = []func(t *testing.T, ds dstore.Datastore){ SubtestBasicPutGet, SubtestNotFounds, SubtestPrefix, SubtestOrder, SubtestLimit, SubtestFilter, SubtestManyKeysAndQuery, SubtestReturnSizes, SubtestBasicSync, }
BasicSubtests is a list of all basic tests.
var BatchSubtests = []func(t *testing.T, ds dstore.Batching){ RunBatchTest, RunBatchDeleteTest, RunBatchPutAndDeleteTest, }
BatchSubtests is a list of all basic batching datastore tests.
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 Err ¶
func False ¶
func NewTestDatastore ¶
func NewTestDatastore(testErrors bool) *testDatastore
func Nil ¶
func RunBatchDeleteTest ¶
func RunBatchPutAndDeleteTest ¶
func RunBatchTest ¶
func SubtestAll ¶
SubtestAll tests the given datastore against all the subtests.
func SubtestBasicPutGet ¶
func SubtestBasicSync ¶
func SubtestCombinations ¶
func SubtestFilter ¶
func SubtestLimit ¶
func SubtestManyKeysAndQuery ¶
func SubtestNotFounds ¶
func SubtestOrder ¶
func SubtestPrefix ¶
func SubtestReturnSizes ¶
func TestElemCount ¶
func True ¶
Source Files ¶
assert.go basic_tests.go suite.go test_util.go
- Version
- v0.8.2 (latest)
- Published
- Mar 4, 2025
- Platform
- linux/amd64
- Imports
- 13 packages
- Last checked
- 1 month ago –
Tools for package owners.