(scopeName string, collectionNames []string)
| 482 | } |
| 483 | |
| 484 | func 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 |
| 498 | func waitForWorkerDone(t *testing.T, manager *DatabaseInitManager, dbName string) { |
no outgoing calls
no test coverage detected