addDatabaseAndTestUserContext adds a fake user to the context
(ctx context.Context, db *Database)
| 609 | |
| 610 | // addDatabaseAndTestUserContext adds a fake user to the context |
| 611 | func addDatabaseAndTestUserContext(ctx context.Context, db *Database) context.Context { |
| 612 | return db.AddDatabaseLogContext(base.UserLogCtx(ctx, "gotest", base.UserDomainBuiltin, nil)) |
| 613 | } |
| 614 | |
| 615 | // GetScopesOptions sets up a ScopesOptions from a TestBucket. This will set up default or non default collections depending on the test harness use of SG_TEST_USE_DEFAULT_COLLECTION and whether the backing store supports collections. |
| 616 | func GetScopesOptions(t testing.TB, bucket base.Bucket, numCollections int) ScopesOptions { |