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)
| 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. |
| 580 | func 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). |
| 586 | func SetupTestDBForBucketWithOptions(t testing.TB, tBucket base.Bucket, dbcOptions DatabaseContextOptions) (*Database, context.Context) { |