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

Function getRESTKeyspaces

rest/indextest/index_test.go:921–929  ·  view source on GitHub ↗
(dbName string, scopesConfig rest.ScopesConfig)

Source from the content-addressed store, hash-verified

919}
920
921func getRESTKeyspaces(dbName string, scopesConfig rest.ScopesConfig) []string {
922 keyspaces := make([]string, 0)
923 for scopeName, scope := range scopesConfig {
924 for collectionName := range scope.Collections {
925 keyspaces = append(keyspaces, strings.Join([]string{dbName, scopeName, collectionName}, base.ScopeCollectionSeparator))
926 }
927 }
928 return keyspaces
929}
930
931// waitAndRequireDBState issues BootstrapAdminRequests to monitor db state
932func waitAndRequireDBState(t *testing.T, sc *rest.ServerContext, dbName string, targetState uint32) {

Callers 5

TestAsyncOnlineOfflineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected