MCPcopy Index your code
hub / github.com/nutsdb/nutsdb / TestBucketManager_DataStructureIsolation

Function TestBucketManager_DataStructureIsolation

bucket_manager_test.go:73–82  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

71}
72
73func TestBucketManager_DataStructureIsolation(t *testing.T) {
74 const bucket1 = "bucket_1"
75 runNutsDBTest(t, nil, func(t *testing.T, db *DB) {
76 txCreateBucket(t, db, DataStructureBTree, bucket1, nil)
77
78 assert.Equal(t, false, db.bucketMgr.ExistBucket(DataStructureList, bucket1))
79 assert.Equal(t, false, db.bucketMgr.ExistBucket(DataStructureSortedSet, bucket1))
80 assert.Equal(t, false, db.bucketMgr.ExistBucket(DataStructureSet, bucket1))
81 })
82}
83
84func TestBucketManager_DeleteBucketIsolation(t *testing.T) {
85 runNutsDBTest(t, nil, func(t *testing.T, db *DB) {

Callers

nothing calls this directly

Calls 3

runNutsDBTestFunction · 0.85
txCreateBucketFunction · 0.85
ExistBucketMethod · 0.45

Tested by

no test coverage detected