MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / setupTestDBForBucket

Function setupTestDBForBucket

db/database_test.go:54–60  ·  view source on GitHub ↗
(t testing.TB, bucket base.Bucket)

Source from the content-addressed store, hash-verified

52}
53
54func setupTestDBForBucket(t testing.TB, bucket base.Bucket) (*Database, context.Context) {
55 cacheOptions := DefaultCacheOptions()
56 dbcOptions := DatabaseContextOptions{
57 CacheOptions: &cacheOptions,
58 }
59 return SetupTestDBForBucketWithOptions(t, bucket, dbcOptions)
60}
61
62func setupTestDBForBucketDefaultCollection(t testing.TB, bucket *base.TestBucket) (*Database, context.Context) {
63 cacheOptions := DefaultCacheOptions()

Calls 2

DefaultCacheOptionsFunction · 0.85

Tested by

no test coverage detected