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

Function setupTestDBDefaultCollection

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

Source from the content-addressed store, hash-verified

157}
158
159func setupTestDBDefaultCollection(t testing.TB) (*Database, context.Context) {
160 cacheOptions := DefaultCacheOptions()
161 dbcOptions := DatabaseContextOptions{
162 Scopes: GetScopesOptionsDefaultCollectionOnly(t),
163 CacheOptions: &cacheOptions,
164 }
165 return SetupTestDBWithOptions(t, dbcOptions)
166}
167
168func assertHTTPError(t *testing.T, err error, status int) bool {
169 var httpErr *base.HTTPError

Calls 3

DefaultCacheOptionsFunction · 0.85
SetupTestDBWithOptionsFunction · 0.85

Tested by

no test coverage detected