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

Function makeScopesConfig

rest/database_init_manager_test.go:484–495  ·  view source on GitHub ↗
(scopeName string, collectionNames []string)

Source from the content-addressed store, hash-verified

482}
483
484func makeScopesConfig(scopeName string, collectionNames []string) ScopesConfig {
485
486 collectionsConfig := make(CollectionsConfig)
487 for _, collectionName := range collectionNames {
488 collectionsConfig[collectionName] = &CollectionConfig{}
489 }
490 return ScopesConfig{
491 scopeName: ScopeConfig{
492 Collections: collectionsConfig,
493 },
494 }
495}
496
497// waitForWorkerDone avoids races when testing db initializations performed serially
498func waitForWorkerDone(t *testing.T, manager *DatabaseInitManager, dbName string) {

Calls

no outgoing calls

Tested by

no test coverage detected