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

Function setupTestDBWithCacheOptions

db/database_test.go:95–101  ·  view source on GitHub ↗
(t testing.TB, options CacheOptions)

Source from the content-addressed store, hash-verified

93}
94
95func setupTestDBWithCacheOptions(t testing.TB, options CacheOptions) (*Database, context.Context) {
96
97 dbcOptions := DatabaseContextOptions{
98 CacheOptions: &options,
99 }
100 return SetupTestDBWithOptions(t, dbcOptions)
101}
102
103// Forces UseViews:true in the database context. Useful for testing w/ views while running
104// tests against Couchbase Server

Calls 1

SetupTestDBWithOptionsFunction · 0.85

Tested by

no test coverage detected