getKeyspaces returns the names of all the keyspaces on the rest tester. Currently assumes a single database.
(t testing.TB, database *db.DatabaseContext)
| 2492 | |
| 2493 | // getKeyspaces returns the names of all the keyspaces on the rest tester. Currently assumes a single database. |
| 2494 | func 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. |
| 2504 | func (rt *RestTester) GetKeyspaces() []string { |
no test coverage detected