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

Function SetupTestDBWithOptions

db/util_testing.go:580–583  ·  view source on GitHub ↗

SetupTestDBWithOptions creates an online test db with the specified database context options. Note that environment variables will override values (SG_TEST_USE_XATTRS, SG_TEST_USE_DEFAULT_COLLECTION). override somedbcOptions properties.

(t testing.TB, dbcOptions DatabaseContextOptions)

Source from the content-addressed store, hash-verified

578// SetupTestDBWithOptions creates an online test db with the specified database context options. Note that environment variables will override values (SG_TEST_USE_XATTRS, SG_TEST_USE_DEFAULT_COLLECTION).
579// override somedbcOptions properties.
580func SetupTestDBWithOptions(t testing.TB, dbcOptions DatabaseContextOptions) (*Database, context.Context) {
581 tBucket := base.GetTestBucket(t)
582 return SetupTestDBForBucketWithOptions(t, tBucket, dbcOptions)
583}
584
585// SetupTestDBForBucketWithOptions sets up a test database with the specified database context options. Note that environment variables will override values (SG_TEST_USE_XATTRS, SG_TEST_USE_DEFAULT_COLLECTION).
586func SetupTestDBForBucketWithOptions(t testing.TB, tBucket base.Bucket, dbcOptions DatabaseContextOptions) (*Database, context.Context) {

Calls 2

GetTestBucketFunction · 0.92