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

Function GetCollectionsConfig

rest/utilities_testing.go:430–432  ·  view source on GitHub ↗

GetCollectionsConfig sets up a ScopesConfig from a TestBucket for use with non default collections.

(t testing.TB, testBucket *base.TestBucket, numCollections int)

Source from the content-addressed store, hash-verified

428
429// GetCollectionsConfig sets up a ScopesConfig from a TestBucket for use with non default collections.
430func GetCollectionsConfig(t testing.TB, testBucket *base.TestBucket, numCollections int) ScopesConfig {
431 return GetCollectionsConfigWithFiltering(t, testBucket, numCollections, nil, nil)
432}
433
434// GetCollectionsConfigWithFiltering sets up a ScopesConfig from a TestBucket for use with non default collections. The sync function will be passed for all collections.
435func GetCollectionsConfigWithFiltering(t testing.TB, testBucket *base.TestBucket, numCollections int, syncFn *string, importFilter *string) ScopesConfig {

Calls 1