NewRestTester returns a rest tester backed by a single database and a single default collection.
(tb testing.TB, restConfig *RestTesterConfig)
| 184 | |
| 185 | // NewRestTester returns a rest tester backed by a single database and a single default collection. |
| 186 | func NewRestTesterDefaultCollection(tb testing.TB, restConfig *RestTesterConfig) *RestTester { |
| 187 | return newRestTester(tb, restConfig, useSingleCollectionDefaultOnly, 1) |
| 188 | } |
| 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 { |