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

Function txCreateBucket

db_test.go:205–212  ·  view source on GitHub ↗
(t *testing.T, db *DB, ds uint16, bucket string, expectErr error)

Source from the content-addressed store, hash-verified

203}
204
205func txCreateBucket(t *testing.T, db *DB, ds uint16, bucket string, expectErr error) {
206 err := db.Update(func(tx *Tx) error {
207 err := tx.NewBucket(ds, bucket)
208 AssertErr(t, err, expectErr)
209 return nil
210 })
211 require.NoError(t, err)
212}
213
214func InitOpt(fileDir string, isRemoveFiles bool) {
215 if fileDir == "" {

Callers 15

TestBatchWriteFunction · 0.85
TestTx_SAddFunction · 0.85
TestTx_SRemFunction · 0.85
TestTx_SRem2Function · 0.85
TestTx_SMembersFunction · 0.85
TestTx_SCardFunction · 0.85
TestTx_SDiffByOneBucketFunction · 0.85
TestTx_SDiffByTwoBucketsFunction · 0.85
TestTx_SPopFunction · 0.85

Calls 3

UpdateMethod · 0.80
NewBucketMethod · 0.80
AssertErrFunction · 0.70

Tested by

no test coverage detected