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

Function setupTestLeakyDBWithCacheOptions

db/database_test.go:150–157  ·  view source on GitHub ↗
(t *testing.T, options CacheOptions, leakyOptions base.LeakyBucketConfig)

Source from the content-addressed store, hash-verified

148}
149
150func setupTestLeakyDBWithCacheOptions(t *testing.T, options CacheOptions, leakyOptions base.LeakyBucketConfig) (*Database, context.Context) {
151 testBucket := base.GetTestBucket(t)
152 leakyBucket := base.NewLeakyBucket(testBucket, leakyOptions)
153 dbcOptions := DatabaseContextOptions{
154 CacheOptions: &options,
155 }
156 return SetupTestDBForBucketWithOptions(t, leakyBucket, dbcOptions)
157}
158
159func setupTestDBDefaultCollection(t testing.TB) (*Database, context.Context) {
160 cacheOptions := DefaultCacheOptions()

Calls 3

GetTestBucketFunction · 0.92
NewLeakyBucketFunction · 0.92

Tested by

no test coverage detected