MCPcopy
hub / github.com/etcd-io/bbolt / openBucket

Function openBucket

movebucket_test.go:357–362  ·  view source on GitHub ↗
(tx *bbolt.Tx, bk *bbolt.Bucket, bucketToOpen string)

Source from the content-addressed store, hash-verified

355}
356
357func openBucket(tx *bbolt.Tx, bk *bbolt.Bucket, bucketToOpen string) *bbolt.Bucket {
358 if bk == nil {
359 return tx.Bucket([]byte(bucketToOpen))
360 }
361 return bk.Bucket([]byte(bucketToOpen))
362}
363
364func createBucketAndPopulateData(t testing.TB, tx *bbolt.Tx, bk *bbolt.Bucket, bucketName string) *bbolt.Bucket {
365 if bk == nil {

Callers 2

TestTx_MoveBucketFunction · 0.85
prepareBucketsFunction · 0.85

Calls 1

BucketMethod · 0.45

Tested by

no test coverage detected