NewRestTester multiple collections a rest tester backed by a single database and any number of collections and the names of the keyspaces of collections created.
(tb testing.TB, restConfig *RestTesterConfig, numCollections int)
| 189 | |
| 190 | // NewRestTester multiple collections a rest tester backed by a single database and any number of collections and the names of the keyspaces of collections created. |
| 191 | func NewRestTesterMultipleCollections(tb testing.TB, restConfig *RestTesterConfig, numCollections int) *RestTester { |
| 192 | if !base.TestsUseNamedCollections() { |
| 193 | tb.Skip("This test requires named collections and is running against a bucket type that does not support them") |
| 194 | } |
| 195 | if numCollections == 0 { |
| 196 | tb.Errorf("0 is not a valid number of collections to specify") |
| 197 | } |
| 198 | return newRestTester(tb, restConfig, useMultipleCollection, numCollections) |
| 199 | } |
| 200 | |
| 201 | func (rt *RestTester) Bucket() base.Bucket { |
| 202 | if rt.TB() == nil { |