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

Function getKeyspaces

rest/utilities_testing.go:2494–2501  ·  view source on GitHub ↗

getKeyspaces returns the names of all the keyspaces on the rest tester. Currently assumes a single database.

(t testing.TB, database *db.DatabaseContext)

Source from the content-addressed store, hash-verified

2492
2493// getKeyspaces returns the names of all the keyspaces on the rest tester. Currently assumes a single database.
2494func getKeyspaces(t testing.TB, database *db.DatabaseContext) []string {
2495 var keyspaces []string
2496 for _, collection := range database.CollectionByID {
2497 keyspaces = append(keyspaces, getRESTKeyspace(t, database.Name, collection))
2498 }
2499 sort.Strings(keyspaces)
2500 return keyspaces
2501}
2502
2503// GetKeyspaces returns the names of all the keyspaces on the rest tester. Currently assumes a single database.
2504func (rt *RestTester) GetKeyspaces() []string {

Callers 1

templateResourceMethod · 0.85

Calls 1

getRESTKeyspaceFunction · 0.85

Tested by

no test coverage detected