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

Function setupTestDBAllowConflicts

db/database_test.go:46–52  ·  view source on GitHub ↗
(t testing.TB)

Source from the content-addressed store, hash-verified

44}
45
46func setupTestDBAllowConflicts(t testing.TB) (*Database, context.Context) {
47 dbcOptions := DatabaseContextOptions{
48 AllowConflicts: base.Ptr(true),
49 CacheOptions: base.Ptr(DefaultCacheOptions()),
50 }
51 return SetupTestDBWithOptions(t, dbcOptions)
52}
53
54func setupTestDBForBucket(t testing.TB, bucket base.Bucket) (*Database, context.Context) {
55 cacheOptions := DefaultCacheOptions()

Calls 3

PtrFunction · 0.92
DefaultCacheOptionsFunction · 0.85
SetupTestDBWithOptionsFunction · 0.85

Tested by

no test coverage detected